aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a flag to identify bytecode files that have intrinsic functions thatReid Spencer2006-01-191-0/+7
| | | | | | | need to be upgraded. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25445 91177308-0d34-0410-b5e6-96231b3b80d8
* adc and sbb need an incoming flag to ensure it reads the carry flagEvan Cheng2006-01-191-2/+3
| | | | | | | from add / sub. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25444 91177308-0d34-0410-b5e6-96231b3b80d8
* make this work for Reid, who renamed his CVS module dir :)Chris Lattner2006-01-191-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25443 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcase the autoupgrader in the bc reader fails to handleChris Lattner2006-01-192-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25442 91177308-0d34-0410-b5e6-96231b3b80d8
* Make get_suffix faster by using a switch on getTypeID rather than a seriesReid Spencer2006-01-191-12/+9
| | | | | | | of comparisons on the various type objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25441 91177308-0d34-0410-b5e6-96231b3b80d8
* Another typoEvan Cheng2006-01-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25440 91177308-0d34-0410-b5e6-96231b3b80d8
* add a noteChris Lattner2006-01-191-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25439 91177308-0d34-0410-b5e6-96231b3b80d8
* Two peepholes:Evan Cheng2006-01-191-0/+10
| | | | | | | | (or (x >> c) | (y << (32 - c))) ==> (shrd x, y, c) (or (x << c) | (y >> (32 - c))) ==> (shld x, y, c) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25438 91177308-0d34-0410-b5e6-96231b3b80d8
* Prevent unnecessary CopyToReg when the same HW register appears in two spotsEvan Cheng2006-01-191-0/+9
| | | | | | | in the pattern. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25437 91177308-0d34-0410-b5e6-96231b3b80d8
* Didn't mean to check that in.Evan Cheng2006-01-191-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25436 91177308-0d34-0410-b5e6-96231b3b80d8
* A obvious typoEvan Cheng2006-01-192-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25435 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure intrinsic auto-upgrade is invoked correctly.Reid Spencer2006-01-194-2178/+2966
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25434 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't accept the ctpop, cttz, or ctlz intrinsics with signed arguments. TheReid Spencer2006-01-191-36/+16
| | | | | | | interface requires unsigned arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25433 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new interface function to AutoUpgrade for simultaneously upgradingReid Spencer2006-01-192-60/+175
| | | | | | | | | the Function and the CallInst: UpgradeCallsToIntrinsic(Function*). Also, re-factor the AutoUpgrade implementation to eliminate some duplication of code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25432 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand test to cover the non-overloaded variants of the arithmetic andReid Spencer2006-01-191-1/+45
| | | | | | | floating point intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25431 91177308-0d34-0410-b5e6-96231b3b80d8
* If not internalizing, don't mark llvm.global[cd]tors const, as a fix for aChris Lattner2006-01-191-2/+5
| | | | | | | hypothetical future boog. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25430 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't internalize llvm.global[cd]tor unless there are uses of it. ThisChris Lattner2006-01-191-3/+9
| | | | | | | unbreaks front-ends that don't use __main (like the new CFE). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25429 91177308-0d34-0410-b5e6-96231b3b80d8
* was ignoring the legalized chain in this case, fixed SPASS on alphaAndrew Lenharth2006-01-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25428 91177308-0d34-0410-b5e6-96231b3b80d8
* a reduced test case, the GlobalAddress is never legalizedAndrew Lenharth2006-01-181-0/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25427 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of code in the DAGCombiner that is duplicated in SelectionDAG.cppNate Begeman2006-01-181-74/+80
| | | | | | | Now all constant folding in the code generator is in one place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25426 91177308-0d34-0410-b5e6-96231b3b80d8
* Temporary work around for a libcall insertion bug: If a target doesn'tChris Lattner2006-01-181-2/+6
| | | | | | | support FSIN/FCOS nodes, do not lower sin/cos to them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25425 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure that cloning a module clones its target triple and dependentChris Lattner2006-01-181-3/+7
| | | | | | | library list as well. This should help bugpoint. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25424 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't assert on 'select_cc SETUO'Chris Lattner2006-01-181-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25423 91177308-0d34-0410-b5e6-96231b3b80d8
* fix out of date commentChris Lattner2006-01-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25422 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Regression/CodeGen/PowerPC/2006-01-18-InvalidBranchOpcodeAssert.llChris Lattner2006-01-181-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25421 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2006-01-181-0/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25420 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a backwards conditional that caused an inf loop in some cases. ThisChris Lattner2006-01-181-1/+1
| | | | | | | fixes: test/Regression/CodeGen/Generic/2005-01-18-SetUO-InfLoop.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25419 91177308-0d34-0410-b5e6-96231b3b80d8
* this testcase sent the dag combiner spinning into an infinite loopChris Lattner2006-01-181-0/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25418 91177308-0d34-0410-b5e6-96231b3b80d8
* Added minimum Dwarf aranges. Cleaned up some section headers. Line numberJim Laskey2006-01-183-25/+65
| | | | | | | support now works in gdb. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25417 91177308-0d34-0410-b5e6-96231b3b80d8
* SRA shift amount must be in i8Evan Cheng2006-01-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25416 91177308-0d34-0410-b5e6-96231b3b80d8
* If a call return type is i1, insert a truncate from X86::AL to i1.Evan Cheng2006-01-181-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25415 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed style of curly brace. No functionality changes.John Criswell2006-01-171-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25414 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix lowering of calls which return f32 values.Evan Cheng2006-01-171-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25413 91177308-0d34-0410-b5e6-96231b3b80d8
* Pastos.Jim Laskey2006-01-171-9/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25412 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a broken commentChris Lattner2006-01-171-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25411 91177308-0d34-0410-b5e6-96231b3b80d8
* Add frame work for additional dwarf sections. Comments will improve as codeJim Laskey2006-01-173-3/+147
| | | | | | | is added. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25410 91177308-0d34-0410-b5e6-96231b3b80d8
* Test case for the insertelement operation.Robert Bocchino2006-01-171-2/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25409 91177308-0d34-0410-b5e6-96231b3b80d8
* VMCore support for the insertelement operation.Robert Bocchino2006-01-177-9/+150
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25408 91177308-0d34-0410-b5e6-96231b3b80d8
* Constant folding support for the insertelement operation.Robert Bocchino2006-01-171-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25407 91177308-0d34-0410-b5e6-96231b3b80d8
* Lowerpacked and SCCP support for the insertelement operation.Robert Bocchino2006-01-172-8/+66
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25406 91177308-0d34-0410-b5e6-96231b3b80d8
* Support for the insertelement operation.Robert Bocchino2006-01-172-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25405 91177308-0d34-0410-b5e6-96231b3b80d8
* Reader support for the insertelement operation.Robert Bocchino2006-01-171-0/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25404 91177308-0d34-0410-b5e6-96231b3b80d8
* Lexer and parser support for the insertelement operation.Robert Bocchino2006-01-175-3365/+2628
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25403 91177308-0d34-0410-b5e6-96231b3b80d8
* Instruction and constant expression definitions for the insertelementRobert Bocchino2006-01-173-7/+62
| | | | | | | operation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25402 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fix: missing LegalizeOp() on newly created nodes.Evan Cheng2006-01-171-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25401 91177308-0d34-0410-b5e6-96231b3b80d8
* Suppress "no newline at end of file" warnings.Evan Cheng2006-01-171-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25400 91177308-0d34-0410-b5e6-96231b3b80d8
* Misc. errors.Jim Laskey2006-01-171-7/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25399 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up the FFS optimization code, and make it correctly create the appropriateChris Lattner2006-01-171-41/+43
| | | | | | | | unsigned llvm.cttz.* intrinsic, fixing the 2005-05-11-Popcount-ffs-fls regression last night. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25398 91177308-0d34-0410-b5e6-96231b3b80d8
* Adding basic support for Dwarf line number debug information.Jim Laskey2006-01-176-205/+1787
| | | | | | | I promise to keep future commits smaller. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25396 91177308-0d34-0410-b5e6-96231b3b80d8
* Adding UniqueVector.Jim Laskey2006-01-171-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25395 91177308-0d34-0410-b5e6-96231b3b80d8