My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::FloatType Class Reference

#include <StandardTypes.h>

Inheritance diagram for mlir::FloatType:
Inheritance graph
[legend]
Collaboration diagram for mlir::FloatType:
Collaboration graph
[legend]

Public Member Functions

unsigned getWidth ()
 Return the bitwidth of this float type. More...
 
const llvm::fltSemantics & getFloatSemantics ()
 Return the floating semantics of this float type. More...
 

Static Public Member Functions

static FloatType get (StandardTypes::Kind kind, MLIRContext *context)
 
static FloatType getBF16 (MLIRContext *ctx)
 
static FloatType getF16 (MLIRContext *ctx)
 
static FloatType getF32 (MLIRContext *ctx)
 
static FloatType getF64 (MLIRContext *ctx)
 
static bool kindof (unsigned kind)
 Methods for support type inquiry through isa, cast, and dyn_cast. More...
 
- Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
static ClassIDgetClassID ()
 Return a unique identifier for the concrete type. More...
 
template<typename T >
static bool classof (T val)
 

Additional Inherited Members

- Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
using Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
 Utility declarations for the concrete attribute class. More...
 
using ImplType = StorageT
 
- Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
ImplTypegetImpl () const
 Utility for easy access to the storage instance. More...
 
- Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT >
template<typename... Args>
static ConcreteT get (MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static ConcreteT getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args)
 
template<typename... Args>
static LogicalResult verifyConstructionInvariants (Args... args)
 Default implementation that just returns success. More...
 

Member Function Documentation

◆ get()

FloatType FloatType::get ( StandardTypes::Kind  kind,
MLIRContext context 
)
static

◆ getBF16()

static FloatType mlir::FloatType::getBF16 ( MLIRContext ctx)
inlinestatic

◆ getF16()

static FloatType mlir::FloatType::getF16 ( MLIRContext ctx)
inlinestatic

◆ getF32()

static FloatType mlir::FloatType::getF32 ( MLIRContext ctx)
inlinestatic

◆ getF64()

static FloatType mlir::FloatType::getF64 ( MLIRContext ctx)
inlinestatic

◆ getFloatSemantics()

const llvm::fltSemantics & FloatType::getFloatSemantics ( )

Return the floating semantics of this float type.

Returns the floating semantics for the given type.

◆ getWidth()

unsigned FloatType::getWidth ( )

Return the bitwidth of this float type.

◆ kindof()

static bool mlir::FloatType::kindof ( unsigned  kind)
inlinestatic

Methods for support type inquiry through isa, cast, and dyn_cast.


The documentation for this class was generated from the following files: