MLIR
20.0.0git
|
#include "mlir/IR/OpDefinition.h"
Public Types | |
using | ImplicitTerminatorOpT = TerminatorOpType |
The type of the operation used as the implicit terminator type. More... | |
Static Public Member Functions | |
static LogicalResult | verifyRegionTrait (Operation *op) |
static void | ensureTerminator (Region ®ion, Builder &builder, Location loc) |
Ensure that the given region has the terminator required by this trait. More... | |
static void | ensureTerminator (Region ®ion, OpBuilder &builder, Location loc) |
Additional Inherited Members | |
Protected Member Functions inherited from mlir::OpTrait::TraitBase< ConcreteType, SingleBlockImplicitTerminator< TerminatorOpType >::Impl > | |
Operation * | getOperation () |
Return the ultimate Operation being worked on. More... | |
Definition at line 954 of file OpDefinition.h.
using mlir::OpTrait::SingleBlockImplicitTerminator< TerminatorOpType >::Impl< ConcreteType >::ImplicitTerminatorOpT = TerminatorOpType |
The type of the operation used as the implicit terminator type.
Definition at line 967 of file OpDefinition.h.
|
inlinestatic |
Ensure that the given region has the terminator required by this trait.
If OpBuilder is provided, use it to build the terminator and notify the OpBuilder listeners accordingly. If only a Builder is provided, locally construct an OpBuilder with no listeners; this should only be used if no OpBuilder is available at the call site, e.g., in the parser.
Definition at line 997 of file OpDefinition.h.
References mlir::impl::ensureRegionTerminator().
|
inlinestatic |
Definition at line 1002 of file OpDefinition.h.
References mlir::impl::ensureRegionTerminator().
|
inlinestatic |
Definition at line 969 of file OpDefinition.h.
References mlir::InFlightDiagnostic::attachNote(), mlir::Block::back(), mlir::Operation::emitOpError(), mlir::Region::empty(), mlir::Region::front(), mlir::Operation::getName(), mlir::Operation::getNumRegions(), mlir::Operation::getRegion(), and mlir::OperationName::getStringRef().