summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LowerAllocations.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add some adviceChris Lattner2006-07-271-206/+0
| | | | llvm-svn: 29324
* Use hidden visibility to make symbols in an anonymous namespace getChris Lattner2006-06-281-1/+2
| | | | | | dropped. This shrinks libllvmgcc.dylib another 67K llvm-svn: 28975
* Declare that lowerinvoke doesn't interact with other lowering passes.Chris Lattner2006-05-171-1/+2
| | | | | | Patch written by Domagoj Babic! llvm-svn: 28367
* Patch to make some xforms preserve each other. Patch contributed byChris Lattner2006-05-091-0/+7
| | | | | | Domagoj Babic! llvm-svn: 28181
* Add pass ID's for various passes, so they can be AddRequiredID. Patch byChris Lattner2006-05-021-0/+2
| | | | | | Domagoj Babic! llvm-svn: 28048
* When a function takes a variable number of pointer arguments, with a zeroJeff Cohen2005-10-231-1/+1
| | | | | | | | | | | | | pointer marking the end of the list, the zero *must* be cast to the pointer type. An un-cast zero is a 32-bit int, and at least on x86_64, gcc will not extend the zero to 64 bits, thus allowing the upper 32 bits to be random junk. The new END_WITH_NULL macro may be used to annotate a such a function so that GCC (version 4 or newer) will detect the use of un-casted zero at compile time. llvm-svn: 23888
* Preserve tail markerChris Lattner2005-05-061-1/+2
| | | | llvm-svn: 21737
* Remove trailing whitespaceMisha Brukman2005-04-211-10/+10
| | | | llvm-svn: 21427
* Add an optional argument to lower to a specific constant value instead ofChris Lattner2005-03-031-6/+14
| | | | | | to a "sizeof" expression. llvm-svn: 20414
* Get rid of getSizeOf, using ConstantExpr::getSizeOf instead.Chris Lattner2004-12-131-20/+33
| | | | | | | | | | | do not insert a prototype for malloc of: void* malloc(uint): on 64-bit u targets this is not correct. Instead of prototype it as void *malloc(...), and pass the correct intptr_t through the "...". Finally, fix Regression/CodeGen/SparcV9/2004-12-13-MallocCrash.ll, by not forming constantexpr casts from pointer to uint. llvm-svn: 18908
* For PR387:\Reid Spencer2004-12-071-0/+3
| | | | | | Add doInitialization method to avoid overloaded virtuals llvm-svn: 18602
* 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-2/+1
| | | | llvm-svn: 15334
* Now that we codegen the portable "sizeof" efficiently, we can use it forChris Lattner2004-07-151-18/+22
| | | | | | | malloc lowering. This means that lowerallocations doesn't need targetdata anymore. yaay. llvm-svn: 14835
* Don't emit things like malloc(16*1). Allocation instructions are fixed ↵Chris Lattner2004-03-031-1/+1
| | | | | | arity now. llvm-svn: 12086
* if there is already a prototype for malloc/free, use it, even if it's incorrect.Chris Lattner2004-02-281-10/+42
| | | | | | Do not just inject a new prototype. llvm-svn: 11951
* Hyphenate `target-dependent'Misha Brukman2004-01-281-1/+1
| | | | llvm-svn: 11003
* Finegrainify namespacificationChris Lattner2004-01-091-4/+2
| | | | llvm-svn: 10725
* 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
* Use new interface, simplifies codeChris Lattner2003-08-311-11/+3
| | | | llvm-svn: 8242
* The word `dependent' has no `a'.Misha Brukman2003-08-211-1/+1
| | | | llvm-svn: 8030
* Spell `necessary' correctly.Misha Brukman2003-08-181-1/+1
| | | | llvm-svn: 7944
* Factory methods for function passes now return type FunctionPass *.Brian Gaeke2003-08-141-1/+1
| | | | llvm-svn: 7839
* Fix long standing bugChris Lattner2003-05-151-1/+1
| | | | llvm-svn: 6232
* Remove unnecesary &*'sChris Lattner2003-04-231-2/+2
| | | | llvm-svn: 5872
* Minor cleanupsChris Lattner2003-04-231-6/+6
| | | | llvm-svn: 5863
* Updates to work with recent Statistic's changes:Chris Lattner2002-10-011-2/+2
| | | | | | | | | | | | * 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
* Change LowerAllocations pass to 'require' TargetData instead of it beingChris Lattner2002-09-251-28/+28
| | | | | | passed in. llvm-svn: 3929
* Clean up code due to auto-insert constructorsChris Lattner2002-09-101-17/+8
| | | | llvm-svn: 3665
* Remove extraneous #includesChris Lattner2002-08-081-2/+0
| | | | llvm-svn: 3262
* * Add support for different "PassType's"Chris Lattner2002-07-261-1/+1
| | | | | | | | | | | | | | | * 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-4/+5
| | | | | | * Register all Passes llvm-svn: 3015
* MEGAPATCH checkin.Chris Lattner2002-06-251-22/+22
| | | | | | For details, See: docs/2002-06-25-MegaPatchInfo.txt llvm-svn: 2779
* Add support for printing out statistics information when -stats is added toChris Lattner2002-05-101-1/+6
| | | | | | the command line llvm-svn: 2601
* Split ChangeAllocations.cpp into Raise & LowerAllocations.cppChris Lattner2002-05-071-93/+10
| | | | llvm-svn: 2529
* Reduce dependance on TransformInternals.h, instead using the TransformUtils ↵Chris Lattner2002-05-071-2/+4
| | | | | | library llvm-svn: 2518
* Eliminate duplicate or unneccesary #include'sChris Lattner2002-04-291-2/+0
| | | | llvm-svn: 2397
* Add new optional getPassName() virtual function that a Pass can overrideChris Lattner2002-04-291-2/+4
| | | | | | to make debugging output a lot nicer. llvm-svn: 2395
* Split ConstantVals.h into Constant.h and Constants.hChris Lattner2002-04-281-1/+1
| | | | llvm-svn: 2378
* Add explicit #includes of Function.h to make up for the removed #includeChris Lattner2002-04-091-0/+1
| | | | | | in iOther.h llvm-svn: 2209
* Simplify code a lot by using the Module::getFunction & getOrInsertFunctionChris Lattner2002-03-291-46/+24
| | | | llvm-svn: 2028
* Change references from Method to FunctionChris Lattner2002-03-261-22/+23
| | | | | | change references from MethodARgument to FunctionArgument llvm-svn: 1991
* Change over to use new style pass mechanism, now passes only expose smallChris Lattner2002-02-261-0/+57
| | | | | | creation functions in their public header file, unless they can help it. llvm-svn: 1816
* Convert xforms over to new pass structure.Chris Lattner2002-01-311-0/+1
| | | | llvm-svn: 1605
* Don't insert a useless castChris Lattner2002-01-221-2/+1
| | | | llvm-svn: 1527
* Rename LowerAllocations.h to ChangeAllocations.h since it now contains theChris Lattner2002-01-221-1/+1
| | | | | | RaiseAllocations pass as well. llvm-svn: 1525
* Pull RaiseAllocations stuff out of the CleanGCC pass into it's own pass inChris Lattner2002-01-221-5/+66
| | | | | | the ChangeAllocations.h header file. llvm-svn: 1522
* LowerAllocations is really a BasicBlock pass. Make it so.Chris Lattner2002-01-211-57/+54
| | | | llvm-svn: 1521
OpenPOWER on IntegriCloud