[llvm] [clang] riscv vector cc (PR #77560)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 11 12:49:43 PST 2024


================
@@ -5400,6 +5400,16 @@ for clang builtin functions.
   }];
 }
 
+def RISCVVectorCCDocs : Documentation {
+ let Category = DocCatCallingConvs;
+ let Content = [{
+The ``riscv_vector_cc`` attribute can be applied to a function. It preserves 15
+registers namely, v1-v7 and v24-v31 as callee-saved. Callers thus don't need
+to save these registers before function calls, and callees only need to save
+them only if they use them.
----------------
topperc wrote:

"callees only need to save them only " I don't think we need "only" in that sentence twice

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


More information about the cfe-commits mailing list