[all-commits] [llvm/llvm-project] 46667a: [WebAssembly] Implementation of global.get/set for...

Paulo Matos via All-commits all-commits at lists.llvm.org
Thu Jul 22 13:07:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46667a10039b664b953eb70534c27627b35a267d
      https://github.com/llvm/llvm-project/commit/46667a10039b664b953eb70534c27627b35a267d
  Author: Paulo Matos <pmatos at igalia.com>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

  Changed paths:
    M clang/lib/Basic/Targets/WebAssembly.h
    M clang/test/CodeGen/target-data.c
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/include/llvm/CodeGen/ValueTypes.h
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/lib/CodeGen/MachineOperand.cpp
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    M llvm/lib/CodeGen/ValueTypes.cpp
    M llvm/lib/Target/WebAssembly/Utils/WebAssemblyUtilities.cpp
    M llvm/lib/Target/WebAssembly/Utils/WebAssemblyUtilities.h
    M llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyISD.def
    M llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrTable.td
    M llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
    A llvm/test/CodeGen/WebAssembly/externref-globalget.ll
    A llvm/test/CodeGen/WebAssembly/externref-globalset.ll
    A llvm/test/CodeGen/WebAssembly/externref-inttoptr.ll
    A llvm/test/CodeGen/WebAssembly/externref-ptrtoint.ll
    A llvm/test/CodeGen/WebAssembly/externref-undef.ll
    A llvm/test/CodeGen/WebAssembly/externref-unsized-load.ll
    A llvm/test/CodeGen/WebAssembly/externref-unsized-store.ll
    A llvm/test/CodeGen/WebAssembly/funcref-call.ll
    A llvm/test/CodeGen/WebAssembly/funcref-globalget.ll
    A llvm/test/CodeGen/WebAssembly/funcref-globalset.ll

  Log Message:
  -----------
  [WebAssembly] Implementation of global.get/set for reftypes in LLVM IR

Reland of 31859f896.

This change implements new DAG notes GLOBAL_GET/GLOBAL_SET, and
lowering methods for load and stores of reference types from IR
globals. Once the lowering creates the new nodes, tablegen pattern
matches those and converts them to Wasm global.get/set.

Reviewed By: tlively

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




More information about the All-commits mailing list