[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)
Derek Schuff via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 4 10:17:22 PDT 2025
================
@@ -88,12 +88,20 @@ class LLVM_LIBRARY_VISIBILITY WebAssemblyTargetInfo : public TargetInfo {
LongDoubleWidth = LongDoubleAlign = 128;
LongDoubleFormat = &llvm::APFloat::IEEEquad();
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
- // size_t being unsigned long for both wasm32 and wasm64 makes mangled names
- // more consistent between the two.
- SizeType = UnsignedLong;
- PtrDiffType = SignedLong;
- IntPtrType = SignedLong;
HasUnalignedAccess = true;
+ if (T.isWALI()) {
+ // WALI ABI requires 64-bit longs on both wasm32 and wasm64
----------------
dschuff wrote:
Can you add a link to the ABI document (minimal as it is) here?
Also, you mention wasm64 here but you didn't actually add support or tests for wasm64 in this PR.
https://github.com/llvm/llvm-project/pull/156087
More information about the cfe-commits
mailing list