summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Fixed build warning. No functionality change.Sanjiv Gupta2009-07-221-1/+1
| | | | llvm-svn: 76761
* Introduce MetadataBase, a base class for MDString and MDNode.Devang Patel2009-07-229-67/+155
| | | | | | | Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. llvm-svn: 76759
* doxygenifyChris Lattner2009-07-221-7/+7
| | | | llvm-svn: 76750
* Add newline at end of file.Duncan Sands2009-07-221-1/+1
| | | | llvm-svn: 76736
* Thread local globals don't require special handling by the linker and so canRichard Osborne2009-07-221-0/+7
| | | | | | be placed in the standard data / bss sections. llvm-svn: 76735
* Revert commit 76707, it was breaking the llvm-gcc buildDuncan Sands2009-07-221-2/+1
| | | | | | | | on linux platforms. The binutils assembler does not recognize the "s" flag, see for example http://sourceware.org/binutils/docs/as/Section.html llvm-svn: 76733
* 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
* Don't forget D16 - D31 are clobbered by calls and sjlj eh.Evan Cheng2009-07-223-10/+20
| | | | llvm-svn: 76729
* Add R12 to the list of registers clobbered by 16-bit Thumb calls as a ↵Evan Cheng2009-07-221-2/+2
| | | | | | pre-caution. r12 could be live once we have mixed 32-bit and 16-bit instructions. llvm-svn: 76728
* Fix a obvious copy-n-paste bug.Evan Cheng2009-07-221-1/+1
| | | | llvm-svn: 76727
* Get rid one of the getRegisterNumbering. Also add D16 - D31.Evan Cheng2009-07-223-69/+78
| | | | llvm-svn: 76725
* Add support for MMX VSETCC.Eli Friedman2009-07-222-0/+33
| | | | llvm-svn: 76713
* Added the unconditional JMP with an 8-bit relocation for theSean Callanan2009-07-221-1/+3
| | | | | | assembler / disassembler. llvm-svn: 76712
* Add an entry.Evan Cheng2009-07-221-0/+4
| | | | llvm-svn: 76711
OpenPOWER on IntegriCloud