MLIR  22.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, FloatType type, const APFloat &value)
 Build a constant float op that produces a float of the specified type. More...
 
static ConstantFloatOp create (OpBuilder &builder, Location location, FloatType type, const APFloat &value)
 
static ConstantFloatOp create (ImplicitLocOpBuilder &builder, FloatType type, const APFloat &value)
 
static bool classof (Operation *op)
 

Detailed Description

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

Definition at line 92 of file Arith.h.

Member Function Documentation

◆ build()

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

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

Definition at line 324 of file ArithOps.cpp.

References mlir::Builder::getFloatAttr().

◆ classof()

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

Definition at line 347 of file ArithOps.cpp.

◆ create() [1/2]

arith::ConstantFloatOp arith::ConstantFloatOp::create ( ImplicitLocOpBuilder builder,
FloatType  type,
const APFloat &  value 
)
static

Definition at line 342 of file ArithOps.cpp.

References mlir::ImplicitLocOpBuilder::getLoc().

◆ create() [2/2]

arith::ConstantFloatOp arith::ConstantFloatOp::create ( OpBuilder builder,
Location  location,
FloatType  type,
const APFloat &  value 
)
static

Definition at line 330 of file ArithOps.cpp.

Referenced by convertScalarToComplexDtype(), and getZero().

◆ resolveTypeID()

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

Definition at line 95 of file Arith.h.

◆ value()

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

Definition at line 105 of file Arith.h.


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