[Mlir-commits] [mlir] [mlir] Add `convertInstruction` and `getSupportedInstructions` to `LLVMImportInterface` (PR #86799)

Mehdi Amini llvmlistbot at llvm.org
Wed Mar 27 13:56:38 PDT 2024


================
@@ -66,6 +75,11 @@ class LLVMImportDialectInterface
   /// returns the list of supported intrinsic identifiers.
   virtual ArrayRef<unsigned> getSupportedIntrinsics() const { return {}; }
 
+  /// Hook for derived dialect interfaces to publish the supported instructions.
+  /// As every LLVM IR instructions has a unique integer identifier, the
+  /// function returns the list of supported instructions identifiers.
+  virtual ArrayRef<unsigned> getSupportedInstructions() const { return {}; }
----------------
joker-eph wrote:

What if multiple dialect return overlapping results here?

Also the documentation is saying what this does, but not why it is useful or how this should be used, can you expand?

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


More information about the Mlir-commits mailing list