My Project
|
#include <OperationSupport.h>
Public Member Functions | |
OperationState (Location location, StringRef name) | |
OperationState (Location location, OperationName name) | |
OperationState (Location location, StringRef name, ValueRange operands, ArrayRef< Type > types, ArrayRef< NamedAttribute > attributes, ArrayRef< Block *> successors={}, MutableArrayRef< std::unique_ptr< Region >> regions={}, bool resizableOperandList=false) | |
void | addOperands (ValueRange newOperands) |
void | addTypes (ArrayRef< Type > newTypes) |
void | addAttribute (StringRef name, Attribute attr) |
Add an attribute with the specified name. More... | |
void | addAttribute (Identifier name, Attribute attr) |
Add an attribute with the specified name. More... | |
void | addAttributes (ArrayRef< NamedAttribute > newAttributes) |
Add an array of named attributes. More... | |
void | addSuccessor (Block *successor, ValueRange succOperands) |
Region * | addRegion () |
void | addRegion (std::unique_ptr< Region > &®ion) |
void | setOperandListToResizable (bool isResizable=true) |
Sets the operand list of the operation as resizable. More... | |
MLIRContext * | getContext () |
Get the context held by this operation state. More... | |
Public Attributes | |
Location | location |
OperationName | name |
SmallVector< Value, 4 > | operands |
SmallVector< Type, 4 > | types |
Types of the results of this operation. More... | |
SmallVector< NamedAttribute, 4 > | attributes |
SmallVector< Block *, 1 > | successors |
Successors of this operation and their respective operands. More... | |
SmallVector< std::unique_ptr< Region >, 1 > | regions |
Regions that the op will hold. More... | |
bool | resizableOperandList = false |
If the operation has a resizable operand list. More... | |
This represents an operation in an abstracted form, suitable for use with the builder APIs. This object is a large and heavy weight object meant to be used as a temporary object on the stack. It is generally unwise to put this in a collection.
OperationState::OperationState | ( | Location | location, |
StringRef | name | ||
) |
OperationState::OperationState | ( | Location | location, |
OperationName | name | ||
) |
OperationState::OperationState | ( | Location | location, |
StringRef | name, | ||
ValueRange | operands, | ||
ArrayRef< Type > | types, | ||
ArrayRef< NamedAttribute > | attributes, | ||
ArrayRef< Block *> | successors = {} , |
||
MutableArrayRef< std::unique_ptr< Region >> | regions = {} , |
||
bool | resizableOperandList = false |
||
) |
|
inline |
Add an attribute with the specified name.
|
inline |
Add an attribute with the specified name.
|
inline |
Add an array of named attributes.
void OperationState::addOperands | ( | ValueRange | newOperands | ) |
Region * OperationState::addRegion | ( | ) |
Create a region that should be attached to the operation. These regions can be filled in immediately without waiting for Operation to be created. When it is, the region bodies will be transferred.
void OperationState::addRegion | ( | std::unique_ptr< Region > && | region | ) |
void OperationState::addSuccessor | ( | Block * | successor, |
ValueRange | succOperands | ||
) |
|
inline |
Get the context held by this operation state.
|
inline |
Sets the operand list of the operation as resizable.
SmallVector<NamedAttribute, 4> mlir::OperationState::attributes |
Location mlir::OperationState::location |
OperationName mlir::OperationState::name |
SmallVector<Value, 4> mlir::OperationState::operands |
SmallVector<std::unique_ptr<Region>, 1> mlir::OperationState::regions |
Regions that the op will hold.
bool mlir::OperationState::resizableOperandList = false |
If the operation has a resizable operand list.
SmallVector<Block *, 1> mlir::OperationState::successors |
Successors of this operation and their respective operands.
SmallVector<Type, 4> mlir::OperationState::types |
Types of the results of this operation.