summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Write space padding as one string to speed up comment printing.David Greene2009-07-231-3/+13
| | | | llvm-svn: 76910
* Thumb2 does not allow the use of "pc" register as part of the load / store ↵Evan Cheng2009-07-231-15/+0
| | | | | | address. llvm-svn: 76909
* Re-committing r76828 with the JIT memory manager changes now that the buildReid Kleckner2009-07-234-110/+319
| | | | | | bots like the BumpPtrAllocator changes. llvm-svn: 76902
* "fix" PR4612, which is a crash on:Chris Lattner2009-07-231-1/+5
| | | | | | | | | | %0 = malloc [3758096384 x i32] The "malloc" instruction doesn't support 64-bits correctly (see PR715), and should be removed. Victor is actively working on fixing this, in the meantime just don't crash. llvm-svn: 76899
* Revert r75581: it causes massive breakage in the AdaDuncan Sands2009-07-231-0/+23
| | | | | | | | | | | | | | | | testsuite, due to exception handling not working correctly. Maybe because the libgcc unwinder is miscompiled - not sure, and I won't have time to look into it before leaving on holiday. Note that miscompilations of libgcc are not picked up by the nightly testers, because they dynamically link with libgcc, so pick up the system version rather than the version built as part of llvm-gcc. This is a nasty flaw in the nightly testers. (On the other hand the Ada testsuite links with the just built libgcc). llvm-svn: 76895
* Switch ValueSymbolTable to StringRef based API.Daniel Dunbar2009-07-233-28/+7
| | | | llvm-svn: 76894
* Add llvm::Value::getNameRef, for help in API migration.Daniel Dunbar2009-07-231-1/+6
| | | | llvm-svn: 76893
* Re-committing changes from r76825 to BumpPtrAllocator with a fix and tests forReid Kleckner2009-07-231-105/+133
| | | | | | an off-by-one error. llvm-svn: 76891
* Fix up ARM constant island pass for Thumb2.Evan Cheng2009-07-231-125/+129
| | | | | | Also fixed up code to fully use the SoImm field for ADR on ARM mode. llvm-svn: 76890
* Since we have moved unified assembly, switch to ADR instruction instead of a ↵Evan Cheng2009-07-232-28/+8
| | | | | | | | the difficult-to-read .set + add syntax to materialize pc-relative address. Turns out this also fixed a poor code selection on Thumb1. I have no idea why we were using a mov + add to do the same thing as ADR before. llvm-svn: 76889
* Convert StringMap to using StringRef for its APIs.Daniel Dunbar2009-07-237-37/+30
| | | | | | | | | | | | - 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
* Fix frame index elimination to correctly handle thumb-2 addressing modes ↵David Goodwin2009-07-2310-18/+124
| | | | | | that don't allow negative offsets. During frame elimination convert *i12 opcode to a *i8 when necessary due to a negative offset. llvm-svn: 76883
* Cache dependence computation using FoldingSet.Andreas Bolka2009-07-231-23/+65
| | | | | | | | | This introduces an LDA-internal DependencePair class. The intention is, that this is a place where dependence testers can store various results such as SCEVs describing conflicting iterations, breaking conditions, distance/direction vectors, etc. llvm-svn: 76877
* 80 col violation.Evan Cheng2009-07-231-2/+4
| | | | llvm-svn: 76872
* refactor a blob of code out to a new 'FoldOrOfFCmps' function andChris Lattner2009-07-231-67/+70
| | | | | | simplify it. llvm-svn: 76866
* For real this time: PHI Def & Kill tracking added to PHIElimination.Lang Hames2009-07-231-3/+5
| | | | llvm-svn: 76865
* 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
* Added PHI Def & Kill tracking to PHIElimination pass.Lang Hames2009-07-232-4/+56
| | | | llvm-svn: 76849
* Support insertps via the intrinsic and add a couple of simpleEric Christopher2009-07-231-2/+14
| | | | | | testcases to make sure it's being generated. llvm-svn: 76843
* Do not call getMangledName on Intrinsics.Sanjiv Gupta2009-07-231-4/+3
| | | | llvm-svn: 76842
* MDStringDevang Patel2009-07-237-14/+15
| | | | | | | - Rename member function size(). New name is length(). - Store string beginning and length. Earlier it used to store string end. llvm-svn: 76841
* Minor cosmetics: indentation, formatting, naming.Andreas Bolka2009-07-231-18/+18
| | | | llvm-svn: 76839
* Reverting r76825 and r76828, since they caused clang runtime errors and some ↵Reid Kleckner2009-07-235-451/+214
| | | | | | build failure involving memset. llvm-svn: 76838
* add header for 'memset'.Zhongxing Xu2009-07-231-0/+1
| | | | llvm-svn: 76837
* Silence "uninitialized use" warning.Devang Patel2009-07-231-1/+1
| | | | llvm-svn: 76836
* Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into ↵Devang Patel2009-07-238-74/+90
| | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834
* Fix error message for correct opcode.Eric Christopher2009-07-231-1/+1
| | | | llvm-svn: 76829
* Make the JIT code emitter properly retry and ask for more memory when it runsReid Kleckner2009-07-234-110/+319
| | | | | | | | | | | | | out of memory, and also make the default memory manager allocate more memory when it runs out. Also, switch function stubs and global data over to using the BumpPtrAllocator. This makes it so the JIT no longer mmaps (or the equivalent on Windows) 16 MB of memory, and instead allocates in 512K slabs. I suspect this size could go lower, especially on embedded platforms, now that more slabs can be allocated. llvm-svn: 76828
* Parameterize the BumpPtrAllocator over a slab allocator. It defaults to usingReid Kleckner2009-07-231-104/+131
| | | | | | | | | | | malloc, so there should be no functional changes to other code. These changes are necessary since I have plans to use this allocator in the JIT memory manager, and it needs a special allocator. I also added some tests which helped me pinpoint some bugs. llvm-svn: 76825
* remove SectionFlags::Small: it is only used on Xcore, and we'll findChris Lattner2009-07-225-29/+7
| | | | | | a better solution for it in the future. llvm-svn: 76818
* x86 isel tweak: use lea (%reg,%reg) instead of lea (,%reg,2).Dan Gohman2009-07-221-10/+31
| | | | llvm-svn: 76817
* Rename the new unsigned and signed keywords to nuw and nsw,Dan Gohman2009-07-224-26/+26
| | | | | | which stand for no-unsigned-wrap and no-signed-wrap. llvm-svn: 76810
* Reorder if-else branches as suggested by Bill.David Greene2009-07-221-4/+4
| | | | llvm-svn: 76808
* Fix typo in addrmode definition.David Goodwin2009-07-221-1/+1
| | | | llvm-svn: 76806
* Use getTargetConstant instead of getConstant since it's meant as an constant ↵Evan Cheng2009-07-224-22/+25
| | | | | | operand. llvm-svn: 76803
* Constify the key in Mi2IndexMap.David Greene2009-07-221-1/+1
| | | | llvm-svn: 76801
* Ignore undef uses.Evan Cheng2009-07-221-0/+3
| | | | llvm-svn: 76799
* Switch some clients to Value::getName(), and other getName() userDaniel Dunbar2009-07-224-17/+17
| | | | | | | simplification. - NFC llvm-svn: 76789
* Fix indentation.Devang Patel2009-07-221-6/+6
| | | | llvm-svn: 76787
* Simplify some uses of Value::getName()Daniel Dunbar2009-07-223-4/+7
| | | | llvm-svn: 76786
* Remove unnecessary store to temporary std::string.Daniel Dunbar2009-07-221-3/+4
| | | | llvm-svn: 76782
* Put comment printing under asm-verbose.David Greene2009-07-221-13/+36
| | | | llvm-svn: 76780
* Fix indentation.Daniel Dunbar2009-07-221-18/+19
| | | | llvm-svn: 76778
* Make some changes suggested by Bill and Evan.David Greene2009-07-222-34/+25
| | | | llvm-svn: 76775
* Fix thinko.Devang Patel2009-07-221-1/+1
| | | | llvm-svn: 76769
* Use isa<> instead of dyn_cast<>.Devang Patel2009-07-221-1/+1
| | | | llvm-svn: 76767
* Add replaceAllUsesWith() to FE replace debug info constructs while building ↵Devang Patel2009-07-221-0/+12
| | | | | | complex types. llvm-svn: 76765
* Do not print "metadata" twice while printing MDString.Devang Patel2009-07-221-2/+0
| | | | | | This fixes unittest failure. llvm-svn: 76764
* Eliminate a redudant check Eli pointed out.Evan Cheng2009-07-221-2/+2
| | | | llvm-svn: 76762
OpenPOWER on IntegriCloud