MLIR  16.0.0git
MlirOperationState Struct Reference

An auxiliary class for constructing operations. More...

#include "mlir-c/IR.h"

Collaboration diagram for MlirOperationState:

## Public Attributes

MlirStringRef name

MlirLocation location

intptr_t nResults

MlirType * results

intptr_t nOperands

MlirValue * operands

intptr_t nRegions

MlirRegion * regions

intptr_t nSuccessors

MlirBlock * successors

intptr_t nAttributes

MlirNamedAttributeattributes

bool enableResultTypeInference

## Detailed Description

An auxiliary class for constructing operations.

This class contains all the information necessary to construct the operation. It owns the MlirRegions it has pointers to and does not own anything else. By default, the state can be constructed from a name and location, the latter being also used to access the context, and has no other components. These components can be added progressively until the operation is constructed. Users are not expected to rely on the internals of this class and should use mlirOperationState* functions instead.

Definition at line 311 of file IR.h.

## ◆ attributes

 MlirNamedAttribute* MlirOperationState::attributes

Definition at line 323 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ enableResultTypeInference

 bool MlirOperationState::enableResultTypeInference

Definition at line 324 of file IR.h.

## ◆ location

 MlirLocation MlirOperationState::location

Definition at line 313 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ name

 MlirStringRef MlirOperationState::name

Definition at line 312 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ nAttributes

 intptr_t MlirOperationState::nAttributes

Definition at line 322 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ nOperands

 intptr_t MlirOperationState::nOperands

Definition at line 316 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ nRegions

 intptr_t MlirOperationState::nRegions

Definition at line 318 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ nResults

 intptr_t MlirOperationState::nResults

Definition at line 314 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ nSuccessors

 intptr_t MlirOperationState::nSuccessors

Definition at line 320 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ operands

 MlirValue* MlirOperationState::operands

Definition at line 317 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ regions

 MlirRegion* MlirOperationState::regions

Definition at line 319 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ results

 MlirType* MlirOperationState::results

Definition at line 315 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

## ◆ successors

 MlirBlock* MlirOperationState::successors

Definition at line 321 of file IR.h.

Referenced by mlirOperationCreate(), and mlirOperationStateGet().

The documentation for this struct was generated from the following file:
• include/mlir-c/IR.h