[llvm] [NVPTX] Add Custom ABI (abi_preserve) support via function attributes (PR #227499)
Akshay Deodhar via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 09:08:52 PDT 2026
================
@@ -59,6 +61,16 @@ bool hasBlocksAreClusters(const Function &);
bool isParamGridConstant(const Argument &);
+/// Maps the name of each nvvm.abi_preserve* attribute that is present to its
+/// register count, in PTX emission order. An absent attribute has no entry.
+using ABIPreserve = SmallMapVector<StringRef, unsigned, 2>;
----------------
akshayrdeodhar wrote:
We are likely to add more of these attributes in the future. This structure will allow us to simply modify the lists, and change nothing else.
https://github.com/llvm/llvm-project/pull/227499
More information about the llvm-commits
mailing list