#include <Attributes.h>
|
static FloatAttr | get (Type type, double value) |
|
static FloatAttr | getChecked (Type type, double value, Location loc) |
|
static FloatAttr | get (Type type, const APFloat &value) |
| Return a float attribute for the specified value in the specified type. More...
|
|
static FloatAttr | getChecked (Type type, const APFloat &value, Location loc) |
|
static double | getValueAsDouble (APFloat val) |
|
static bool | kindof (unsigned kind) |
| Methods for support type inquiry through isa, cast, and dyn_cast. More...
|
|
static LogicalResult | verifyConstructionInvariants (Optional< Location > loc, MLIRContext *ctx, Type type, double value) |
| Verify the construction invariants for a double value. More...
|
|
static LogicalResult | verifyConstructionInvariants (Optional< Location > loc, MLIRContext *ctx, Type type, const APFloat &value) |
|
static ClassID * | getClassID () |
| Return a unique identifier for the concrete type. More...
|
|
template<typename T > |
static bool | classof (T val) |
|
◆ ValueType
◆ get() [1/2]
Return a float attribute for the specified value in the specified type. These methods should only be used for simple constant values, e.g 1.0/2.0, that are known-valid both as host double and the 'type' format.
◆ get() [2/2]
Return a float attribute for the specified value in the specified type.
◆ getChecked() [1/2]
◆ getChecked() [2/2]
◆ getValue()
APFloat FloatAttr::getValue |
( |
| ) |
const |
◆ getValueAsDouble() [1/2]
double FloatAttr::getValueAsDouble |
( |
| ) |
const |
This function is used to convert the value to a double, even if it loses precision.
◆ getValueAsDouble() [2/2]
double FloatAttr::getValueAsDouble |
( |
APFloat |
val | ) |
|
|
static |
◆ kindof()
static bool mlir::FloatAttr::kindof |
( |
unsigned |
kind | ) |
|
|
inlinestatic |
Methods for support type inquiry through isa, cast, and dyn_cast.
◆ verifyConstructionInvariants() [1/2]
Verify the construction invariants for a double value.
◆ verifyConstructionInvariants() [2/2]
The documentation for this class was generated from the following files: