1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/MC
Ronak Chauhan 94e53ef1f1 [MC] Changes to help improve target specific symbol disassembly
Summary:
This commit slightly modifies the MCDisassembler, and llvm-objdump to
allow targets to also decode entire symbols.

WebAssembly uses the onSymbolStart hook it to decode preludes.
WebAssembly partially disassembles the symbol in its target specific
way; and then falls back to the normal flow of llvm-objdump.

AMDGPU needs it to decode kernel descriptors entirely, and move to the
next symbol.

This commit is to split the above task into 2.
- Changes to llvm-objdump and MC-layer without breaking WebAssembly code
  [ this commit ]
- AMDGPU's implementation of onSymbolStart that decodes kernel
  descriptors. [ https://reviews.llvm.org/D80713 ]

Reviewers: scott.linder, t-tye, sunfish, arsenm, jhenderson, MaskRay, aardappel

Reviewed By: scott.linder, jhenderson, aardappel

Subscribers: bcain, dschuff, wdng, tpr, sbc100, jgravelle-google, hiraditya, aheejin, MaskRay, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80512
2020-06-12 15:51:37 -04:00
..
MCDisassembler [MC] Changes to help improve target specific symbol disassembly 2020-06-12 15:51:37 -04:00
MCParser [MC][NFC] Use camelCase style for functions in MCObjectStreamer 2020-04-20 20:09:20 -07:00
CMakeLists.txt [NFC][XCOFF][AIX] Refactor get/setContainingCsect 2020-04-03 13:33:12 +00:00
ConstantPools.cpp [MCStreamer] De-capitalize EmitValue EmitIntValue{,InHex} 2020-02-14 23:08:40 -08:00
ELFObjectWriter.cpp MCObjectWriter.h - remove Endian.h/EndianStream.h/raw_ostream.h includes. NFC 2020-04-17 10:44:08 +01:00
LLVMBuild.txt
MachObjectWriter.cpp [MC] Rename MCSection*::getSectionName() to getName(). NFC 2020-04-15 16:48:14 -07:00
MCAsmBackend.cpp
MCAsmInfo.cpp [MC] Default MCAsmInfo::UseIntegratedAssembler to true 2020-04-11 10:13:52 -07:00
MCAsmInfoCOFF.cpp [MC] Default MCAsmInfo::UseIntegratedAssembler to true 2020-04-11 10:13:52 -07:00
MCAsmInfoDarwin.cpp [MC] Rename MCSection*::getSectionName() to getName(). NFC 2020-04-15 16:48:14 -07:00
MCAsmInfoELF.cpp
MCAsmInfoWasm.cpp
MCAsmInfoXCOFF.cpp [NFC] clean up the AsmPrinter::emitLinkage for AIX part 2020-06-11 13:33:51 -04:00
MCAsmMacro.cpp
MCAsmStreamer.cpp [AIX] supporting the visibility attribute for aix assembly 2020-06-09 16:15:06 -04:00
MCAssembler.cpp [MC][Bugfix] Remove redundant parameter for relaxInstruction 2020-04-21 11:06:55 +08:00
MCCodeEmitter.cpp
MCCodeView.cpp [MC][NFC] Use camelCase style for functions in MCObjectStreamer 2020-04-20 20:09:20 -07:00
MCContext.cpp [Clang] Restore replace_path_prefix instead of startswith 2020-05-13 13:49:14 -04:00
MCDwarf.cpp [MCDwarf] Delete unneeded DW_AT_unspecified_parameters 2020-05-24 22:36:57 -07:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp Clean up warnings after a2c8cd18128d3529992a86998d2bea80cceafff0 2020-04-30 17:01:30 +02:00
MCExpr.cpp [PowerPC] Fix missing GOT indirect variant kind 2020-05-06 05:50:56 -05:00
MCFragment.cpp Adjust debug output for MCRelaxableFragment to include the size so that sanity checking relaxation offsets from -debug output is easier 2020-03-13 16:22:46 -07:00
MCInst.cpp
MCInstPrinter.cpp [TableGen] Support combining AssemblerPredicates with ORs 2020-03-13 17:13:51 +00:00
MCInstrAnalysis.cpp [MC] Move MCInstrAnalysis::evaluateBranch to X86MCInstrAnalysis::evaluateBranch 2020-04-29 23:23:52 -07:00
MCInstrDesc.cpp [MC] Move deprecation infos from MCTargetDesc to MCInstrInfo 2020-03-29 21:20:40 +02:00
MCInstrInfo.cpp [MC] Move deprecation infos from MCTargetDesc to MCInstrInfo 2020-03-29 21:20:40 +02:00
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp Clean up warnings after a2c8cd18128d3529992a86998d2bea80cceafff0 2020-04-30 17:01:30 +02:00
MCNullStreamer.cpp [MC] De-capitalize MCStreamer::Emit{Bundle,Addrsig}* etc 2020-02-15 09:11:48 -08:00
MCObjectFileInfo.cpp [DWARF5] Added support for emission of .debug_macro.dwo section 2020-05-30 11:13:23 +05:30
MCObjectStreamer.cpp [NFC] Clean up in MCObjectStreamer and X86AsmBackend 2020-05-09 12:50:44 +08:00
MCObjectWriter.cpp
MCRegisterInfo.cpp
MCSchedule.cpp
MCSection.cpp [MC][COFF][ELF] Reject instructions in IMAGE_SCN_CNT_UNINITIALIZED_DATA/SHT_NOBITS sections 2020-04-15 21:02:47 -07:00
MCSectionCOFF.cpp [MC][COFF][ELF] Reject instructions in IMAGE_SCN_CNT_UNINITIALIZED_DATA/SHT_NOBITS sections 2020-04-15 21:02:47 -07:00
MCSectionELF.cpp [MC][COFF][ELF] Reject instructions in IMAGE_SCN_CNT_UNINITIALIZED_DATA/SHT_NOBITS sections 2020-04-15 21:02:47 -07:00
MCSectionMachO.cpp [MC] Replace MCSection*::getName() with MCSection::getName(). NFC 2020-04-15 18:35:27 -07:00
MCSectionWasm.cpp [MC] Replace MCSection*::getName() with MCSection::getName(). NFC 2020-04-15 18:35:27 -07:00
MCSectionXCOFF.cpp [NFC][AIX] Remove spaces after the comma for '.csect' directive 2020-05-22 11:10:32 -04:00
MCStreamer.cpp [AIX] supporting the visibility attribute for aix assembly 2020-06-09 16:15:06 -04:00
MCSubtargetInfo.cpp [ADT/STLExtras.h] - Add llvm::is_sorted wrapper and update callers. 2020-04-14 14:11:02 +03:00
MCSymbol.cpp
MCSymbolELF.cpp
MCSymbolXCOFF.cpp [NFC][XCOFF][AIX] Refactor get/setContainingCsect 2020-04-03 13:33:12 +00:00
MCTargetOptions.cpp [ms] [llvm-ml] Add a draft MASM parser 2020-02-16 12:30:46 -05:00
MCTargetOptionsCommandFlags.cpp MCTargetOptionsCommandFlags.h - remove unnecessary includes. NFC. 2020-05-19 15:15:26 +01:00
MCValue.cpp
MCWasmObjectTargetWriter.cpp
MCWasmStreamer.cpp [MC][NFC] Use camelCase style for functions in MCObjectStreamer 2020-04-20 20:09:20 -07:00
MCWin64EH.cpp [MC] Add MCStreamer::emitInt{8,16,32,64} 2020-02-29 09:40:21 -08:00
MCWinCOFFStreamer.cpp [MC][NFC] Use camelCase style for functions in MCObjectStreamer 2020-04-20 20:09:20 -07:00
MCWinEH.cpp
MCXCOFFObjectTargetWriter.cpp
MCXCOFFStreamer.cpp [AIX] supporting the visibility attribute for aix assembly 2020-06-09 16:15:06 -04:00
StringTableBuilder.cpp
SubtargetFeature.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
WasmObjectWriter.cpp [WebAssembly] Add placeholders for R_WASM_TABLE_INDEX_REL_SLEB relocations 2020-05-29 10:57:26 -07:00
WinCOFFObjectWriter.cpp MCObjectWriter.h - remove Endian.h/EndianStream.h/raw_ostream.h includes. NFC 2020-04-17 10:44:08 +01:00
XCOFFObjectWriter.cpp [XCOFF][AIX] report_fatal_error when an overflow section is needed 2020-06-08 19:59:04 +00:00