summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Make SINT_TO_FP/UINT_TO_FP vector legalization queries query on the Eli Friedman2009-06-061-3/+7
| | | | | | | integer type to be consistent with normal operation legalization. No visible change because nothing is actually using this at the moment. llvm-svn: 72980
* More portability checks for CMake's config.h.Douglas Gregor2009-06-053-5/+10
| | | | llvm-svn: 72975
* Simplify.Devang Patel2009-06-051-15/+6
| | | | llvm-svn: 72970
* Add explicit keywords.Dan Gohman2009-06-057-15/+17
| | | | llvm-svn: 72969
* Simplify.Devang Patel2009-06-051-15/+5
| | | | llvm-svn: 72965
* Add new function attribute - noimplicitfloatDevang Patel2009-06-0513-39/+55
| | | | | | | Update code generator to use this attribute and remove NoImplicitFloat target option. Update llc to set this attribute when -no-implicit-float command line option is used. llvm-svn: 72959
* Adapt the x86 build_vector dagcombine to the current state of the legalizer.Nate Begeman2009-06-055-59/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build vectors with i64 elements will only appear on 32b x86 before legalize. Since vector widening occurs during legalize, and produces i64 build_vector elements, the dag combiner is never run on these before legalize splits them into 32b elements. Teach the build_vector dag combine in x86 back end to recognize consecutive loads producing the low part of the vector. Convert the two uses of TLI's consecutive load recognizer to pass LoadSDNodes since that was required implicitly. Add a testcase for the transform. Old: subl $28, %esp movl 32(%esp), %eax movl 4(%eax), %ecx movl %ecx, 4(%esp) movl (%eax), %eax movl %eax, (%esp) movaps (%esp), %xmm0 pmovzxwd %xmm0, %xmm0 movl 36(%esp), %eax movaps %xmm0, (%eax) addl $28, %esp ret New: movl 4(%esp), %eax pmovzxwd (%eax), %xmm0 movl 8(%esp), %eax movaps %xmm0, (%eax) ret llvm-svn: 72957
* Changing allocation ordering from r3 ... r0 back to r0 ... r3. The order ↵Evan Cheng2009-06-055-16/+14
| | | | | | change no longer make sense after the coalescing changes we have made since then. llvm-svn: 72955
* Evan thinks NoImplicitFloat check is not required here.Devang Patel2009-06-051-1/+1
| | | | llvm-svn: 72954
* Fix a copy+pasto in an assertion string that Jay Foad noticed.Dan Gohman2009-06-051-1/+1
| | | | llvm-svn: 72953
* When merging multiple load / store instructions. Use the DebugLoc of the ↵Evan Cheng2009-06-051-11/+16
| | | | | | first one. llvm-svn: 72952
* Code clean up: return vector by reference rather than by value. No ↵Evan Cheng2009-06-051-21/+21
| | | | | | functionality changes. llvm-svn: 72950
* Move SCEVExpander::getOrInsertCanonicalInductionVariable out of line.Dan Gohman2009-06-052-6/+14
| | | | llvm-svn: 72949
* Remove some unnecessary #includes.Dan Gohman2009-06-057-7/+0
| | | | llvm-svn: 72948
* Update the Verifier to be aware of the difference between Add and FAdd, etc.Dan Gohman2009-06-051-15/+33
| | | | llvm-svn: 72946
* On platforms like Sparc64 you need to pass -r toDuncan Sands2009-06-051-1/+1
| | | | | | | | | | gcc rather than directly to the linker: gcc will then modify the linker options it generates (it will not use --relax for example, incompatible with -r, as it otherwise would). This fixes the sparc build. llvm-svn: 72943
* Lower i16/i32 sdiv/udiv/srem/urem using libcalls.Sanjiv Gupta2009-06-051-0/+24
| | | | llvm-svn: 72942
* Allow libcalls for i16 sdiv/udiv/rem operations.Sanjiv Gupta2009-06-051-4/+12
| | | | llvm-svn: 72941
* ELF Code Emitter now uses CurBufferPtr, BufferBegin and BufferEnd, as do JIT andBruno Cardoso Lopes2009-06-053-32/+57
| | | | | | | MachO Writer. This will change with the arrival of ObjectCodeEmitter and BinaryObject llvm-svn: 72906
* Fix an erroneous check for isFNeg; the FNeg case is handledDan Gohman2009-06-042-1/+8
| | | | | | a few lines later on. llvm-svn: 72904
* Fix these so that they work on non-x86 Darwin machines.Bill Wendling2009-06-042-2/+2
| | | | llvm-svn: 72903
* Specify that this works for Darwin.Bill Wendling2009-06-042-2/+2
| | | | llvm-svn: 72899
* The DWARF unwind info was incorrect. While compiling withBill Wendling2009-06-041-15/+16
| | | | | | | | | | | | | | | | `-fomit-frame-pointer', we would lack the DW_CFA_advance_loc information for a lot of function, and then they would be `0'. The linker (at least on Darwin) needs to encode the stack size. In some cases, the stack size is too large to directly encode. So the linker checks to see if there is a "subl $xxx,%esp" instruction at the point where the `DW_CFA_def_cfa_offset' says the pc was. If so, the compact encoding records the offset in the function to where the stack size is embedded. But because the `DW_CFA_advance_loc' instructions are missing, it looks before the function and dies. So, instead of emitting the EH debug label before the stack adjustment operations, emit it afterwards, right before the frame move stuff. llvm-svn: 72898
* Split the Add, Sub, and Mul instruction opcodes into separateDan Gohman2009-06-04265-1925/+2375
| | | | | | | | | | | | | | | integer and floating-point opcodes, introducing FAdd, FSub, and FMul. For now, the AsmParser, BitcodeReader, and IRBuilder all preserve backwards compatability, and the Core LLVM APIs preserve backwards compatibility for IR producers. Most front-ends won't need to change immediately. This implements the first step of the plan outlined here: http://nondot.org/sabre/LLVMNotes/IntegerOverflow.txt llvm-svn: 72897
* Add new function attribute - noredzone. Devang Patel2009-06-0411-13/+28
| | | | | | | Update code generator to use this attribute and remove DisableRedZone target option. Update llc to set this attribute when -disable-red-zone command line option is used. llvm-svn: 72894
* Fix FP_TO_UINT->i32 on ppc32 -mcpu=g5. This wasDale Johannesen2009-06-043-16/+17
| | | | | | | | | | | | | | using Promote which won't work because i64 isn't a legal type. It's easy enough to use Custom, but then we have the problem that when the type legalizer is promoting FP_TO_UINT->i16, it has no way of telling it should prefer FP_TO_SINT->i32 to FP_TO_UINT->i32. I have uncomfortably hacked this by making the type legalizer choose FP_TO_SINT when both are Custom. This fixes several regressions in the testsuite. llvm-svn: 72891
* RALinScan::attemptTrivialCoalescing() was returning a virtual register ↵Evan Cheng2009-06-042-3/+57
| | | | | | instead of the physical register it is allocated to. This resulted in virtual register(s) being added the live-in sets. llvm-svn: 72890
* A value defined by an implicit_def can be liven to a use BB. This is ↵Evan Cheng2009-06-041-0/+18
| | | | | | unfortunate. But register allocator still has to add it to the live-in set of the use BB. llvm-svn: 72889
* A value defined by an implicit_def can be liven to a use BB. This is ↵Evan Cheng2009-06-041-0/+263
| | | | | | unfortunate. But register allocator still has to add it to the live-in set of the use BB. llvm-svn: 72888
* CMake: Use explicit dependencies for Xcode (as well as MSVC), to makeDouglas Gregor2009-06-045-37/+59
| | | | | | the CMake-generated Xcode project build properly. llvm-svn: 72883
* <rdar://problem/6944342> libLTO for darwin should add -static when assembling .sNick Kledzik2009-06-041-0/+4
| | | | llvm-svn: 72881
* Removed SimpleRewriter.Lang Hames2009-06-041-82/+2
| | | | llvm-svn: 72880
* For XTARGET to work on targets not in the list,Dale Johannesen2009-06-042-0/+2
| | | | | | | there must also be an XFAIL line. Fix a couple examples of this. llvm-svn: 72876
* Check in test changes that I accidentally left out of r72872.Dan Gohman2009-06-042-8/+9
| | | | llvm-svn: 72875
* Properly detect malloc_zone_statistics in CMake build systemDouglas Gregor2009-06-042-1/+3
| | | | llvm-svn: 72873
* Don't do the X * 0.0 -> 0.0 transformation in instcombine, becauseDan Gohman2009-06-043-10/+16
| | | | | | | | instcombine doesn't know when it's safe. To partially compensate for this, introduce new code to do this transformation in dagcombine, which can use UnsafeFPMath. llvm-svn: 72872
* Fix comments.Dan Gohman2009-06-041-2/+2
| | | | llvm-svn: 72870
* --plugin is not needed for bfd anymore. Update docs.Torok Edwin2009-06-041-2/+11
| | | | llvm-svn: 72867
* Remove unused code.Sanjiv Gupta2009-06-041-10/+0
| | | | llvm-svn: 72866
* CMake: Renamed LLVM_ENABLE_ASSERTS toOscar Fuentes2009-06-042-6/+15
| | | | | | | | | LLVM_ENABLE_ASSERTIONS. Fine-tuned the logic that controls the definition of NDEBUG and _DEBUG macros. Thanks to Jay Foad for this suggestions. llvm-svn: 72864
* Custom lower SUB with two register operands.Sanjiv Gupta2009-06-041-0/+1
| | | | llvm-svn: 72861
* Fix comments.Torok Edwin2009-06-042-3/+3
| | | | llvm-svn: 72858
* Add support for outputting ANSI colors to raw_fd_ostream.Torok Edwin2009-06-045-0/+215
| | | | llvm-svn: 72854
* PR3739, part 2: Use an explicit store to spill XMM registers. (Previously,Eli Friedman2009-06-042-4/+29
| | | | | | the code tried to use "push", which doesn't exist for XMM registers.) llvm-svn: 72836
* PR3739, part 1: Disable the red zone on Win64.Eli Friedman2009-06-042-1/+11
| | | | llvm-svn: 72830
* Remove a #include of <iostream>.Dan Gohman2009-06-041-1/+0
| | | | llvm-svn: 72828
* Re-apply 72756 with fixes. One of those was introduced by we changed ↵Evan Cheng2009-06-042-2/+8
| | | | | | MachineInstrBuilder::addReg() interface. llvm-svn: 72826
* Removed more testing code that snuck in earlier.Lang Hames2009-06-041-20/+2
| | | | llvm-svn: 72825
* <rdar://problem/6940611> libLTO.dylib needs to let linker specify path to ↵Nick Kledzik2009-06-045-11/+46
| | | | | | | | | | | assembler Add lto_codegen_set_assembler_path() API which allows the linker to specify the path to the assembler tool to run. When assembler is used (instead of compiler) different command line options are used. Add LTO_API_VERSION #define so clients (linkers) can conditionalize use of new APIs. llvm-svn: 72823
* Use uint8_t and int32_t in {JIT,Machine}CodeEmitersBruno Cardoso Lopes2009-06-045-117/+113
| | | | llvm-svn: 72821
OpenPOWER on IntegriCloud