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

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 15:54:16 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 ||
----------------
topperc wrote:

Why is 128? Doesn't the spec allow 32 and 64?

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


More information about the cfe-commits mailing list