[llvm] [llvm][AArch64] Autoupgrade function attributes from Module attributes. (PR #80640)

Nick Desaulniers via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 11:31:41 PST 2024


nickdesaulniers wrote:

> backend handles the model vs function attribute e.g. llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp::GetSignReturnAddress

Ah! Ok I was missing that either are already supported; I was thinking that function attributes would be new, but it looks like there is pre-existing support as you cite.

> Clang also just sets the module flags today if the flag is not function attribute, but I have a patch for that too but I need to add the llvm::Function::createWithDefaultAttr to it.

You can CC for review on that, too, when it's ready.

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


More information about the llvm-commits mailing list