llvm/lib/MC
Lang Hames 875b7560fb [MachO] Add MachO alt-entry directive support.
This patch adds support for the MachO .alt_entry assembly directive, and uses
it for global aliases with non-zero GEP offsets. The alt_entry flag indicates
that a symbol should be layed out immediately after the preceding symbol.
Conceptually it introduces an alternate entry point for a function or data
structure. E.g.:

safe_foo:
  // check preconditions for foo
.alt_entry fast_foo
fast_foo:
  // body of foo, can assume preconditions.

The .alt_entry flag is also implicitly set on assembly aliases of the form:

a = b + C

where C is a non-zero constant, since these have the same effect as an
alt_entry symbol: they introduce a label that cannot be moved relative to the
preceding one. Setting the alt_entry flag on aliases of this form fixes
http://llvm.org/PR25381.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263521 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-15 01:43:05 +00:00
..
MCDisassembler One more batch of self-containing headers. 2016-01-27 19:29:56 +00:00
MCParser [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
ConstantPools.cpp
ELFObjectWriter.cpp Fix Clang-tidy readability-redundant-control-flow warnings; other minor fixes. 2016-02-02 18:20:45 +00:00
LLVMBuild.txt
MachObjectWriter.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAsmBackend.cpp [MC, COFF] Add .reloc support for WinCOFF 2016-01-19 23:05:27 +00:00
MCAsmInfo.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAsmInfoELF.cpp
MCAsmStreamer.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCAssembler.cpp [MC] Add support for encoding CodeView variable definition ranges 2016-02-05 01:55:49 +00:00
MCCodeEmitter.cpp
MCCodeGenInfo.cpp
MCCodeView.cpp [codeview] Fix emission of file changes in inline line tables 2016-02-19 23:55:38 +00:00
MCContext.cpp Reland "[CodeView] Use assembler directives for line tables" 2016-01-29 00:49:42 +00:00
MCDwarf.cpp Don't crash when compiling inline assembler containing .file directives. 2016-03-09 17:32:56 +00:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCExpr.cpp [MC] Rename TLSCALL as it's not ARM specific. 2016-03-15 00:25:22 +00:00
MCFragment.cpp [MC] Add support for encoding CodeView variable definition ranges 2016-02-05 01:55:49 +00:00
MCInst.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCInstPrinter.cpp
MCInstrAnalysis.cpp
MCInstrDesc.cpp
MCLabel.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCLinkerOptimizationHint.cpp
MCMachObjectTargetWriter.cpp
MCMachOStreamer.cpp [MachO] Add MachO alt-entry directive support. 2016-03-15 01:43:05 +00:00
MCNullStreamer.cpp
MCObjectFileInfo.cpp [lanai] Add ELF enum value and relocations. 2016-03-01 21:21:42 +00:00
MCObjectStreamer.cpp [MC] Add support for encoding CodeView variable definition ranges 2016-02-05 01:55:49 +00:00
MCObjectWriter.cpp
MCRegisterInfo.cpp [codeview] Bail on a DBG_VALUE register operand with no register 2016-02-16 21:49:26 +00:00
MCSchedule.cpp
MCSection.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCSectionCOFF.cpp
MCSectionELF.cpp
MCSectionMachO.cpp
MCStreamer.cpp Add capability to push/pop DFI in MCStreamer. NFC 2016-02-24 22:25:18 +00:00
MCSubtargetInfo.cpp
MCSymbol.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCSymbolELF.cpp
MCTargetOptions.cpp
MCValue.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCWin64EH.cpp
MCWinEH.cpp
StringTableBuilder.cpp Add support for merging strings with alignment larger than one char. 2016-02-19 14:13:52 +00:00
SubtargetFeature.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
WinCOFFObjectWriter.cpp [MC] Add support for encoding CodeView variable definition ranges 2016-02-05 01:55:49 +00:00
WinCOFFStreamer.cpp