summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Keep track of *which* input constraint matches an outputChris Lattner2008-10-175-14/+25
| | | | | | | constraint. Reject asms where an output has multiple input constraints tied to it. llvm-svn: 57687
* add an assert so that PR2356 explodes instead of running off anChris Lattner2008-10-173-6/+34
| | | | | | | array. Improve some minor comments, refactor some helpers in AsmOperandInfo. No functionality change for valid code. llvm-svn: 57686
* remove spurious space in linkGabor Greif2008-10-171-2/+2
| | | | llvm-svn: 57677
* Add comment on how tagged pointers areGabor Greif2008-10-171-1/+8
| | | | | | | | | | distinguished from normal (untagged) ones as per review comment. I am sufficiently unaquainted with doxygen to defer the markup to someone with more experience. llvm-svn: 57676
* Fix a very subtle spiller bug: UpdateKills should not forget to track defs ↵Evan Cheng2008-10-172-8/+169
| | | | | | of aliases. llvm-svn: 57673
* add some simple hacky long double support for the CBE. ThisChris Lattner2008-10-171-5/+15
| | | | | | | should work for intel long double, but ppc long double aborts in convert. llvm-svn: 57672
* Use INT64_C to emit constant values, to avoid problems withDan Gohman2008-10-171-2/+3
| | | | | | | | constants that don't fit in an int. This fixes "this decimal constant is unsigned only in ISO C90" warnings. llvm-svn: 57668
* Fun x86 encoding tricks: when adding an immediate value of 128,Dan Gohman2008-10-1714-37/+95
| | | | | | | | | | | | | use a SUB instruction instead of an ADD, because -128 can be encoded in an 8-bit signed immediate field, while +128 can't be. This avoids the need for a 32-bit immediate field in this case. A similar optimization applies to 64-bit adds with 0x80000000, with the 32-bit signed immediate field. To support this, teach tablegen how to handle 64-bit constants. llvm-svn: 57663
* Define patterns for shld and shrd that match immediateDan Gohman2008-10-177-25/+364
| | | | | | | | | | | | | | | | | | shift counts, and patterns that match dynamic shift counts when the subtract is obscured by a truncate node. Add DAGCombiner support for recognizing rotate patterns when the shift counts are defined by truncate nodes. Fix and simplify the code for commuting shld and shrd instructions to work even when the given instruction doesn't have a parent, and when the caller needs a new instruction. These changes allow LLVM to use the shld, shrd, rol, and ror instructions on x86 to replace equivalent code using two shifts and an or in many more cases. llvm-svn: 57662
* Use 0 instead of false to return a null pointer.Dan Gohman2008-10-171-1/+1
| | | | llvm-svn: 57660
* Fix this test so it actually runs the grep lines.Dan Gohman2008-10-161-3/+3
| | | | llvm-svn: 57653
* Trim #includes.Dan Gohman2008-10-1616-33/+4
| | | | llvm-svn: 57649
* fix typo noticed by sdtChris Lattner2008-10-161-1/+1
| | | | llvm-svn: 57644
* Introduce a typing refinenement on tagged dataGabor Greif2008-10-162-10/+8
| | | | | | | | | | | | using the 'volatile' qualifier. This should not have any operational consequences on code, because tags should always be stripped off (giving a non-volatile pointer) before dereferencing. The new qualification is there to catch some attempts to use tagged pointers in a context where an untagged pointer is appropriate. Notably this approach does not catch dereferencing of tagged pointers, but helps in separating the two concepts a bit. llvm-svn: 57641
* Re-apply Makefile changes. Fix build with srcdir != objdir.Mikhail Glushenkov2008-10-1610-13/+60
| | | | llvm-svn: 57636
* Fix warnings about mb/me being potentially usedDuncan Sands2008-10-161-2/+2
| | | | | | uninitialized in these functions with gcc-4.3. llvm-svn: 57635
* Fix "large integer implicitly truncated to unsigned type"Duncan Sands2008-10-161-3/+3
| | | | | | warning on x86-64 with gcc-4.3. llvm-svn: 57634
* Testcase for PR2762.Duncan Sands2008-10-161-0/+8
| | | | llvm-svn: 57633
* add some notesChris Lattner2008-10-161-1/+1
| | | | llvm-svn: 57631
* add some notes and a file to collect unimplemented features in theChris Lattner2008-10-161-0/+14
| | | | | | | x86 backend. These will all be answered with "patches welcome", so a PR doesn't help drive them along. llvm-svn: 57630
* mark some targets as experimental. Andrew, if you think that Alpha isChris Lattner2008-10-164-4/+5
| | | | | | | basically working, feel free to remove the tag. The other targets have really basic things that break them. llvm-svn: 57628
* Verify prefetch arguments, PR2576.Chris Lattner2008-10-161-0/+8
| | | | llvm-svn: 57626
* apply Eli's patch for PR2165 and provide a testcase.Chris Lattner2008-10-162-0/+14
| | | | llvm-svn: 57625
* Const-ify several TargetInstrInfo methods.Dan Gohman2008-10-1616-54/+57
| | | | llvm-svn: 57622
* Remove an unused variable.Dan Gohman2008-10-161-1/+0
| | | | llvm-svn: 57621
* Fix Instruction::isIdenticalTo and isSameOperationAs to recognizeDan Gohman2008-10-161-6/+57
| | | | | | | additional information in Loads, Stores, Calls, Invokes, InsertValueInsts, and ExtractValueInsts. llvm-svn: 57620
* Fix a calculation error in comments.Zhongxing Xu2008-10-161-1/+1
| | | | llvm-svn: 57619
* Rename AliasSet to SubRegs, to reflect changes in the surrounding code.Dan Gohman2008-10-161-3/+3
| | | | llvm-svn: 57618
* Move the include of MachineLocation.h into MachineModuleInfo.hDan Gohman2008-10-162-2/+1
| | | | | | | | because it declares a std::vector<MachineMove>, and strict concept checking requires the definition of MachineMove to be available. llvm-svn: 57617
* Implement a SmallVector insert method that can insert multipleDan Gohman2008-10-161-0/+62
| | | | | | | copies of a value, and add several additional utilities to make SmallVector better conform to the Container concept. llvm-svn: 57616
* Fix several places that called mapped_iterator's constructor withoutDan Gohman2008-10-161-3/+8
| | | | | | passing in a function object. llvm-svn: 57615
* Fix a subtle bug in DeadMachineInstructionElim's livenessDan Gohman2008-10-161-1/+4
| | | | | | | computation. A def of a register doesn't necessarily kill live super-registers. llvm-svn: 57614
* Fix the predicate for memop64 to be a regular load, not justDan Gohman2008-10-161-1/+1
| | | | | | an unindexed load. llvm-svn: 57612
* Teach instcombine's visitLoad to scan back several instructionsDan Gohman2008-10-153-10/+68
| | | | | | | | | | | | | | to find opportunities for store-to-load forwarding or load CSE, in the same way that visitStore scans back to do DSE. Also, define a new helper function for testing whether the addresses of two memory accesses are known to have the same value, and use it in both visitStore and visitLoad. These two changes allow instcombine to eliminate loads in code produced by front-ends that frequently emit obviously redundant addressing for memory references. llvm-svn: 57608
* Correct the name of isTrapping in comments.Dan Gohman2008-10-152-2/+2
| | | | llvm-svn: 57606
* Fix whitespace in a comment.Dan Gohman2008-10-151-1/+1
| | | | llvm-svn: 57605
* Testcase for PR2894.Duncan Sands2008-10-151-0/+7
| | | | llvm-svn: 57604
* Remove naming Tilmann for generics.Nicolas Geoffray2008-10-151-5/+4
| | | | llvm-svn: 57599
* Add global variable to test for consistencyAnton Korobeynikov2008-10-152-0/+4
| | | | llvm-svn: 57597
* This is not failing anymoreAnton Korobeynikov2008-10-151-2/+0
| | | | llvm-svn: 57596
* Also properly handle linking of strong alias and weak globalAnton Korobeynikov2008-10-151-25/+39
| | | | llvm-svn: 57595
* Properly handle linking of strong alias with weak function, this fixes PR2883Anton Korobeynikov2008-10-151-1/+1
| | | | llvm-svn: 57594
* Testcase for PR1638.Bill Wendling2008-10-151-0/+27
| | | | llvm-svn: 57590
* Fix a missing space after the return type in invoke statements.Dan Gohman2008-10-151-3/+3
| | | | | | This fixes PR2894. llvm-svn: 57589
* Fix PR2115 by doxygenating Use more, and make some more methods private.Chris Lattner2008-10-151-8/+21
| | | | llvm-svn: 57587
* move PR1941 here.Chris Lattner2008-10-151-0/+14
| | | | llvm-svn: 57586
* Unbreak the build. Please test out the proper fix for this by compiling LLVMBill Wendling2008-10-151-1/+3
| | | | | | with the build directory different from the source directory. llvm-svn: 57583
* move PR1604 here.Chris Lattner2008-10-151-0/+17
| | | | llvm-svn: 57582
* move PR1488 into this file.Chris Lattner2008-10-151-0/+33
| | | | llvm-svn: 57579
* Temporary revert r57567 and unbreak the build.Anton Korobeynikov2008-10-157-56/+8
| | | | llvm-svn: 57578
OpenPOWER on IntegriCloud