My Project
Public Member Functions | Static Public Member Functions | List of all members
mlir::ConstantIntOp Class Reference

#include <Ops.h>

Inheritance diagram for mlir::ConstantIntOp:
Inheritance graph
[legend]
Collaboration diagram for mlir::ConstantIntOp:
Collaboration graph
[legend]

Public Member Functions

int64_t getValue ()
 

Static Public Member Functions

static void build (Builder *builder, OperationState &result, int64_t value, unsigned width)
 Build a constant int op producing an integer of the specified width. More...
 
static void build (Builder *builder, OperationState &result, int64_t value, Type type)
 
static bool classof (Operation *op)
 ConstantIntOp only matches values whose result type is an IntegerType. More...
 

Detailed Description

This is a refinement of the "constant" op for the case where it is returning an integer value of IntegerType.

%1 = "std.constant"(){value: 42} : i32

Member Function Documentation

◆ build() [1/2]

void ConstantIntOp::build ( Builder builder,
OperationState result,
int64_t  value,
unsigned  width 
)
static

Build a constant int op producing an integer of the specified width.

◆ build() [2/2]

void ConstantIntOp::build ( Builder builder,
OperationState result,
int64_t  value,
Type  type 
)
static

Build a constant int op producing an integer with the specified type, which must be an integer type.

◆ classof()

bool ConstantIntOp::classof ( Operation op)
static

ConstantIntOp only matches values whose result type is an IntegerType.

◆ getValue()

int64_t mlir::ConstantIntOp::getValue ( )
inline

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