[clang] [llvm] [OpenASIP] Update the TCE target defs for OpenASIP 2.2 (PR #176698)

Pekka Jääskeläinen via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 02:59:39 PST 2026


================
@@ -601,7 +601,20 @@ std::string Triple::computeDataLayout(StringRef ABIName) const {
   case Triple::systemz:
     return computeSystemZDataLayout(*this);
   case Triple::tce:
+    return "E-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:32-"
+           "f16:16:16-f32:32:32-f64:32:32-v64:64:64-i128:128-v128:128:128-"
+           "v256:256:256-v512:512:512-v1024:1024:1024-v2048:2048:2048-"
+           "v4096:4096:4096-a0:0:32-n32";
   case Triple::tcele:
+    return "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:32-"
----------------
pjaaskel wrote:

Or perhaps the other way around as it is i1:8:8 for both tcele and tce? It was so long ago this was added that I cannot recall the original reason to have 64b as the preferred alignment for all scalar types for the 64b target, but there was some.

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


More information about the cfe-commits mailing list