llvm-6502/lib/Transforms
Rafael Espindola d1b6ca23b4 Change how globalopt handles aliases in llvm.used.
Instead of a custom implementation of replaceAllUsesWith, we just call
replaceAllUsesWith and recreate llvm.used and llvm.compiler-used.

This change is particularity interesting because it makes llvm see
through what clang is doing with static used functions in extern "C"
contexts. With this change, running clang -O2 in

extern "C" {
  __attribute__((used)) static void foo() {}
}

produces

@llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to
i8*)], section "llvm.metadata"
define internal void @foo() #0 {
entry:
  ret void
}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183756 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-11 17:48:06 +00:00
..
Hello
InstCombine Simplify code. No functionality change. 2013-06-06 23:34:59 +00:00
Instrumentation [asan] ASan Linux MIPS32 support (llvm part), patch by Jyun-Yan Y 2013-06-03 14:46:56 +00:00
IPO Change how globalopt handles aliases in llvm.used. 2013-06-11 17:48:06 +00:00
ObjCARC [objc-arc] Ensure that the cfg path count does not overflow when we multiply TopDownPathCount/BottomUpPathCount. 2013-06-07 06:16:49 +00:00
Scalar Fix a potential bug in r183584. 2013-06-08 04:56:05 +00:00
Utils Second part of pr16069 2013-06-04 14:11:59 +00:00
Vectorize
CMakeLists.txt
LLVMBuild.txt Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer. 2013-01-28 01:35:51 +00:00
Makefile