[all-commits] [llvm/llvm-project] ce1c59: [WebAssembly] Add new pass to lower int/ptr conver...

Paulo Matos via All-commits all-commits at lists.llvm.org
Mon Aug 2 10:40:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce1c59dea6d01e8ec3d4cb911438254283e4646c
      https://github.com/llvm/llvm-project/commit/ce1c59dea6d01e8ec3d4cb911438254283e4646c
  Author: Paulo Matos <pmatos at igalia.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

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

  Log Message:
  -----------
  [WebAssembly] Add new pass to lower int/ptr conversions of reftypes

Add new pass LowerRefTypesIntPtrConv to generate trap
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).

Differential Revision: https://reviews.llvm.org/D107102




More information about the All-commits mailing list