[all-commits] [llvm/llvm-project] 9e832a: [Codegen][tablgen][NFC] Allow meta instruction to ...

KanRobert via All-commits all-commits at lists.llvm.org
Thu Mar 17 22:09:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e832a67fed404ed9ce806f5cfb3caec20ae9c73
      https://github.com/llvm/llvm-project/commit/9e832a67fed404ed9ce806f5cfb3caec20ae9c73
  Author: Shengchen Kan <shengchen.kan at intel.com>
  Date:   2022-03-18 (Fri, 18 Mar 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineInstr.h
    M llvm/include/llvm/MC/MCInstrDesc.h
    M llvm/include/llvm/Target/Target.td
    M llvm/unittests/CodeGen/LexicalScopesTest.cpp
    M llvm/utils/TableGen/CodeGenInstruction.cpp
    M llvm/utils/TableGen/CodeGenInstruction.h
    M llvm/utils/TableGen/InstrInfoEmitter.cpp

  Log Message:
  -----------
  [Codegen][tablgen][NFC] Allow meta instruction to be target dependent

An instruction is a meta-instruction if it doesn't produce any output
in the form of executable instructions. So in the concept, a
meta-instruction does not have to be target independent.

Before this patch, `isMetaInstruction` is implemented by checking the
opcode of the instruction, add we have no way to add target dependent
opcode to the list, which does not make sense.

After this patch, a bit `isMeta` is added for class `Instruction` in
tablegen, which is used to indicate whether it's a meta instruction.

Reviewed By: pengfei

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




More information about the All-commits mailing list