[llvm] [mlir] [mlir][LLVM] handle argument and result attributes in llvm.call and llvm.invoke (PR #123177)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 06:51:10 PST 2025
================
@@ -1563,6 +1563,26 @@ static void convertFunctionKernelAttributes(LLVMFuncOp func,
}
}
+static void convertParameterAttr(llvm::AttrBuilder &attrBuilder,
+ llvm::Attribute::AttrKind llvmKind,
+ NamedAttribute namedAttr,
+ ModuleTranslation &moduleTranslation) {
+ llvm::TypeSwitch<Attribute>(namedAttr.getValue())
----------------
jeanPerier wrote:
This part is code that existed for LLVMFunc arguments, my understanding is that what is supported here should be in sync with attrNameToKindMapping, but that is a broad assumption. I updated the function to throw an failure when facing unhandled types.
https://github.com/llvm/llvm-project/pull/123177
More information about the llvm-commits
mailing list