[llvm] [CHERI] Define CHERI capability address space in computeRISCVDataLayout (PR #190806)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 10:48:09 PDT 2026
================
@@ -297,12 +298,19 @@ static std::string computeRISCVDataLayout(const Triple &TT, StringRef ABIName) {
Ret += "-m:e";
// Pointer and integer sizes.
+ auto IsCheriPureCapabilityABI =
+ StringSwitch<bool>(ABIName)
+ .Cases({"cheriot", "cheriot-baremetal"}, true)
----------------
lenary wrote:
iiuc, `ABIName` is directly taken from `-mabi=`. I presume you want the vendor name rather than something that looks more standard like `ilp32<something>`.
You removed `cheriot-baremetal` from the other ABI PR, did you intend to keep `cheriot-baremetal` here? I don't mind if the answer is "yes".
https://github.com/llvm/llvm-project/pull/190806
More information about the llvm-commits
mailing list