summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/RaiseAllocations.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up several unbeseeming casts from pointer to intptr_t.Dan Gohman2008-09-041-1/+1
| | | | llvm-svn: 55779
* Use Instruction::eraseFromParent().Dan Gohman2008-06-211-1/+1
| | | | llvm-svn: 52606
* API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. ↵Gabor Greif2008-05-161-1/+1
| | | | | | Legacy interfaces will be in place for some time. (Merge from use-diet branch.) llvm-svn: 51200
* Clean up the use of static and anonymous namespaces. This turned upDan Gohman2008-05-131-4/+3
| | | | | | | several things that were neither in an anonymous namespace nor static but not intended to be global. llvm-svn: 51017
* API changes for class Use size reduction, wave 1.Gabor Greif2008-04-061-2/+2
| | | | | | | | Specifically, introduction of XXX::Create methods for Users that have a potentially variable number of Uses. llvm-svn: 49277
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* Change the PointerType api for creating pointer types. The old functionality ↵Christopher Lamb2007-12-171-5/+6
| | | | | | of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space. llvm-svn: 45082
* Do not raise free() call that is called through invoke instruction.Devang Patel2007-10-171-0/+2
| | | | llvm-svn: 43083
* Use empty() member functions when that's what's being tested for insteadDan Gohman2007-10-031-2/+2
| | | | | | of comparing begin() and end(). llvm-svn: 42585
* Change comments to refer to @malloc and @free instead of %malloc and %free.Dan Gohman2007-08-271-3/+3
| | | | llvm-svn: 41488
* Fix typo in comment.Nick Lewycky2007-05-061-1/+1
| | | | llvm-svn: 36873
* Drop 'const'Devang Patel2007-05-031-2/+2
| | | | llvm-svn: 36662
* Use 'static const char' instead of 'static const int'.Devang Patel2007-05-021-2/+2
| | | | | | | Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
* Do not use typeinfo to identify pass in pass manager.Devang Patel2007-05-011-1/+4
| | | | llvm-svn: 36632
* Unbreak VC++ build.Jeff Cohen2007-03-051-0/+1
| | | | llvm-svn: 34917
* simplify name juggling through the use of Value::takeName.Chris Lattner2007-02-111-2/+2
| | | | llvm-svn: 34175
* Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes inReid Spencer2007-02-051-1/+2
| | | | | | | the Transforms library. This reduces debug library size by 132 KB, debug binary size by 376 KB, and reduces link time for llvm tools slightly. llvm-svn: 33939
* For PR411:Reid Spencer2007-02-051-37/+55
| | | | | | | | | | This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. llvm-svn: 33918
* For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoidReid Spencer2007-01-301-2/+2
| | | | | | confusion with external linkage types. llvm-svn: 33663
* For PR950:Reid Spencer2006-12-311-11/+11
| | | | | | | | | | | | | This patch replaces signed integer types with signless ones: 1. [US]Byte -> Int8 2. [U]Short -> Int16 3. [U]Int -> Int32 4. [U]Long -> Int64. 5. Removal of isSigned, isUnsigned, getSignedVersion, getUnsignedVersion and other methods related to signedness. In a few places this warranted identifying the signedness information from other sources. llvm-svn: 32785
* Eliminate static ctors due to Statistic objectsChris Lattner2006-12-191-2/+3
| | | | llvm-svn: 32693
* Replace CastInst::createInferredCast calls with more accurate castReid Spencer2006-12-131-4/+4
| | | | | | creation calls. llvm-svn: 32521
* Detemplatize the Statistic class. The only type it is instantiated withChris Lattner2006-12-061-1/+1
| | | | | | is 'unsigned'. llvm-svn: 32279
* For PR950:Reid Spencer2006-11-271-5/+7
| | | | | | | | | | The long awaited CAST patch. This introduces 12 new instructions into LLVM to replace the cast instruction. Corresponding changes throughout LLVM are provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the exception of 175.vpr which fails only on a slight floating point output difference. llvm-svn: 31931
* eliminate RegisterOpt. It does the same thing as RegisterPass.Chris Lattner2006-08-271-1/+1
| | | | llvm-svn: 29925
* Remove trailing whitespaceMisha Brukman2005-04-211-9/+9
| | | | llvm-svn: 21427
* Fix spelling, patch contributed by Gabor Greif!Chris Lattner2005-02-271-1/+1
| | | | llvm-svn: 20343
* Fix bug: 2004-11-08-FreeUseCrash.llChris Lattner2004-11-091-1/+3
| | | | llvm-svn: 17642
* 'Pass' should now not be derived from by clients. Instead, they should deriveChris Lattner2004-09-201-4/+4
| | | | | | | from ModulePass. Instead of implementing Pass::run, then should implement ModulePass::runOnModule. llvm-svn: 16436
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Fix #includes of i*.h => Instructions.h as per PR403.Misha Brukman2004-07-291-3/+1
| | | | llvm-svn: 15334
* bug 122:Reid Spencer2004-07-181-6/+6
| | | | | | - Replace ConstantPointerRef usage with GlobalValue usage llvm-svn: 14953
* Implement RaiseAllocations/FreeCastConstantExpr.llChris Lattner2003-12-071-12/+37
| | | | llvm-svn: 10305
* Finegrainify namespacificationChris Lattner2003-11-211-4/+2
| | | | llvm-svn: 10138
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-0/+4
| | | | llvm-svn: 9903
* Added LLVM project notice to the top of every C++ source file.John Criswell2003-10-201-0/+7
| | | | | | Header files will be on the way. llvm-svn: 9298
* Fix bug raising allocations whose call sites were invoke instructions.Chris Lattner2003-09-161-0/+15
| | | | | | Thanks to brg for tracking down the problem so precisely! llvm-svn: 8568
* Change the RaiseAllocations pass to be a Pass instead of a BasicBlock pass.Chris Lattner2003-09-011-54/+75
| | | | | | | | This makes it more efficient: it doesn't have to scan the whole program, so it performs work proportional to the number of malloc/free calls in the program, not the size of the program. llvm-svn: 8280
* Spell `necessary' correctly.Misha Brukman2003-08-181-1/+1
| | | | llvm-svn: 7944
* Fix handling of 'free' if it has absolutely no prototypeChris Lattner2003-08-111-0/+7
| | | | llvm-svn: 7721
* Updates to work with recent Statistic's changes:Chris Lattner2002-10-011-22/+21
| | | | | | | | | | | | * Renamed StatisticReporter.h/cpp to Statistic.h/cpp * Broke constructor to take two const char * arguments instead of one, so that indendation can be taken care of automatically. * Sort the list by pass name when printing * Make sure to print all statistics as a group, instead of randomly when the statistics dtors are called. * Updated ProgrammersManual with new semantics. llvm-svn: 4002
* Function.h is unnecessary when Module.h is included.Misha Brukman2002-09-141-1/+0
| | | | llvm-svn: 3716
* Change the MallocInst & AllocaInst ctors to take the allocated type, not theChris Lattner2002-09-131-2/+1
| | | | | | pointer type returned. llvm-svn: 3710
* Fix bug in previous checkinChris Lattner2002-09-101-0/+1
| | | | llvm-svn: 3672
* Clean up code due to auto-insert constructorsChris Lattner2002-09-101-23/+12
| | | | llvm-svn: 3665
* * Add support for different "PassType's"Chris Lattner2002-07-261-2/+2
| | | | | | | | | | | | | | | * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Add support for different "PassType's" * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Remove getPassName implementations from various subclasses llvm-svn: 3113
* Merge ChangeAllocations into scalar.hChris Lattner2002-07-231-1/+1
| | | | llvm-svn: 3038
* * Remove getPassName implementationChris Lattner2002-07-231-3/+3
| | | | | | * Register all Passes llvm-svn: 3015
* * Correctly get prototype for void*malloc(size_t)Chris Lattner2002-07-181-2/+11
| | | | llvm-svn: 2951
* MEGAPATCH checkin.Chris Lattner2002-06-251-13/+13
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2779
OpenPOWER on IntegriCloud