llvm-6502/include/llvm/IR
Rafael Espindola 6880f0e19f Fix PR18743.
The IR
@foo = private constant i32 42

is valid, but before this patch we would produce an invalid MachO from it. It
was invalid because it would use an L label in a section where the liker needs
the labels in order to atomize it.

One way of fixing it would be to just reject this IR in the backend, but that
would not be very front end friendly.

What this patch does is use an 'l' prefix in sections that we know the linker
requires symbols for atomizing them. This allows frontends to just use
private and not worry about which sections they go to or how the linker handles
them.

One small issue with this strategy is that now a symbol name depends on the
section, which is not available before codegen. This is not a problem in
practice. The reason is that it only happens with private linkage, which will
be ignored by the non codegen users (llvm-nm and llvm-ar).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201608 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-18 22:24:57 +00:00
..
Argument.h Add an inalloca flag to allocas 2014-01-17 23:58:17 +00:00
AssemblyAnnotationWriter.h Move the LLVM IR asm writer header files into the IR directory, as they 2014-01-07 12:34:26 +00:00
Attributes.h
BasicBlock.h
CallingConv.h [ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret' 2014-01-31 17:41:22 +00:00
CMakeLists.txt
Constant.h
Constants.h Add a const lookup routine to get a BlockAddress constant if there is 2014-01-19 02:13:50 +00:00
DataLayout.h Use 'w' instead of 'c' to represent the win32 mangling. 2014-01-10 13:42:12 +00:00
DerivedTypes.h
DiagnosticInfo.h Report a warning when dropping outdated debug info metadata. 2014-01-16 01:51:12 +00:00
DiagnosticPrinter.h Report a warning when dropping outdated debug info metadata. 2014-01-16 01:51:12 +00:00
Dominators.h Remove unnecessary typename introduced in r201440. 2014-02-15 00:34:43 +00:00
Function.h
GlobalAlias.h
GlobalValue.h Check that GlobalAliases don't have section or alignment. 2014-02-13 18:26:41 +00:00
GlobalVariable.h
InlineAsm.h
InstrTypes.h
Instruction.def
Instruction.h Fix pr14893. 2014-01-28 16:56:46 +00:00
Instructions.h Add an inalloca flag to allocas 2014-01-17 23:58:17 +00:00
IntrinsicInst.h
Intrinsics.h
Intrinsics.td
IntrinsicsAArch64.td AArch64 & ARM: refactor crypto intrinsics to take scalars 2014-02-03 17:27:49 +00:00
IntrinsicsARM.td ARM: use natural LLVM IR for vshll instructions 2014-02-10 16:20:29 +00:00
IntrinsicsHexagon.td
IntrinsicsMips.td [mips][msa] Add DLSA instruction. 2014-02-10 12:05:17 +00:00
IntrinsicsNVVM.td
IntrinsicsPowerPC.td
IntrinsicsR600.td
IntrinsicsX86.td Changed attributes of all gather intrinsics from IntrReadMem to IntrReadArgMem as they access only memory based on argument. Patch by Robert Khasanov. 2014-02-11 04:05:33 +00:00
IntrinsicsXCore.td
IRBuilder.h
IRPrintingPasses.h [PM] Fix stale header blocker, found by Duncan Smith in code review! 2014-01-14 05:50:19 +00:00
LegacyPassManager.h
LegacyPassManagers.h
LLVMContext.h Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
Mangler.h Fix PR18743. 2014-02-18 22:24:57 +00:00
MDBuilder.h
Metadata.h
Module.h Return an error_code from materializeAllPermanently. 2014-01-14 23:51:27 +00:00
OperandTraits.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
Operator.h Fix more instances of dropped fast math flags when optimizing FADD instructions. All found by inspection (aka grep). 2014-01-18 00:48:14 +00:00
PassManager.h [PM] Don't require analysis results to be const in the new pass manager. 2014-02-05 21:41:42 +00:00
SymbolTableListTraits.h
Type.h Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
TypeBuilder.h
TypeFinder.h
Use.h Re-sort all of the includes with ./utils/sort_includes.py so that 2014-01-07 11:48:04 +00:00
User.h
Value.h Put the functionality for printing a value to a raw_ostream as an 2014-01-09 02:29:41 +00:00
ValueSymbolTable.h
Verifier.h [PM] Wire up the Verifier for the new pass manager and connect it to the 2014-01-20 11:34:08 +00:00