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

Victor Perez llvmlistbot at llvm.org
Thu Aug 1 03:31:01 PDT 2024


================
@@ -1448,6 +1483,42 @@ static void convertFunctionAttributes(LLVMFuncOp func,
   convertFunctionMemoryAttributes(func, llvmFunc);
 }
 
+/// Converts function attributes from `func` and attaches them to `llvmFunc`.
+template <typename TypeConverter>
+static void convertFunctionKernelAttributes(LLVMFuncOp func,
+                                            llvm::Function *llvmFunc,
+                                            TypeConverter convertType) {
----------------
victor-eds wrote:

Passing `ModuleTranslation &` as an arg works too

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


More information about the Mlir-commits mailing list