summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix ixaddrs as well, allowing ppc64 to compile to:Chris Lattner2007-02-171-17/+22
| | | | | | | | | | | | | | | | | | | | | _test2: li r2, 0 lis r3, 1 std r2, 9024(r3) blr instead of: _test2: lis r2, 1 li r3, 0 ori r2, r2, 9024 std r3, 0(r2) blr This implements CodeGen/PowerPC/LargeAbsoluteAddr.ll:test2 llvm-svn: 34373
* Compile test/CodeGen/PowerPC/LargeAbsoluteAddr.ll to:Chris Lattner2007-02-171-5/+9
| | | | | | | | | | | | | | | | | | | _test: lis r2, 743 li r3, 0 stw r3, 32751(r2) blr instead of: _test: li r2, 0 stw r2, 32751(48693248) blr Implement support for ppc64 as well, allowing it to produce better code. llvm-svn: 34371
* print target nodes nicelyChris Lattner2007-02-171-1/+1
| | | | llvm-svn: 34369
* Implement i/n/s constraints correctly. This fixesChris Lattner2007-02-171-2/+16
| | | | | | test/CodeGen/PowerPC/2007-02-16-InlineAsmNConstraint.ll llvm-svn: 34368
* Use inverted map to speedup collectLastUses().Devang Patel2007-02-171-4/+16
| | | | llvm-svn: 34364
* Move static functions closer to their usage.Reid Spencer2007-02-171-295/+295
| | | | llvm-svn: 34363
* Clean up the divide and remainder logic a bit (exit early). Use moreReid Spencer2007-02-171-63/+88
| | | | | | meaningful variable names. Add comments to document the flow. llvm-svn: 34362
* Fixes PR 1200Dale Johannesen2007-02-171-13/+29
| | | | llvm-svn: 34359
* Do not dereference invalid ranges. Generalize targetdata alignment model.Chris Lattner2007-02-171-59/+49
| | | | | | This fixes the UnitTests/Vector/sumarray-dbl regressions. llvm-svn: 34358
* Fix bugs introduced by constructor parameter order change.Reid Spencer2007-02-171-13/+29
| | | | llvm-svn: 34357
* Fix CodeGen/PowerPC/2007-02-16-AlignPacked.llChris Lattner2007-02-161-2/+2
| | | | llvm-svn: 34356
* Remove an unnecessary predicate.Reid Spencer2007-02-161-1/+1
| | | | | | Patch by Scott Michel. llvm-svn: 34354
* Review changes:Reid Spencer2007-02-161-186/+183
| | | | | | | | | | | | | | | 1. Function style changes. 2. 80-col violations. 3. Better names for things. 4. Arrange constructors so they all take bit width first. 5. Add named signed and unsigned comparison functions and remove the corresponding operators. 6. Remove operator&& and operator|| but provide a getBoolValue function which converts to bool as comparison against 0. This allows the normal && and || operators to be used as if (X.getBoolValue() && Y.getBoolValue()) Note: this still doesn't function 100% yet. I'm working on the bugs now. llvm-svn: 34353
* simplify some code, ensure that packed structures get abi alignment of 1.Chris Lattner2007-02-161-18/+11
| | | | llvm-svn: 34352
* fix incorrect encoding of vminsw.Chris Lattner2007-02-161-1/+1
| | | | llvm-svn: 34351
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-163-4/+35
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
* Print <dead> def operands.Evan Cheng2007-02-161-0/+2
| | | | llvm-svn: 34343
* Add live-ins to every BB.Evan Cheng2007-02-161-0/+20
| | | | llvm-svn: 34342
* fix buildAndrew Lenharth2007-02-161-0/+1
| | | | llvm-svn: 34339
* This was done recentlyAndrew Lenharth2007-02-161-3/+1
| | | | llvm-svn: 34338
* test commit (blank line)Dale Johannesen2007-02-161-0/+1
| | | | llvm-svn: 34337
* make mayWriteToMemory a non-virtual functionChris Lattner2007-02-151-0/+19
| | | | llvm-svn: 34334
* convert more vectors to smallvectors, 2.8% speedupChris Lattner2007-02-151-3/+3
| | | | llvm-svn: 34333
* change some vectors to smallvectors. This speeds up instcombine on 447.dealIIChris Lattner2007-02-151-3/+3
| | | | | | by 5%. llvm-svn: 34332
* For PR1195:Reid Spencer2007-02-151-4/+4
| | | | | | PACKED_ALIGN -> VECTOR_ALIGN llvm-svn: 34330
* rewrite Value::takeName to take advantage of the new symtab stuff. ThisChris Lattner2007-02-151-6/+55
| | | | | | | causes it to require no allocations and no symtab lookups in the common case. This speeds up instcombine 9.2% on 447.dealII. llvm-svn: 34324
* switch an std::set to a SmallPtr set, this speeds up instcombine by 9.5%Chris Lattner2007-02-151-3/+4
| | | | | | on 447.dealII llvm-svn: 34323
* Implement Function::getIntrinsicID without it needing to call Value::getName,Chris Lattner2007-02-151-3/+6
| | | | | | which allocates a string. This speeds up instcombine on 447.dealII by 5%. llvm-svn: 34318
* Add a new Value::getNameStr method, which is preferred over getName.Chris Lattner2007-02-151-1/+1
| | | | llvm-svn: 34310
* For PR1202:Reid Spencer2007-02-151-1/+2
| | | | | | Make sure we found an existing Alignment before overwriting it. llvm-svn: 34308
* fix indentationChris Lattner2007-02-151-2/+2
| | | | llvm-svn: 34307
* Apply B Scott Michel's patch for PR1184, which improves diagnostics in anChris Lattner2007-02-151-2/+16
| | | | | | abort case. llvm-svn: 34306
* Fix some buges:Zhou Sheng2007-02-151-43/+58
| | | | | | | | | 1. Make getMinValue() returns the right value. 2. Fix the ByteSwap() crash problem. 3. Make Postfix increment work correctly. 4. Fix some bugs in LogBase2, Hi/LoBits and UDiv. llvm-svn: 34304
* Use BitVector instead of vector<bool> which can be extremely slow.Evan Cheng2007-02-153-5/+5
| | | | llvm-svn: 34302
* For PR1195:Reid Spencer2007-02-1515-57/+59
| | | | | | | Change use of "packed" term to "vector" in comments, strings, variable names, etc. llvm-svn: 34300
* For PR1195:Reid Spencer2007-02-151-1/+1
| | | | | | Change a comment: Packed Type -> Vector Type llvm-svn: 34299
* Change an assert that mentions Packed Type -> Vector Type.Reid Spencer2007-02-151-1/+1
| | | | llvm-svn: 34298
* For PR1195:Reid Spencer2007-02-1532-3528/+4607
| | | | | | | Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and PackedTyID -> VectorTyID. No functional changes. llvm-svn: 34293
* Fixed packed structure breakage from earlier TargetData patch; appliedReid Spencer2007-02-151-75/+31
| | | | | | | | Chris Lattner's code style suggestions. Patch by Scott Michel! llvm-svn: 34292
* fix a warningChris Lattner2007-02-141-1/+1
| | | | llvm-svn: 34272
* Refix CodeGen/Generic/switch-lower.ll. In contrast to my previous patch,Chris Lattner2007-02-141-5/+5
| | | | | | this doesn't miscompile lots of programs :) llvm-svn: 34268
* From Dan Gohman:Chris Lattner2007-02-144-5/+5
| | | | | | | | | | While preparing http://llvm.org/PR1198 I noticed several asserts protecting unprepared code from i128 types that weren't actually failing when they should because they were written as assert("foo") instead of something like assert(0 && "foo"). This patch fixes all the cases that a quick grep found. llvm-svn: 34267
* Generalize TargetData strings, to support more interesting forms of data.Chris Lattner2007-02-1412-247/+344
| | | | | | Patch by Scott Michel. llvm-svn: 34266
* Use brute-force algorithm for to_string. It doesn't have to be efficientReid Spencer2007-02-141-28/+35
| | | | | | at this point, it just needs to work so we can test things reliably. llvm-svn: 34262
* better support for i128.Chris Lattner2007-02-131-0/+1
| | | | llvm-svn: 34258
* implement expand of truncate. This allows truncates from i128 to i64 toChris Lattner2007-02-131-0/+13
| | | | | | be supported on 32-bit hosts. llvm-svn: 34257
* Fix PR1198, by adding initial i128 support. Patch by Dan Gohman.Chris Lattner2007-02-131-0/+1
| | | | llvm-svn: 34256
* Well this isn't as ugly and it works better. At least gcc bootstraps againAndrew Lenharth2007-02-131-71/+70
| | | | llvm-svn: 34254
* Make some minor improvements to APInt:Reid Spencer2007-02-131-15/+11
| | | | | | | | | 1. Make all the operators use uppercase 2. Rename APIntRoundToDouble method just RoundToDouble, the APInt is redundant. 3. Turn the class on for compilation. llvm-svn: 34253
* add a noteChris Lattner2007-02-131-0/+4
| | | | llvm-svn: 34249
OpenPOWER on IntegriCloud