summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
Commit message (Collapse)AuthorAgeFilesLines
* Move a few more APIs back to 2.5 forms. The only remaining ones left to ↵Owen Anderson2009-07-3121-203/+169
| | | | | | | | change back are metadata related, which I'm waiting on to avoid conflicting with Devang. llvm-svn: 77721
* Fix GVN's debug output, now that operator<< on Value* doesn't printDan Gohman2009-07-311-11/+12
| | | | | | a trailing newline. llvm-svn: 77719
* - Convert the rest of the DOUTs to DEBUG+errs().Bill Wendling2009-07-311-14/+13
| | | | | | | | - One formatting change. No intended functionality change. llvm-svn: 77717
* PR4662: Fix a crash introduced by the recent LLVMContext changes.Eli Friedman2009-07-311-1/+2
| | | | llvm-svn: 77716
* Move getTrue() and getFalse() to 2.5-like APIs.Owen Anderson2009-07-317-107/+110
| | | | llvm-svn: 77685
* Move more code back to 2.5 APIs.Owen Anderson2009-07-3026-118/+105
| | | | llvm-svn: 77635
* Twines: Don't allow implicit conversion from integers, this is too tricky.Daniel Dunbar2009-07-304-13/+13
| | | | llvm-svn: 77605
* Switch obvious clients to Twine instead of utostr (when they were already usingDaniel Dunbar2009-07-304-18/+14
| | | | | | | | | a Twine, e.g., for names). - I am a little ambivalent about this; we don't want the string conversion of utostr, but using overload '+' mixed with string and integer arguments is sketchy. On the other hand, this particular usage is something of an idiom. llvm-svn: 77579
* Eliminate a few unused-variable warningsDouglas Gregor2009-07-292-4/+0
| | | | llvm-svn: 77519
* Move types back to the 2.5 API.Owen Anderson2009-07-2920-107/+97
| | | | llvm-svn: 77516
* Fix PR4645 which was fallout from the fix for PR4641.Daniel Dunbar2009-07-291-8/+15
| | | | | | - Call RAUW to delete all instructions (this is a patch from Nick Lewycky). llvm-svn: 77512
* Remove now unused Context variables.Benjamin Kramer2009-07-291-1/+0
| | | | llvm-svn: 77495
* Move ConstantExpr to 2.5 API.Owen Anderson2009-07-2918-164/+162
| | | | llvm-svn: 77494
* Bulk erasing instructions without RAUWing them is unsafe. Instead, break themNick Lewycky2009-07-291-7/+9
| | | | | | into a new BB that has no predecessors. llvm-svn: 77433
* Rename MDNode.h header. It defines MDnode and other metadata classes.Devang Patel2009-07-281-1/+1
| | | | | | New name is Metadata.h. llvm-svn: 77370
* Return ConstantVector to 2.5 API.Owen Anderson2009-07-283-11/+11
| | | | llvm-svn: 77366
* Change ConstantArray to 2.5 API.Owen Anderson2009-07-285-7/+7
| | | | llvm-svn: 77347
* Teach instcombine to respect and preserve inbounds. Add inboundsDan Gohman2009-07-281-21/+53
| | | | | | to a few tests where it is required for the expected transformation. llvm-svn: 77290
* Fix a small little typo.Mike Stump2009-07-281-1/+1
| | | | llvm-svn: 77289
* Replace dyn_castGetElementPtr with dyn_cast<GEPOperator>.Dan Gohman2009-07-281-15/+5
| | | | llvm-svn: 77286
* Grab the LLVMContext and parent Module of SI ahead of theDan Gohman2009-07-281-3/+4
| | | | | | | point where SI can get deleted. This fixes a use of free'd memory. This fixes Externals/Povray. llvm-svn: 77285
* Fix a release-asserts warning. Debug functions should be marked used,Mike Stump2009-07-271-0/+2
| | | | | | | if there are no other uses. If people don't need this routine anymore, if should be deleted. llvm-svn: 77274
* Avoid build warnings.Mike Stump2009-07-272-0/+2
| | | | llvm-svn: 77271
* Move ConstantStruct back to 2.5 API.Owen Anderson2009-07-272-3/+3
| | | | llvm-svn: 77266
* Move ConstantFP construction back to the 2.5-ish API.Owen Anderson2009-07-273-9/+7
| | | | llvm-svn: 77247
* Do not seed mstadata into the value map.Devang Patel2009-07-271-25/+4
| | | | llvm-svn: 77208
* Remove Value::getName{Start,End}, the last of the old Name APIs.Daniel Dunbar2009-07-2610-39/+38
| | | | llvm-svn: 77152
* Remove Value::getNameLenDaniel Dunbar2009-07-261-7/+6
| | | | llvm-svn: 77148
* Eliminate some uses of DOUT, cerr, and getNameStart().Daniel Dunbar2009-07-263-217/+217
| | | | llvm-svn: 77145
* Remove Value::{isName, getNameRef}.Daniel Dunbar2009-07-252-2/+2
| | | | | | Also, change MDString to use a StringRef. llvm-svn: 77098
* Initial update to VMCore to use Twines for string arguments.Daniel Dunbar2009-07-252-3/+6
| | | | | | | - The only meat here is in Value.{h,cpp} the rest is essential 'const std::string &' -> 'const Twine &'. llvm-svn: 77048
* Fix 80-col violations.Eric Christopher2009-07-251-5/+8
| | | | llvm-svn: 77045
* Move ExtractElementInst to ::Create instead of new. Update all uses.Eric Christopher2009-07-252-9/+9
| | | | llvm-svn: 77044
* Convert a few more things to use raw_ostream.Dan Gohman2009-07-251-14/+14
| | | | llvm-svn: 77039
* Convert a few more uses of llvm/Support/Streams.h to raw_ostream.Dan Gohman2009-07-253-23/+17
| | | | llvm-svn: 77033
* Make AliasAnalysis and related classes useDan Gohman2009-07-252-2/+2
| | | | | | getAnalysisIfAvailable<TargetData>(). llvm-svn: 77028
* More migration to raw_ostream, the water has dried up around the iostream hole.Daniel Dunbar2009-07-2517-83/+107
| | | | | | | | | | - Some clients which used DOUT have moved to DEBUG. We are deprecating the "magic" DOUT behavior which avoided calling printing functions when the statement was disabled. In addition to being unnecessary magic, it had the downside of leaving code in -Asserts builds, and of hiding potentially unnecessary computations. llvm-svn: 77019
* Revert the ConstantInt constructors back to their 2.5 forms where possible, ↵Owen Anderson2009-07-2422-270/+268
| | | | | | thanks to contexts-on-types. More to come. llvm-svn: 77011
* AliasAnalysis wants sizes in address-units, not bits.Dan Gohman2009-07-241-1/+1
| | | | llvm-svn: 77009
* Fix this condition I accidentally inverted.Dan Gohman2009-07-241-1/+1
| | | | llvm-svn: 76988
* Convert several more passes to use getAnalysisIfAvailable<TargetData>()Dan Gohman2009-07-244-30/+31
| | | | | | instead of getAnalysis<TargetData>(). llvm-svn: 76982
* Move more to raw_ostream, provide support for writing MachineBasicBlock,Daniel Dunbar2009-07-241-3/+6
| | | | | | LiveInterval, etc to raw_ostream. llvm-svn: 76965
* Switch to getNameStr().Daniel Dunbar2009-07-242-5/+5
| | | | llvm-svn: 76962
* Convert StringMap to using StringRef for its APIs.Daniel Dunbar2009-07-231-1/+1
| | | | | | | | | | | | - Yay for '-'s and simplifications! - I kept StringMap::GetOrCreateValue for compatibility purposes, this can eventually go away. Likewise the StringMapEntry Create functions still follow the old style. - NIFC. llvm-svn: 76888
* refactor a blob of code out to a new 'FoldOrOfFCmps' function andChris Lattner2009-07-231-67/+70
| | | | | | simplify it. llvm-svn: 76866
* Make some existing optimizations that would only trigger on scalarsChris Lattner2009-07-231-2/+20
| | | | | | | | | | | | | | | | | | | | | also apply to vectors. This allows us to compile this: #include <emmintrin.h> __m128i a(__m128 a, __m128 b) { return a==a & b==b; } __m128i b(__m128 a, __m128 b) { return a!=a | b!=b; } to: _a: cmpordps %xmm1, %xmm0 ret _b: cmpunordps %xmm1, %xmm0 ret with clang instead of to a ton of horrible code. llvm-svn: 76863
* refactor a bunch of code out into a helper function,Chris Lattner2009-07-231-63/+73
| | | | | | no functionality change. llvm-svn: 76859
* Remove unnecessary store to temporary std::string.Daniel Dunbar2009-07-221-3/+4
| | | | llvm-svn: 76782
* Don't give a massive inlining cost bonus to available_externally Eli Friedman2009-07-221-2/+1
| | | | | | | | functions with a single use; eliminating the single use may eliminate the function from the current module, but usually doesn't eliminate it from the final program. llvm-svn: 76730
* Get rid of the Pass+Context magic.Owen Anderson2009-07-2259-460/+514
| | | | llvm-svn: 76702
OpenPOWER on IntegriCloud