19 #define GEN_PASS_DEF_SCFBUFFERIZE
20 #include "mlir/Dialect/SCF/Transforms/Passes.h.inc"
27 struct SCFBufferizePass :
public impl::SCFBufferizeBase<SCFBufferizePass> {
28 void runOnOperation()
override {
29 auto *func = getOperation();
40 return signalPassFailure();
46 return std::make_unique<SCFBufferizePass>();
static MLIRContext * getContext(OpFoldResult val)
This class describes a specific conversion target.
A helper type converter class that automatically populates the relevant materializations and type con...
void populateBufferizeMaterializationLegality(ConversionTarget &target)
Marks ops used by bufferization for type conversion materializations as "legal" in the given Conversi...
void populateSCFStructuralTypeConversionsAndLegality(const TypeConverter &typeConverter, RewritePatternSet &patterns, ConversionTarget &target)
Populates patterns for SCF structural type conversions and sets up the provided ConversionTarget with...
Include the generated interface declarations.
std::unique_ptr< Pass > createSCFBufferizePass()
Creates a pass that bufferizes the SCF dialect.
LogicalResult applyPartialConversion(ArrayRef< Operation * > ops, const ConversionTarget &target, const FrozenRewritePatternSet &patterns, ConversionConfig config=ConversionConfig())
Below we define several entry points for operation conversion.