[PATCH] D122215: [WebAssembly] Initial support for reference type externref in clang
Alex Bradbury via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 20 06:17:26 PDT 2022
asb added a comment.
I've left one minor comment. My other suggestion would be to absorb in the semantic restrictions work from here <https://gist.github.com/asb/b8701efe35cf99bc8fd606b9ca984337>.
================
Comment at: llvm/lib/IR/Type.cpp:307
+Type *Type::getWasm_ExternrefTy(LLVMContext &C) {
+ // pointer to opaque struct in addrspace(10)
----------------
With the move to opaque pointers, I think this and getWasm_FuncRefTy could be updated to just return a pointer to addrspace 10 and 20 respectively?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122215/new/
https://reviews.llvm.org/D122215
More information about the cfe-commits
mailing list