summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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. llvm-svn: 33371
* For PR1043:Reid Spencer2007-01-1918-76/+84
| | | | | | | | | | | | | | 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. llvm-svn: 33370
* Make this test actually test what its supposed to test.Reid Spencer2007-01-191-1/+2
| | | | llvm-svn: 33369
* Code clean up. Use def : pat instead of defining new instructions.Evan Cheng2007-01-191-127/+87
| | | | llvm-svn: 33368
* fix build on amd64Andrew Lenharth2007-01-191-1/+1
| | | | llvm-svn: 33367
* isDarwin -> isTargetDarwinEvan Cheng2007-01-193-8/+8
| | | | llvm-svn: 33366
* 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. llvm-svn: 33365
* Darwin doesn't support .bss, but it does have .zerofillEvan Cheng2007-01-191-5/+7
| | | | llvm-svn: 33364
* Introduce TargetType's ELF and Darwin.Evan Cheng2007-01-192-8/+17
| | | | llvm-svn: 33363
* Modify emission of jump tables on darwin to emit an extra "l" label thatEvan Cheng2007-01-191-0/+7
| | | | | | | delimits the boundaries of jump tables. This lets the linker's dead code stripping optimization do a better job. llvm-svn: 33362
* Remove this xform:Evan Cheng2007-01-191-7/+26
| | | | | | | | | | (shl (add x, c1), c2) -> (add (shl x, c2), c1<<c2) Replace it with: (add (shl (add x, c1), c2), ) -> (add (add (shl x, c2), c1<<c2), ) This fixes test/CodeGen/ARM/smul.ll llvm-svn: 33361
* Add the check for udis86 to support disassembly.Reid Spencer2007-01-191-28/+145
| | | | | | Regenerated for Anton Korobeynikov. llvm-svn: 33360
* Fix section definition.Lauro Ramos Venancio2007-01-191-2/+2
| | | | llvm-svn: 33359
* Adding disassembler interface and external hook to udis86 library.Anton Korobeynikov2007-01-195-3/+130
| | | | llvm-svn: 33358
* icmp doesn't support comparison of packed types.Reid Spencer2007-01-191-3/+0
| | | | llvm-svn: 33357
* Cover non-byte-width BATs situation.Zhou Sheng2007-01-192-6/+21
| | | | llvm-svn: 33356
* Cover more arithmetics for arbitrary bitwidth integers.Zhou Sheng2007-01-1917-0/+81
| | | | llvm-svn: 33355
* ARM test cases contributed by Apple.Evan Cheng2007-01-1947-209/+953
| | | | llvm-svn: 33354
* ARM backend contribution from Apple.Evan Cheng2007-01-1932-1968/+8695
| | | | llvm-svn: 33353
* Needed to build on PPC Linux.Nick Lewycky2007-01-191-0/+3
| | | | llvm-svn: 33352
* Add one test case for Arbitrary BitWidth Integers.Zhou Sheng2007-01-192-0/+36
| | | | llvm-svn: 33348
* Back out last changes for dataLayout. Much more work is needed.Reid Spencer2007-01-192-10/+0
| | | | llvm-svn: 33347
* For PR761:Reid Spencer2007-01-182-0/+10
| | | | | | Implement reading and writing of the Module's data layout string. llvm-svn: 33346
* - Target PIC style is no longer affected by relocation model.Evan Cheng2007-01-182-49/+49
| | | | | | | | - In x86-64 mode, symbols with external linkage (not just symbols which are defined externally) requires GOT indirect reference. - Stylistic code clean up. llvm-svn: 33345
* remove an execution test from llvm/testChris Lattner2007-01-181-51/+0
| | | | llvm-svn: 33344
* Fix InstCombine/2007-01-18-VectorInfLoop.ll, a case where instcombineChris Lattner2007-01-181-3/+9
| | | | | | infinitely loops. llvm-svn: 33343
* new testcase that causes instcombine to infinitely loopChris Lattner2007-01-181-0/+7
| | | | llvm-svn: 33342
* Update copyright for 2007.Reid Spencer2007-01-181-1/+1
| | | | llvm-svn: 33339
* Welcome 2007.John Criswell2007-01-181-1/+1
| | | | llvm-svn: 33338
* Clean up some code around the store V, (cast P) -> store (cast V), PReid Spencer2007-01-181-8/+14
| | | | | | | | | transform. Change some variable names so it is clear what is source and what is dest of the cast. Also, add an assert to ensure that the integer to integer case is asserting if the bitwidths are different. This prevents illegal casts from being formed and catches bitwidth bugs sooner. llvm-svn: 33337
* Use a cheaper computation.Reid Spencer2007-01-181-1/+1
| | | | llvm-svn: 33336
* Fix a regression in the last patch. When constructing a BitMask, be carefulReid Spencer2007-01-181-0/+4
| | | | | | | not to overflow 64-bits and end up with a 0 mask. This caused i64 values to always be stored as 0 with lots of consequential damage to nightly test. llvm-svn: 33335
* move contents of PR587 to here.Chris Lattner2007-01-181-0/+45
| | | | llvm-svn: 33333
* Provide an isPowerOf2ByteWidth method for the IntegerType class. This willReid Spencer2007-01-182-0/+11
| | | | | | | mostly be used by back ends that wish to distinguish between integer types that fit evenly within a natural integer type and those that don't. llvm-svn: 33328
* The zerofill directive needs a newline after it.Bill Wendling2007-01-181-1/+1
| | | | llvm-svn: 33327
* Use the new maskToBitWidth function to ensure that the results ofReid Spencer2007-01-181-10/+15
| | | | | | computations do not overflow the intended bit width. llvm-svn: 33326
* Add an inline helper function that masks a GenericValue to a specifiedReid Spencer2007-01-181-0/+12
| | | | | | bit width. llvm-svn: 33325
* Minor code clean up.Evan Cheng2007-01-182-18/+21
| | | | llvm-svn: 33323
* Make shl instruction mask its result to the correct bitsize. This isReid Spencer2007-01-181-5/+10
| | | | | | | sufficient to get llvm-test/SingleSource/UnitTests/Integer/general-test.ll working with lli in interpreter mode. llvm-svn: 33321
* Two changes:Reid Spencer2007-01-181-18/+17
| | | | | | | | | 1. Fix logic for executeGEP. Only 32-bit and 64-bit integer types are acceptable as indices. 2. Ensure that all integer cast operations truncate their result to the integer size of the operand. llvm-svn: 33318
* Make sure we truncate stored values to their bit width.Reid Spencer2007-01-181-30/+40
| | | | llvm-svn: 33317
* Have the OutputBuffer take the is64Bit and isLittleEndian booleans.Bill Wendling2007-01-184-28/+36
| | | | llvm-svn: 33316
* Modify emission of jump tables on darwin to emit an extra "l" label thatChris Lattner2007-01-182-0/+14
| | | | | | | delimits the boundaries of jump tables. This lets the linker's dead code stripping optimization do a better job. llvm-svn: 33315
* add new JumpTableSpecialLabelPrefix hook to asmprinter for jumptable emission.Chris Lattner2007-01-183-1/+17
| | | | llvm-svn: 33314
* For PR1028:Reid Spencer2007-01-171-2/+4
| | | | | | | | | | | | | Add the llvm.stacksave and llvm.stackrestore intrinsics that correspond to the GCC builtins __builtin_stack_save and __builtin_stack_restore. This allows the CBE to execute these builtins, and fixes: test/CodeGen/CBackend/2007-01-17-StackSaveNRestore.ll External/SPEC/CINT2000/176.gcc (CBE) Patch by Gordon Henriksen. llvm-svn: 33313
* For PR1028:Reid Spencer2007-01-171-0/+12
| | | | | | | | | Ensure the CBE generates calls to GCC builtins for stack_save and stack_restore when it encounters the corresponding intrinsics. Patch by Gordon Henriksen. llvm-svn: 33312
* Changed to use the OutputBuffer instead of the methods in MachO and ELFBill Wendling2007-01-175-348/+200
| | | | | | writers. llvm-svn: 33311
* Refactored output buffer methods from MachO and ELF writers.Bill Wendling2007-01-171-0/+146
| | | | llvm-svn: 33310
* Add CGPassManager.Devang Patel2007-01-171-0/+124
| | | | llvm-svn: 33309
* Update ModulePass::assignPassManager() to take into account PreferredDevang Patel2007-01-171-4/+5
| | | | | | Pass Manager Type. llvm-svn: 33308
OpenPOWER on IntegriCloud