aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Regenerate.Reid Spencer2007-01-211-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33422 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the TARGET_HAS_JIT settings. Sparc doesn't, x86_64 does, ARM doesn't.Reid Spencer2007-01-211-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33421 91177308-0d34-0410-b5e6-96231b3b80d8
* default to emiting an uncompressed .bc fileChris Lattner2007-01-2110-12/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33420 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1128:Reid Spencer2007-01-211-24/+29
| | | | | | | Regenerate for ARM support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33419 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the ARM target in the target configuration processing.Reid Spencer2007-01-211-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33418 91177308-0d34-0410-b5e6-96231b3b80d8
* Whoops, fix typo in last commit.Reid Spencer2007-01-211-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33417 91177308-0d34-0410-b5e6-96231b3b80d8
* new testcaseChris Lattner2007-01-211-0/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33416 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR970:Reid Spencer2007-01-2113-150/+119
| | | | | | | | Clean up handling of isFloatingPoint() and dealing with PackedType. Patch by Gordon Henriksen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33415 91177308-0d34-0410-b5e6-96231b3b80d8
* Revise the store V, (cast P) -> store (cast V) -> P transform.Reid Spencer2007-01-201-9/+4
| | | | | | | | | | We only want to do this if the src and destination types have the same bit width. This patch uses TargetData::getTypeSizeInBits() instead of making a special case for integer types and avoiding the transform if they don't match. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33414 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a getTypeSizeInBits method. This helps in transforms that wantReid Spencer2007-01-202-0/+14
| | | | | | | to ensure the bit size of a type is identical before proceeding. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33413 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial template for the 2.0 Bitcode format that will replace the 1.xReid Spencer2007-01-201-0/+61
| | | | | | | Bytecode format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33412 91177308-0d34-0410-b5e6-96231b3b80d8
* TargetData assumes (and some regression tests depend on it) that the size ofOwen Anderson2007-01-202-5/+13
| | | | | | | an unspecified datatype in the datalayout is capped by the size of a pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33411 91177308-0d34-0410-b5e6-96231b3b80d8
* trivial cleanupChris Lattner2007-01-201-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33410 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach TargetData to handle 'preferred' alignment for each target, and useChris Lattner2007-01-2012-141/+365
| | | | | | | these alignment amounts to align scalars when we can. Patch by Scott Michel! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33409 91177308-0d34-0410-b5e6-96231b3b80d8
* DOUT still evaluates side effects, even though it doesn't print. This meansChris Lattner2007-01-201-0/+2
| | | | | | | | that disassembleBuffer will be called even if NDEBUG, but the result will be ignored. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33408 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR808:Reid Spencer2007-01-201-24/+29
| | | | | | | Regenerate to include NetBSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33407 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR808:Reid Spencer2007-01-201-1/+1
| | | | | | | NetBSD also doesn't have pthread_mutexattr_setpshared git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33406 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR808:Reid Spencer2007-01-201-0/+5
| | | | | | | Add support for NetBSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33405 91177308-0d34-0410-b5e6-96231b3b80d8
* Try a negative number with ashr.Reid Spencer2007-01-202-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33404 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the signed icmp instructions properly. To do this we introduceReid Spencer2007-01-201-17/+27
| | | | | | | | | a small inline function to sign extend a uint64_t value based on its type's bitwidth. This function is then used in both executeSExtInst and the various executeICMP_S** functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33403 91177308-0d34-0410-b5e6-96231b3b80d8
* Round up stack to multiple of alignment only if it's a leaf function without ↵Evan Cheng2007-01-201-4/+7
| | | | | | alloca. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33401 91177308-0d34-0410-b5e6-96231b3b80d8
* One more try...Evan Cheng2007-01-201-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33400 91177308-0d34-0410-b5e6-96231b3b80d8
* Last check-in was bogus. There is no need to align the stack if the function ↵Evan Cheng2007-01-201-3/+6
| | | | | | is a leaf function (and without alloca). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33399 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR1108: type of insert_vector_elt index operand is PtrVT, not MVT::i32.Evan Cheng2007-01-201-3/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33398 91177308-0d34-0410-b5e6-96231b3b80d8
* Correct a comment.Owen Anderson2007-01-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33397 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove an unused variable.Evan Cheng2007-01-201-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33396 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix incorrect run line.Owen Anderson2007-01-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33395 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement bit-accurate sext instruction.Reid Spencer2007-01-201-10/+14
| | | | | | | This patch fixes test/Integer/2007-01-17-TruncSext.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33394 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a test case for sext bug that Leo found.Reid Spencer2007-01-201-0/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33393 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate for Anton Korobeynikov.Reid Spencer2007-01-201-115/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33392 91177308-0d34-0410-b5e6-96231b3b80d8
* CleanupAnton Korobeynikov2007-01-201-16/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33391 91177308-0d34-0410-b5e6-96231b3b80d8
* Prologue and epilogue bugs for non-Darwin targets.Evan Cheng2007-01-201-22/+46
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33390 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up ARM PEI code.Evan Cheng2007-01-204-91/+75
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33389 91177308-0d34-0410-b5e6-96231b3b80d8
* Backend is reponsible for aligning the stack.Evan Cheng2007-01-201-7/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33388 91177308-0d34-0410-b5e6-96231b3b80d8
* We not align the final stack slot but instead let the target do so in ↵Evan Cheng2007-01-201-7/+0
| | | | | | emitPrologue(). Each target can make adjustments to the stack frame and re-align the stack as it deem appropriate. Do not align it twice which can end up wasting stack space. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33387 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a #include to resolve IntegerType class.Reid Spencer2007-01-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33385 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a #include to resolve IntegerType class.Reid Spencer2007-01-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33384 91177308-0d34-0410-b5e6-96231b3b80d8
* Add test case extracted from lencod. Spiller was infinite looping in ↵Evan Cheng2007-01-192-2/+104
| | | | | | GetRegForReload(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33383 91177308-0d34-0410-b5e6-96231b3b80d8
* GetRegForReload() now keeps track which registers have been considered and ↵Evan Cheng2007-01-191-8/+32
| | | | | | | | | | | | | | | rejected during its quest to find a suitable reload register. This avoids an infinite loop in case like this: t1 := op t2, t3 t2 <- assigned r0 for use by the reload but ended up reuse r1 t3 <- assigned r1 for use by the reload but ended up reuse r0 t1 <- desires r1 sees r1 is taken by t2, tries t2's reload register r0 sees r0 is taken by t3, tries t3's reload register r1 sees r1 is taken by t2, tries t2's reload register r0 ... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33382 91177308-0d34-0410-b5e6-96231b3b80d8
* Unbreak Darwin.Reid Spencer2007-01-191-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33375 91177308-0d34-0410-b5e6-96231b3b80d8
* Help the lli interpreter find the stderr/stdin/stdout symbols. These areReid Spencer2007-01-191-3/+19
| | | | | | | | needed for output to be generated. On Linux these are both global vars and macro definitions so we have to special case Linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33374 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle each of stderr/stdin/stdout separately.Reid Spencer2007-01-191-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33373 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead methods in the ValTypes.Reid Spencer2007-01-191-31/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33372 91177308-0d34-0410-b5e6-96231b3b80d8
* For this transform: store V, (cast P) -> store (cast V), PReid Spencer2007-01-191-3/+4
| | | | | | | | don't allow the transform if V and the pointer's element type are different width integer types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33371 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1043:Reid Spencer2007-01-1919-76/+85
| | | | | | | | | | | | | | | This is the final patch for this PR. It implements some minor cleanup in the use of IntegerType, to wit: 1. Type::getIntegerTypeMask -> IntegerType::getBitMask 2. Type::Int*Ty changed to IntegerType* from Type* 3. ConstantInt::getType() returns IntegerType* now, not Type* This also fixes PR1120. Patch by Sheng Zhou. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33370 91177308-0d34-0410-b5e6-96231b3b80d8
* Make this test actually test what its supposed to test.Reid Spencer2007-01-191-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33369 91177308-0d34-0410-b5e6-96231b3b80d8
* Code clean up. Use def : pat instead of defining new instructions.Evan Cheng2007-01-191-127/+87
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33368 91177308-0d34-0410-b5e6-96231b3b80d8
* fix build on amd64Andrew Lenharth2007-01-191-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33367 91177308-0d34-0410-b5e6-96231b3b80d8
* isDarwin -> isTargetDarwinEvan Cheng2007-01-193-8/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33366 91177308-0d34-0410-b5e6-96231b3b80d8
* Restructure code a bit to make use of continue (simplifying things). GeneralizeEvan Cheng2007-01-191-64/+87
| | | | | | | the .zerofill directive emission to not be darwin-specific. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33365 91177308-0d34-0410-b5e6-96231b3b80d8