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

Paulo Matos via All-commits all-commits at lists.llvm.org
Fri Jul 2 00:46:51 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4facbf213c51e4add2e8c19b08d5e58ad71c72de
      https://github.com/llvm/llvm-project/commit/4facbf213c51e4add2e8c19b08d5e58ad71c72de
  Author: Paulo Matos <pmatos at igalia.com>
  Date:   2021-07-02 (Fri, 02 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.

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




More information about the All-commits mailing list