@@ -60,42 +60,6 @@ void populateOpConvertToLLVMConversionPatterns(Operation *op,
6060 ConversionTarget &target,
6161 LLVMTypeConverter &typeConverter,
6262 RewritePatternSet &patterns);
63-
64- // / Base class for creating the internal implementation of `convert-to-llvm`
65- // / passes.
66- class ConvertToLLVMPassInterface {
67- public:
68- ConvertToLLVMPassInterface (MLIRContext *context,
69- ArrayRef<std::string> filterDialects);
70- virtual ~ConvertToLLVMPassInterface () = default ;
71-
72- // / Get the dependent dialects used by `convert-to-llvm`.
73- static void getDependentDialects (DialectRegistry ®istry);
74-
75- // / Initialize the internal state of the `convert-to-llvm` pass
76- // / implementation. This method is invoked by `ConvertToLLVMPass::initialize`.
77- // / This method returns whether the initialization process failed.
78- virtual LogicalResult initialize () = 0;
79-
80- // / Transform `op` to LLVM with the conversions available in the pass. The
81- // / analysis manager can be used to query analyzes like `DataLayoutAnalysis`
82- // / to further configure the conversion process. This method is invoked by
83- // / `ConvertToLLVMPass::runOnOperation`. This method returns whether the
84- // / transformation process failed.
85- virtual LogicalResult transform (Operation *op,
86- AnalysisManager manager) const = 0;
87-
88- protected:
89- // / Visit the `ConvertToLLVMPatternInterface` dialect interfaces and call
90- // / `visitor` with each of the interfaces. If `filterDialects` is non-empty,
91- // / then `visitor` is invoked only with the dialects in the `filterDialects`
92- // / list.
93- LogicalResult visitInterfaces (
94- llvm::function_ref<void (ConvertToLLVMPatternInterface *)> visitor);
95- MLIRContext *context;
96- // / List of dialects names to use as filters.
97- ArrayRef<std::string> filterDialects;
98- };
9963} // namespace mlir
10064
10165#include " mlir/Conversion/ConvertToLLVM/ToLLVMAttrInterface.h.inc"
0 commit comments