llvm-6502/lib/Transforms/Instrumentation
Benjamin Kramer 8e0d1c03ca Make MemoryBuiltins aware of TargetLibraryInfo.
This disables malloc-specific optimization when -fno-builtin (or -ffreestanding)
is specified. This has been a problem for a long time but became more severe
with the recent memory builtin improvements.

Since the memory builtin functions are used everywhere, this required passing
TLI in many places. This means that functions that now have an optional TLI
argument, like RecursivelyDeleteTriviallyDeadFunctions, won't remove dead
mallocs anymore if the TLI argument is missing. I've updated most passes to do
the right thing.

Fixes PR13694 and probably others.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162841 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29 15:32:21 +00:00
..
AddressSanitizer.cpp [asan/tsan] rename FunctionBlackList* to BlackList* as this class is not limited to functions any more 2012-08-24 16:44:47 +00:00
BlackList.cpp [asan/tsan] rename FunctionBlackList* to BlackList* as this class is not limited to functions any more 2012-08-24 16:44:47 +00:00
BlackList.h [asan/tsan] rename FunctionBlackList* to BlackList* as this class is not limited to functions any more 2012-08-24 16:44:47 +00:00
BoundsChecking.cpp Make MemoryBuiltins aware of TargetLibraryInfo. 2012-08-29 15:32:21 +00:00
CMakeLists.txt [asan/tsan] rename FunctionBlackList* to BlackList* as this class is not limited to functions any more 2012-08-24 16:44:47 +00:00
EdgeProfiling.cpp land David Blaikie's patch to de-constify Type, with a few tweaks. 2011-07-18 04:54:35 +00:00
GCOVProfiling.cpp Don't reinsert the 'atexit' function if it already exists. 2012-06-30 20:21:19 +00:00
Instrumentation.cpp Move the initialization of the bounds checking pass. The pass itself 2012-07-22 05:19:32 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile
MaximumSpanningTree.h MaximumSpanningTree::EdgeWeightCompare: Make this comparator actually be a 2012-08-21 21:03:40 +00:00
OptimalEdgeProfiling.cpp Remove all remaining uses of Value::getNameStr(). 2011-11-15 16:27:03 +00:00
PathProfiling.cpp Move llvm/Support/TypeBuilder.h -> llvm/TypeBuilder.h. This completes 2012-07-15 23:45:24 +00:00
ProfilingUtils.cpp When inserting new instructions, use getFirstInsertionPt instead of 2011-08-25 01:08:34 +00:00
ProfilingUtils.h Add a function for profiling to run at shutdown. Unlike the existing API, this 2011-04-08 22:19:52 +00:00
ThreadSanitizer.cpp [asan/tsan] rename FunctionBlackList* to BlackList* as this class is not limited to functions any more 2012-08-24 16:44:47 +00:00