[clang] [compiler-rt] [llvm] [XRay][RISCV] RISCV support for XRay (PR #117368)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 3 14:01:22 PST 2024


================
@@ -57,6 +57,10 @@ static const int16_t cSledLength = 64;
 static const int16_t cSledLength = 8;
 #elif defined(__hexagon__)
 static const int16_t cSledLength = 20;
+#elif SANITIZER_RISCV64
+static const int16_t cSledLength = 76;
+#elif defined(__riscv) && (__riscv_xlen == 32)
----------------
topperc wrote:

Rather than adding SANITIZER_RISCV32 shoud we use defined(__riscv) && (__riscv_xlen == 64) instead of SANITIZER_RISCV64?

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


More information about the cfe-commits mailing list