[clang] [llvm] [WebAssembly] Represent reference types as TargetExtType (PR #203165)
Hood Chatham via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 07:58:54 PDT 2026
================
@@ -1134,6 +1132,12 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
TargetExtType::CanBeVectorElement);
}
+ // Opaque types in the WebAssembly name space.
+ if (Name == "wasm.funcref" || Name == "wasm.externref")
+ return TargetTypeInfo(PointerType::getUnqual(C), TargetExtType::HasZeroInit,
----------------
hoodmane wrote:
Yeah it's a pretty small change, will add it to this PR.
https://github.com/llvm/llvm-project/pull/203165
More information about the cfe-commits
mailing list