MLIR  15.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/Arithmetic/IR/Arithmetic.h"

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

Public Member Functions

APFloat value ()
 

Static Public Member Functions

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 63 of file Arithmetic.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 165 of file ArithmeticOps.cpp.

References mlir::Builder::getFloatAttr().

◆ classof()

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

Definition at line 171 of file ArithmeticOps.cpp.

◆ value()

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

Definition at line 71 of file Arithmetic.h.

References mlir::arith::ConstantIntOp::classof().


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