[all-commits] [llvm/llvm-project] 245e3d: [MC] Do not copy MCInstrDescs. NFC.

Jay Foad via All-commits all-commits at lists.llvm.org
Mon Jan 23 03:56:05 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 245e3dd94851affe5f07d50dba7315f5faa500a2
      https://github.com/llvm/llvm-project/commit/245e3dd94851affe5f07d50dba7315f5faa500a2
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2023-01-23 (Mon, 23 Jan 2023)

  Changed paths:
    M llvm/include/llvm/MC/MCInstrDesc.h
    M llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h
    M llvm/lib/Target/Lanai/LanaiDelaySlotFiller.cpp
    M llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVInstPrinter.cpp
    M llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVMCCodeEmitter.cpp
    M llvm/unittests/CodeGen/LexicalScopesTest.cpp

  Log Message:
  -----------
  [MC] Do not copy MCInstrDescs. NFC.

Avoid copying MCInstrDesc instances because a future patch will change
them to find their implicit operands and operand info array based on
their own "this" pointer, so it will only work for MCInstrDescs in the
TargetInsts table, not for a copy of an MCInstrDesc at a different
address.

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




More information about the All-commits mailing list