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

Brandon Wu via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 06:48:15 PDT 2024


================
@@ -2206,6 +2206,21 @@ void Clang::AddRISCVTargetArgs(const ArgList &Args,
           << A->getSpelling() << Val;
     }
   }
+
+  if (Arg *A = Args.getLastArg(options::OPT_mriscv_abi_vlen_EQ)) {
+    StringRef ABIVLenStr = A->getValue();
+    unsigned ABIVLen;
+    const Driver &D = getToolChain().getDriver();
+    if (ABIVLenStr.getAsInteger(10, ABIVLen) || ABIVLen < 128 ||
----------------
4vtomat wrote:

Correct, it supports 32 and 64 also, I'll correct it.

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


More information about the llvm-commits mailing list