13 #ifndef MLIR_DIALECT_SCF_SCF_H
14 #define MLIR_DIALECT_SCF_SCF_H
33 #include "mlir/Dialect/SCF/IR/SCFOpsDialect.h.inc"
35 #define GET_OP_CLASSES
36 #include "mlir/Dialect/SCF/IR/SCFOps.h.inc"
94 bodyBuilder =
nullptr);
103 bodyBuilder =
nullptr);
This class is a general helper class for creating context-global objects like types,...
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around...
This class helps build Operations.
Operation is the basic unit of execution within MLIR.
This class contains a list of basic blocks and a link to the parent operation it is attached to.
This class provides an abstraction over the different types of ranges over Values.
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
ParallelOp getParallelForInductionVarOwner(Value val)
Returns the parallel loop parent of an induction variable.
SmallVector< scf::ForOp > LoopVector
void buildTerminatedBody(OpBuilder &builder, Location loc)
Default callback for IfOp builders. Inserts a yield without arguments.
LoopNest buildLoopNest(OpBuilder &builder, Location loc, ValueRange lbs, ValueRange ubs, ValueRange steps, ValueRange iterArgs, function_ref< ValueVector(OpBuilder &, Location, ValueRange, ValueRange)> bodyBuilder=nullptr)
Creates a perfect nest of "for" loops, i.e.
bool insideMutuallyExclusiveBranches(Operation *a, Operation *b)
Return true if ops a and b (or their ancestors) are in mutually exclusive regions/blocks of an IfOp.
ForOp getForInductionVarOwner(Value val)
Returns the loop parent of an induction variable.
void ensureLoopTerminator(Region ®ion, Builder &builder, Location loc)
SmallVector< Value > ValueVector
An owning vector of values, handy to return from functions.
ForeachThreadOp getForeachThreadOpThreadIndexOwner(Value val)
Returns the ForeachThreadOp parent of an thread index variable.
Include the generated interface declarations.