[PATCH] [RFC] Deprecated feature in TableGen

Joey Gouly joey.gouly at arm.com
Wed Aug 14 09:05:15 PDT 2013


Hello all,

Attached is a quick patch I wrote, to show a simple way of supporting a Deprecated feature in TableGen.
This patch allows you to specify for an Instruction a SubtargetFeature that will define whether an instruction is deprecated or not.
I also added support for a CustomDeprecatedMethod, that allows you to operate on an MCInst directly, to decide if it is deprecated.

In the ARM backend v8 deprecates SETEND, v6+ deprecates SWP/SWPB and the CP15ISB/DSB instructions. Is there enough general use for this?

Thanks,
Joey

http://llvm-reviews.chandlerc.com/D1399

Files:
  include/llvm/MC/MCInstrDesc.h
  include/llvm/Target/Target.td
  lib/Target/ARM/ARMInstrInfo.td
  lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
  test/MC/ARM/deprecated-v8.s
  tools/llvm-mc/Disassembler.cpp
  tools/llvm-mc/Disassembler.h
  tools/llvm-mc/llvm-mc.cpp
  utils/TableGen/CodeGenInstruction.cpp
  utils/TableGen/CodeGenInstruction.h
  utils/TableGen/InstrInfoEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1399.1.patch
Type: text/x-patch
Size: 12157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130814/3e8e549b/attachment.bin>


More information about the llvm-commits mailing list