[Mlir-commits] [mlir] [mlir][LLVM] Add the `ConvertToLLVMAttrInterface` and `ConvertToLLVMOpInterface` interfaces (PR #99566)

Fabian Mora llvmlistbot at llvm.org
Sat Nov 23 14:56:41 PST 2024


================
@@ -61,6 +61,8 @@ class LoadDependentDialectExtension : public DialectExtensionBase {
 /// the injection of conversion patterns.
 class ConvertToLLVMPass
     : public impl::ConvertToLLVMPassBase<ConvertToLLVMPass> {
+  std::shared_ptr<const SmallVector<ConvertToLLVMPatternInterface *>>
+      interfaces;
   std::shared_ptr<const FrozenRewritePatternSet> patterns;
   std::shared_ptr<const ConversionTarget> target;
   std::shared_ptr<const LLVMTypeConverter> typeConverter;
----------------
fabianmcg wrote:

Done, I created to sub classes `StaticConvertToLLVM` and `DynamicConvertToLLVM` controlled by the  `convert-to-llvm` `dynamic` flag.

https://github.com/llvm/llvm-project/pull/99566


More information about the Mlir-commits mailing list