[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

Brandon Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 31 08:31:30 PDT 2024


================
@@ -4768,6 +4768,15 @@ static void handleCallConvAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
   case ParsedAttr::AT_RISCVVectorCC:
     D->addAttr(::new (S.Context) RISCVVectorCCAttr(S.Context, AL));
     return;
+  case ParsedAttr::AT_RISCVVLSCC: {
+    // If the riscv_abi_vlen doesn't have any argument, default ABI_VLEN is 128.
+    unsigned VectorLength = 128;
+    if (AL.getNumArgs() &&
+        !S.checkUInt32Argument(AL, AL.getArgAsExpr(0), VectorLength))
+      return;
----------------
4vtomat wrote:

I guess no, I'll check it here.

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


More information about the cfe-commits mailing list