FLANG
|
#include <flang/Optimizer/Dialect/FIRAttr.h>
Public Types | |
using | ValueType = std::pair< int, llvm::APFloat > |
Public Member Functions | |
KindTy | getFKind () const |
llvm::APFloat | getValue () const |
Static Public Member Functions | |
static constexpr llvm::StringRef | getAttrName () |
static RealAttr | get (mlir::MLIRContext *ctxt, const ValueType &key) |
Static Public Attributes | |
static constexpr llvm::StringLiteral | name = "fir.real" |
A real attribute is used to workaround MLIR's default parsing of a real constant. #fir.real<10, 3.14>
is used to introduce a real constant of value 3.14
with a kind of 10
.