llvm-6502/lib/IR
Justin Hibbits 893f22f882 Add Position-independent Code model Module API.
Summary:
This makes PIC levels a Module flag attribute, which can be queried by the
backend.  The flag is named `PIC Level`, and can have a value of:

  0 - Backend-default
  1 - Small-model (-fpic)
  2 - Large-model (-fPIC)

These match the `-pic-level' command line argument for clang, and the value of the
preprocessor macro `__PIC__'.

Test Plan:
New flags tests specific for the 'PIC Level' module flag.
Tests to be added as part of a future commit for PowerPC, which will use this new API.

Reviewers: rafael, echristo

Reviewed By: rafael, echristo

Subscribers: rafael, llvm-commits

Differential Revision: http://reviews.llvm.org/D5882

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221510 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-07 04:46:10 +00:00
..
AsmWriter.cpp IR: MDNode => Value: AsmWriter SlotTracker API 2014-11-05 17:56:28 +00:00
AsmWriter.h
AttributeImpl.h
Attributes.cpp
AutoUpgrade.cpp Remove obsolete ARM intrinsics vclz and vcnt 2014-11-05 21:02:55 +00:00
BasicBlock.cpp
CMakeLists.txt
Comdat.cpp
ConstantFold.cpp
ConstantFold.h
ConstantRange.cpp
Constants.cpp
ConstantsContext.h
Core.cpp IR: MDNode => Value: NamedMDNode::getOperator() 2014-11-05 18:16:03 +00:00
DataLayout.cpp
DebugInfo.cpp IR: MDNode => Value: NamedMDNode::getOperator() 2014-11-05 18:16:03 +00:00
DebugLoc.cpp
DiagnosticInfo.cpp IR: MDNode => Value: Instruction::getMetadata() 2014-11-01 00:10:31 +00:00
DiagnosticPrinter.cpp
DIBuilder.cpp Try to appease MSVC buildbots after r221466. 2014-11-06 19:00:47 +00:00
Dominators.cpp
Function.cpp
GCOV.cpp GCOV: Make sure that function idents in the .gcda and .gcno match 2014-11-06 06:55:02 +00:00
Globals.cpp
GVMaterializer.cpp
InlineAsm.cpp
Instruction.cpp IR: MDNode => Value: Instruction::getAllMetadataOtherThanDebugLoc() 2014-11-03 18:13:57 +00:00
Instructions.cpp IR: MDNode => Value: Instruction::getMetadata() 2014-11-01 00:10:31 +00:00
IntrinsicInst.cpp
IRBuilder.cpp
IRPrintingPasses.cpp
LeakDetector.cpp
LeaksContext.h
LegacyPassManager.cpp Remove redundant calls to isMaterializable. 2014-11-01 16:46:18 +00:00
LLVMBuild.txt
LLVMContext.cpp
LLVMContextImpl.cpp
LLVMContextImpl.h
Makefile
Mangler.cpp
MDBuilder.cpp
Metadata.cpp IR: MDNode => Value: NamedMDNode::getOperator() 2014-11-05 18:16:03 +00:00
Module.cpp Add Position-independent Code model Module API. 2014-11-07 04:46:10 +00:00
module.modulemap
Pass.cpp
PassManager.cpp
PassRegistry.cpp
SymbolTableListTraitsImpl.h
Type.cpp
TypeFinder.cpp IR: MDNode => Value: NamedMDNode::getOperator() 2014-11-05 18:16:03 +00:00
Use.cpp
UseListOrder.cpp
User.cpp
Value.cpp
ValueSymbolTable.cpp
ValueTypes.cpp
Verifier.cpp IR: MDNode => Value: NamedMDNode::getOperator() 2014-11-05 18:16:03 +00:00