[PATCH] D71453: [llvm-objdump] Print target address instead of call/j/br pc-rel immediate

Sergio Perez Gonzalez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 14:39:14 PST 2020


sperezglz updated this revision to Diff 235949.
sperezglz added a comment.

I used a different approach in this update, adding a command line option and leaving the target's instruction printers untouched, that should be friendlier with existing tests. The other thing I had to do was to create an "indirect call" property, only added it to x86 , this was needed because a target address shouldn't be calculated (or printed) for indirect calls and I needed a way to identify them.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71453/new/

https://reviews.llvm.org/D71453

Files:
  llvm/include/llvm/CodeGen/MachineInstr.h
  llvm/include/llvm/MC/MCInstrAnalysis.h
  llvm/include/llvm/MC/MCInstrDesc.h
  llvm/include/llvm/Target/Target.td
  llvm/lib/Target/X86/X86InstrControl.td
  llvm/tools/llvm-objdump/llvm-objdump.cpp
  llvm/utils/TableGen/CodeGenInstruction.cpp
  llvm/utils/TableGen/CodeGenInstruction.h
  llvm/utils/TableGen/InstrDocsEmitter.cpp
  llvm/utils/TableGen/InstrInfoEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71453.235949.patch
Type: text/x-patch
Size: 18958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200102/a4d94673/attachment.bin>


More information about the llvm-commits mailing list