llvm-6502/include/llvm/Transforms/Utils
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
..
AddrModeMatcher.h land David Blaikie's patch to de-constify Type, with a few tweaks. 2011-07-18 04:54:35 +00:00
BasicBlockUtils.h Make MemoryBuiltins aware of TargetLibraryInfo. 2012-08-29 15:32:21 +00:00
BuildLibCalls.h add EmitStrNLen() 2012-07-25 17:18:59 +00:00
Cloning.h Add support for disabling llvm.lifetime intrinsics in the AlwaysInliner. These 2012-02-25 02:56:01 +00:00
CmpInstAnalysis.h Refactor code used in InstCombine::FoldAndOfICmps to new file. 2011-12-17 01:20:32 +00:00
CodeExtractor.h Remove excess semi-colons to quiet warnings. 2012-05-08 20:45:04 +00:00
Local.h Make MemoryBuiltins aware of TargetLibraryInfo. 2012-08-29 15:32:21 +00:00
ModuleUtils.h [asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. compiler part. 2011-12-15 21:59:03 +00:00
PromoteMemToReg.h Remove a stale forward declaration. 2012-05-14 18:03:19 +00:00
SimplifyIndVar.h Remove unused simplifyIVUsers 2012-03-22 17:47:30 +00:00
SSAUpdater.h Make headers standalone, move a virtual method out of line. 2011-11-14 17:22:45 +00:00
SSAUpdaterImpl.h Fix SSAUpdaterImpl's RecordMatchingPHI to record exactly the 2012-02-03 01:07:01 +00:00
UnifyFunctionExitNodes.h Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which 2010-10-19 17:21:58 +00:00
UnrollLoop.h Add -unroll-runtime for unrolling loops with run-time trip counts. 2011-12-09 06:19:40 +00:00
ValueMapper.h Switch to WeakVHs in the value mapper, and aggressively prune dead basic 2012-03-28 08:38:27 +00:00