[all-commits] [llvm/llvm-project] 103fa3: [WebAssembly] Use ValType instead of integer types...

Derek Schuff via All-commits all-commits at lists.llvm.org
Wed Jan 17 11:29:31 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 103fa3250c46b0c4cf04573c5e075185ca574016
      https://github.com/llvm/llvm-project/commit/103fa3250c46b0c4cf04573c5e075185ca574016
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2024-01-17 (Wed, 17 Jan 2024)

  Changed paths:
    M lld/wasm/InputFiles.cpp
    M lld/wasm/SymbolTable.cpp
    M llvm/include/llvm/BinaryFormat/Wasm.h
    M llvm/include/llvm/BinaryFormat/WasmTraits.h
    M llvm/include/llvm/MC/MCSymbolWasm.h
    M llvm/lib/MC/WasmObjectWriter.cpp
    M llvm/lib/Object/WasmObjectFile.cpp
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyUtilities.cpp
    M llvm/tools/obj2yaml/wasm2yaml.cpp

  Log Message:
  -----------
  [WebAssembly] Use ValType instead of integer types to model wasm tables (#78012)

LLVM models some features found in the binary format with raw integers
and others with nested or enumerated types. This PR switches modeling of
tables and segments to use wasm::ValType rather than uint32_t. This NFC
change is in preparation for modeling more reference types, but IMO is
also cleaner and closer to the spec.




More information about the All-commits mailing list