[all-commits] [llvm/llvm-project] 920306: [WebAssembly][TableGen][NFCI] Use getValueAsBit ra...

Alex Bradbury via All-commits all-commits at lists.llvm.org
Mon May 16 10:50:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92030635318d615f72cd0cd539e458f9cdd9949b
      https://github.com/llvm/llvm-project/commit/92030635318d615f72cd0cd539e458f9cdd9949b
  Author: Alex Bradbury <asb at igalia.com>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M llvm/utils/TableGen/WebAssemblyDisassemblerEmitter.cpp

  Log Message:
  -----------
  [WebAssembly][TableGen][NFCI] Use getValueAsBit rather than converting TableGen 'bit' to string

The logic around IsCanonical previously used getAsString and compared to
"1". Just using getValueAsBit is simpler.




More information about the All-commits mailing list