llvm-project/llvm/test
Teresa Johnson 2db1369c1f Support for taking the max of module flags when linking, use for PIE/PIC
Summary:
Add Max ModFlagBehavior, which can be used to take the max of two
module flag values when merging modules. Use it for the PIE and PIC
levels.

This avoids an error when we try to import from a module built -fpic
into a module built -fPIC, for example. For both PIE and PIC levels,
this will be legal, since the code generation gets more conservative
as the level is increased. Therefore we can take the max instead of
somehow trying to block importing between modules compiled with
different levels.

Reviewers: tmsriram, pcc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D33418

llvm-svn: 303590
2017-05-23 00:08:00 +00:00
..
Analysis [SCEV] Clarify behavior around max backedge taken count 2017-05-22 06:46:04 +00:00
Assembler [IR] Allow attributes with global variables 2017-05-11 12:28:08 +00:00
Bindings
Bitcode Add "REQUIRES:" to the last few tests that use target specific intrinsics 2017-05-15 22:15:22 +00:00
BugPoint llvm/test/BugPoint/compile-custom.ll: Use %/s for its path not to be mis-escaped. 2017-04-13 11:40:32 +00:00
CodeGen [AMDGPU] Narrow lshl from 64 to 32 bit if possible 2017-05-22 16:58:10 +00:00
DebugInfo Implement various flavors of type merging. 2017-05-22 21:07:43 +00:00
Examples
ExecutionEngine [RuntimeDyld] Fix debug section relocation (pr20457) 2017-05-17 08:47:28 +00:00
Feature Test for r303197 2017-05-16 20:53:27 +00:00
FileCheck
Instrumentation Update three tests I missed in r302979 and r302990 2017-05-18 00:58:06 +00:00
Integer
JitListener
LTO Revert "Revert "ThinLTO: Verify bitcode before lauching the ThinLTOCodeGenerator."" 2017-05-20 00:00:08 +00:00
LibDriver
Linker Support for taking the max of module flags when linking, use for PIE/PIC 2017-05-23 00:08:00 +00:00
MC Re-apply r302416: [ARM] Clear the constant pool cache on explicit .ltorg directives 2017-05-22 09:42:07 +00:00
Object Add support for handling ifuncs to GlobalValue::getBaseObject 2017-05-15 18:28:29 +00:00
ObjectYAML [WebAssembly] Improve libObject support for wasm imports and exports 2017-05-09 23:48:41 +00:00
Other [PM] Add ProfileSummaryAnalysis as a required pass in the new pipeline. 2017-05-04 16:58:45 +00:00
SymbolRewriter
TableGen Revert r303259 - [globalisel][tablegen] Import rules containing intrinsic_wo_chain. 2017-05-22 10:14:33 +00:00
ThinLTO/X86 [ThinLTO] Do not assert when adding a module with a different but 2017-05-18 03:52:29 +00:00
Transforms InstructionSimplify: don't speculate about Constants changing. 2017-05-22 21:28:08 +00:00
Unit [Lit] Fix to prevent creation of "%SystemDrive%" directory on Windows. 2017-05-08 08:55:38 +00:00
Verifier Support for taking the max of module flags when linking, use for PIE/PIC 2017-05-23 00:08:00 +00:00
YAMLParser
tools Infer relocation model from module flags in relocatable LTO link. 2017-05-22 21:11:35 +00:00
.clang-format
CMakeLists.txt Add a dependency from llvm/test to llvm-cvtres. 2017-04-21 20:45:11 +00:00
TestRunner.sh
lit.cfg
lit.site.cfg.in