summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Fold certain additions through selects (and their compares) so as to ↵Christopher Lamb2007-12-183-18/+99
| | | | | | | | eliminate subtractions. This code is often produced by the SMAX expansion in SCEV. This implements test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll llvm-svn: 45158
* FIX for PR1799: When a load is unfolded from an instruction, check if it is ↵Evan Cheng2007-12-182-26/+71
| | | | | | a new node. If not, do not create a new SUnit. llvm-svn: 45157
* SelectionDAG::dump() should print SrcValue of LoadSDNode and StoreSDNode.Evan Cheng2007-12-181-0/+18
| | | | llvm-svn: 45151
* avoid confusing terminology (what is a "word"?), fix scary markup, add ↵Chris Lattner2007-12-181-21/+12
| | | | | | section to TOC. llvm-svn: 45150
* Don't forget to print address space qualifiers when printing out the type ↵Christopher Lamb2007-12-182-2/+5
| | | | | | table! Thanks to Gordon Henriksen for pointing this out. llvm-svn: 45147
* Testcase for preceding FE fixDale Johannesen2007-12-181-0/+18
| | | | llvm-svn: 45144
* add a missed case.Chris Lattner2007-12-181-0/+18
| | | | llvm-svn: 45141
* Remove int_x86_sse2_movl_dq. It's replaced with a string compare.Evan Cheng2007-12-182-7/+3
| | | | llvm-svn: 45140
* These have matching builtin's in 4.2.Evan Cheng2007-12-181-2/+2
| | | | llvm-svn: 45139
* i32 immediate constant test case for CellSPUScott Michel2007-12-171-0/+70
| | | | llvm-svn: 45134
* s/hasSideEffects/hasUnmodelledSideEffects/gBill Wendling2007-12-171-3/+4
| | | | llvm-svn: 45133
* Add "mayHaveSideEffects" and "neverHasSideEffects" flags to some instructions. IBill Wendling2007-12-177-21/+57
| | | | | | | | | based what flag to set on whether it was already marked as "isRematerializable". If there was a further check to determine if it's "really" rematerializable, then I marked it as "mayHaveSideEffects" and created a check in the X86 back-end similar to the remat one. llvm-svn: 45132
* Bring back int_x86_sse2_movl_dq intrinsic for backward compatibility. Make sureEvan Cheng2007-12-176-26/+78
| | | | | | it's auto-upgraded to a shufflevector instruction. llvm-svn: 45131
* - Restore some i8 functionality in CellSPUScott Michel2007-12-179-63/+612
| | | | | | - New test case: nand.ll llvm-svn: 45130
* Modified Deserializer::ReadCStr to allow C-strings to be read into aTed Kremenek2007-12-172-4/+11
| | | | | | std::vector<char> starting from any index in the vector. llvm-svn: 45129
* LD_Fp64m should have "isRematerializable" set.Bill Wendling2007-12-171-1/+2
| | | | llvm-svn: 45128
* Add "hasSideEffects" method to MachineInstrInfo class.Bill Wendling2007-12-171-1/+10
| | | | llvm-svn: 45126
* Add MachineLICM.cppBill Wendling2007-12-171-0/+2
| | | | llvm-svn: 45123
* As per feedback, revised comments to (hopefully) make the different side effectBill Wendling2007-12-172-14/+38
| | | | | | flags clearer. llvm-svn: 45120
* Add cast operators in LLVMFoldingBuilder.Devang Patel2007-12-171-0/+123
| | | | | | Patch by Richard Pennington. llvm-svn: 45115
* cleanup this code, making it more "llvm-like".Chris Lattner2007-12-171-85/+80
| | | | | | | | Add comments to reset indicating that it deletes its pointer. Add a new take() method, which can be used to get the pointer without it being deleted. llvm-svn: 45112
* Make invokes of inline asm legal. Teach codegenDuncan Sands2007-12-175-22/+39
| | | | | | | | how to lower them (with no attempt made to be efficient, since they should only occur for unoptimized code). llvm-svn: 45108
* GLIBCXX_DEBUG fix. std::vector<>::end() is invalidated by erase.David Greene2007-12-171-1/+1
| | | | llvm-svn: 45101
* Get rid of annoying spaces.David Greene2007-12-171-1/+1
| | | | llvm-svn: 45100
* Fix GLIBCXX_DEBUG errors. Erase invalidates std::vector iteratorsDavid Greene2007-12-171-4/+3
| | | | | | passed the erased element. llvm-svn: 45099
* Disabling a RUN line that's broken until addrspace roundtripsGordon Henriksen2007-12-171-1/+1
| | | | | | through llvm-as|llvm-dis. llvm-svn: 45097
* C and Ocaml bindings for address spaces, for that burgeoning marketGordon Henriksen2007-12-176-18/+63
| | | | | | for Ocaml-based compilers targeting embedded devices. :) llvm-svn: 45096
* regenerate.Christopher Lamb2007-12-175-4715/+3411
| | | | llvm-svn: 45085
* Change the PointerType api for creating pointer types. The old functionality ↵Christopher Lamb2007-12-1732-137/+172
| | | | | | of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space. llvm-svn: 45082
* Make it clear in the LangRef that allocation instructions only operated on ↵Christopher Lamb2007-12-172-2/+16
| | | | | | the generic address space. Implement support in the verifier for ensuring this is true. llvm-svn: 45080
* Revert this part of r45073 until the verifier isDuncan Sands2007-12-161-2/+3
| | | | | | changed not to reject invoke of inline asm. llvm-svn: 45077
* don't violate C TBAA rules, use FloatToBits instead.Chris Lattner2007-12-161-22/+10
| | | | llvm-svn: 45076
* fix a questionable cast, thanks to Mike Stump for pointing this out.Chris Lattner2007-12-161-1/+1
| | | | llvm-svn: 45075
* Fix the JIT encoding of cmp*ss, which aborts with this assertion currently:Chris Lattner2007-12-162-4/+6
| | | | | | | | | X86CodeEmitter.cpp:378: failed assertion `0 && "Immediate size not set!"' I *think* this is right, but Evan, please verify. It also looks like CMPSDrr and maybe others are missing this info. Evan, plz investigate. llvm-svn: 45074
* Make instcombine promote inline asm calls to 'nounwind'Duncan Sands2007-12-167-4/+35
| | | | | | | | | | | | | calls. Remove special casing of inline asm from the inliner. There is a potential problem: the verifier rejects invokes of inline asm (not sure why). If an asm call is not marked "nounwind" in some .ll, and instcombine is not run, but the inliner is run, then an illegal module will be created. This is bad but I'm not sure what the best approach is. I'm tempted to remove the check in the verifier... llvm-svn: 45073
* Remove spurious warnings from GCC:Bill Wendling2007-12-161-75/+79
| | | | | | | | | warning: suggest a space before ';' or explicit braces around empty body in 'for' statement Patch by Mike Stump (modified slightly by yours truly). llvm-svn: 45071
* Break local interferences in StrongPHIElimination. One step closer...Owen Anderson2007-12-161-0/+135
| | | | llvm-svn: 45070
* A few more comments.Owen Anderson2007-12-161-1/+6
| | | | llvm-svn: 45069
* Define addString() and lookup() out-of-line to dissuade the C++ compiler ↵Anton Korobeynikov2007-12-161-65/+71
| | | | | | from inlining it. llvm-svn: 45068
* Provide GraphTraits and DOTGraphTraits interface for Trie.Anton Korobeynikov2007-12-161-54/+109
| | | | | | | Retoss private/public stuff. Make copy ctor and operator= private. llvm-svn: 45067
* Constify graph argumentsAnton Korobeynikov2007-12-161-6/+7
| | | | llvm-svn: 45066
* Use references in DF iterators. This eliminates copy-ctor calls on huge ↵Anton Korobeynikov2007-12-152-18/+22
| | | | | | objects (graphs) llvm-svn: 45063
* These are more correctly called signaling NaNs.Duncan Sands2007-12-151-1/+1
| | | | llvm-svn: 45059
* Make better use of instructions that clear high bits; fix various 2-wide ↵Evan Cheng2007-12-157-47/+245
| | | | | | shuffle bugs. llvm-svn: 45058
* __builtin_ia32_movqv4si is now expanded to a shuffle.Evan Cheng2007-12-151-2/+0
| | | | llvm-svn: 45057
* Start committing working test cases for CellSPU.Scott Michel2007-12-155-4/+322
| | | | llvm-svn: 45050
* Actually, MOVPQIto64mr is a dup of MOVPQI2QImr, MOV64toPQIrm is a dup of ↵Evan Cheng2007-12-142-11/+2
| | | | | | MOVQI2PQIrm. llvm-svn: 45041
* Fix (mem) <-> low 64-bits of xmm bugs pointed out by David Greene. Mac OS X ↵Evan Cheng2007-12-141-8/+8
| | | | | | Leopard assembler recognizes movq. llvm-svn: 45040
* Teach the interpreter to read and write memory in theDuncan Sands2007-12-143-59/+256
| | | | | | | | | | endianness of the target not of the host. Done by the simple expedient of reversing bytes for primitive types if the host and target endianness don't match. This is correct for integer and pointer types. I don't know if it is correct for floating point types. llvm-svn: 45039
* x86-32 long doubles are 4-byte aligned on the stackDale Johannesen2007-12-141-1/+1
| | | | | | for parameter passing (only for that, on Darwin). llvm-svn: 45038
OpenPOWER on IntegriCloud