[PATCH] D107102: [WebAssembly] Add new pass to lower int/ptr conversions of reftypes

Paulo Matos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 29 13:46:06 PDT 2021


pmatos created this revision.
pmatos added a reviewer: tlively.
Herald added subscribers: ecnelises, sunfish, hiraditya, jgravelle-google, arichardson, sbc100, mgorny, dschuff.
pmatos requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

Add new pass LowerRefTypesIntPtrConv to generate unreachable
instruction for an inttoptr and ptrtoint of a reference type instead
of erroring, since calling these instructions on non-integral pointers
has been since allowed (see ac81cb7e6 <https://reviews.llvm.org/rGac81cb7e6dde9b0890ee1780eae94ab96743569b>).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107102

Files:
  llvm/lib/Target/WebAssembly/CMakeLists.txt
  llvm/lib/Target/WebAssembly/WebAssembly.h
  llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyLowerRefTypesIntPtrConv.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
  llvm/test/CodeGen/WebAssembly/externref-inttoptr.ll
  llvm/test/CodeGen/WebAssembly/externref-ptrtoint.ll
  llvm/utils/gn/secondary/llvm/lib/Target/WebAssembly/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107102.362873.patch
Type: text/x-patch
Size: 10199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/a59a4cf0/attachment.bin>


More information about the llvm-commits mailing list