22 struct SCFBufferizePass :
public SCFBufferizeBase<SCFBufferizePass> {
23 void runOnOperation()
override {
24 auto func = getOperation();
25 auto *context = &getContext();
35 return signalPassFailure();
41 return std::make_unique<SCFBufferizePass>();
Include the generated interface declarations.
LogicalResult applyPartialConversion(ArrayRef< Operation *> ops, ConversionTarget &target, const FrozenRewritePatternSet &patterns, DenseSet< Operation *> *unconvertedOps=nullptr)
Below we define several entry points for operation conversion.
void populateSCFStructuralTypeConversionsAndLegality(TypeConverter &typeConverter, RewritePatternSet &patterns, ConversionTarget &target)
Populates patterns for SCF structural type conversions and sets up the provided ConversionTarget with...
bool failed(LogicalResult result)
Utility function that returns true if the provided LogicalResult corresponds to a failure value...
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...
This class describes a specific conversion target.
std::unique_ptr< Pass > createSCFBufferizePass()
Creates a pass that bufferizes the SCF dialect.