[llvm] [CHERI] Define CHERI capability address space in computeRISCVDataLayout (PR #190806)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 10:50:53 PDT 2026
================
@@ -298,19 +299,19 @@ static std::string computeRISCVDataLayout(const Triple &TT, StringRef ABIName) {
// TODO: Maybe we should move RISCVABI to TargetParser, so we can reuse that
// logic here instead of duplicating the string handling?
- bool IsRVYPurecapABI =
- ABIName.starts_with("il32pc64") || ABIName.starts_with("l64pc128");
+ bool HasCheriCapabilities = ABIName.starts_with("il32pc64") ||
----------------
arichardson wrote:
Maybe just drop RVY and keep the `IsPureCapABI` name?
```suggestion
bool IsPureCapABI = ABIName.starts_with("il32pc64") ||
```
https://github.com/llvm/llvm-project/pull/190806
More information about the llvm-commits
mailing list