[PATCH] D121600: [Codegen] Allow meta instruction to be target dependent

Kan Shengchen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 14 06:30:19 PDT 2022


skan created this revision.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
skan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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

This fixes the bug that `Int_MemBarrier` for target X86 and Xcore
should be marked as a meta instruction but not.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121600

Files:
  llvm/include/llvm/CodeGen/MachineInstr.h
  llvm/include/llvm/MC/MCInstrDesc.h
  llvm/include/llvm/Target/Target.td
  llvm/lib/Target/X86/X86InstrCompiler.td
  llvm/lib/Target/XCore/XCoreInstrInfo.td
  llvm/unittests/CodeGen/LexicalScopesTest.cpp
  llvm/unittests/MIR/MachineMetadata.cpp
  llvm/utils/TableGen/CodeGenInstruction.cpp
  llvm/utils/TableGen/CodeGenInstruction.h
  llvm/utils/TableGen/InstrInfoEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121600.415083.patch
Type: text/x-patch
Size: 10026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220314/7929aed4/attachment.bin>


More information about the llvm-commits mailing list