MLIR  19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::arith::ConstantFloatOp Class Reference

Specialization of arith.constant op that returns a floating point value. More...

#include "mlir/Dialect/Arith/IR/Arith.h"

+ Inheritance diagram for mlir::arith::ConstantFloatOp:

Public Member Functions

APFloat value ()
 

Static Public Member Functions

::mlir::TypeID resolveTypeID ()
 
static void build (OpBuilder &builder, OperationState &result, const APFloat &value, FloatType type)
 Build a constant float op that produces a float of the specified type. More...
 
static bool classof (Operation *op)
 

Detailed Description

Specialization of arith.constant op that returns a floating point value.

Definition at line 75 of file Arith.h.

Member Function Documentation

◆ build()

void arith::ConstantFloatOp::build ( OpBuilder builder,
OperationState result,
const APFloat &  value,
FloatType  type 
)
static

Build a constant float op that produces a float of the specified type.

Definition at line 271 of file ArithOps.cpp.

References mlir::Builder::getFloatAttr().

◆ classof()

bool arith::ConstantFloatOp::classof ( Operation op)
static

Definition at line 277 of file ArithOps.cpp.

◆ resolveTypeID()

::mlir::TypeID mlir::arith::ConstantFloatOp::resolveTypeID ( )
inlinestatic

Definition at line 78 of file Arith.h.

◆ value()

APFloat mlir::arith::ConstantFloatOp::value ( )
inline

Definition at line 84 of file Arith.h.


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