[all-commits] [llvm/llvm-project] 44d46c: [TableGen] Store CodeGenInstruction reference in E...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Apr 12 20:44:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44d46c4b3c1401c708b557e4d88d92b9bbfceb19
      https://github.com/llvm/llvm-project/commit/44d46c4b3c1401c708b557e4d88d92b9bbfceb19
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-04-12 (Wed, 12 Apr 2023)

  Changed paths:
    M llvm/utils/TableGen/DAGISelMatcher.cpp
    M llvm/utils/TableGen/DAGISelMatcher.h
    M llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
    M llvm/utils/TableGen/DAGISelMatcherGen.cpp
    M llvm/utils/TableGen/DAGISelMatcherOpt.cpp

  Log Message:
  -----------
  [TableGen] Store CodeGenInstruction reference in EmitNodeMatcherCommon. NFC

Instead of storing a string containing the instruction name, store a
reference to the instruction. We can use that reference to print the
instruction name when we emit the table.

The only slightly annoying part is that we have to find the
CodeGenInstruction for IMPLICIT_DEF. GlobalISel is doing
a similar thing.




More information about the All-commits mailing list