[all-commits] [llvm/llvm-project] 7f058c: [WebAssembly] Support opaque pointers in FixFuncti...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Sep 1 13:17:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f058ce8c2cb433bec71445c770fb3f7a401b3e4
      https://github.com/llvm/llvm-project/commit/7f058ce8c2cb433bec71445c770fb3f7a401b3e4
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-09-01 (Wed, 01 Sep 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
    M llvm/test/CodeGen/WebAssembly/function-bitcasts.ll
    M llvm/test/CodeGen/WebAssembly/main-declaration.ll

  Log Message:
  -----------
  [WebAssembly] Support opaque pointers in FixFunctionBitcasts

With opaque pointers, no actual bitcasts will be present. Instead,
there will be a mismatch between the call FunctionType and the
function ValueType. Change the code to collect CallBases
specifically (rather than general Uses) and compare these types.

RAUW is no longer performed, as there would no longer be any
bitcasts that can be RAUWd.

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




More information about the All-commits mailing list