#include "mlir/Dialect/SCF/Transforms/Transforms.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "mlir/Transforms/OneToNTypeConversion.h"
usingnamespacemlir;
usingnamespacemlir::scf;
class ConvertTypesInSCFIfOp : public OneToNOpConversionPattern<IfOp> { … };
class ConvertTypesInSCFWhileOp : public OneToNOpConversionPattern<WhileOp> { … };
class ConvertTypesInSCFYieldOp : public OneToNOpConversionPattern<YieldOp> { … };
class ConvertTypesInSCFConditionOp
: public OneToNOpConversionPattern<ConditionOp> { … };
class ConvertTypesInSCFForOp final : public OneToNOpConversionPattern<ForOp> { … };
namespace mlir {
namespace scf {
void populateSCFStructuralOneToNTypeConversions(TypeConverter &typeConverter,
RewritePatternSet &patterns) { … }
}
}