[Mlir-commits] [mlir] [MLIR][LLVM] Attach kernel metadata representation to `llvm.func` (PR #101314)

Christian Ulmann llvmlistbot at llvm.org
Wed Jul 31 05:59:22 PDT 2024


Dinistro wrote:

> We cannot handle this metadata via the `LLVMImportDialectInterface` interface due to a current limitation: only metadata with fixed MD kind values can be handled there as there is no existent `LLVMContext` at that point.

This can be added to the list of supported metadata by using the context's `getMDKindIf("kind-name")`. We have a downstream use case like this, but I'm unsure if this would require changes to `mlir-translate`, as the LLVM context is required to instantiate the LLVMImportDialectInterface.

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


More information about the Mlir-commits mailing list