aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add test cases for PR1022, 1023.Evan Cheng2006-11-291-0/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32002 91177308-0d34-0410-b5e6-96231b3b80d8
* Upgrade the ugly darwin 64-bit bswap idiom (bswap %eax / bswap %edx /Chris Lattner2006-11-291-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xchgl %eax, %edx) to llvm.bswap.i64. This compiles: long long test2(long long A) { return _OSSwapInt64(A); } to: _test2: movl 8(%esp), %eax movl 4(%esp), %edx bswapl %eax bswapl %edx ret instead of: _test2: movl 8(%esp), %edx movl 4(%esp), %eax bswap %eax bswap %edx xchgl %eax, %edx ret GCC manages (with -fomit-frame-pointer) the uglier: _test2: subl $4, %esp movl 8(%esp), %eax movl 12(%esp), %edx bswap %eax bswap %edx xchgl %eax, %edx addl $4, %esp ret git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32001 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR1022 (folding loads of static initializers) by Dan Gohman.Evan Cheng2006-11-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32000 91177308-0d34-0410-b5e6-96231b3b80d8
* Trivially lower 'bswap $0' into llvm.bswap. This fixes hexxagon with theChris Lattner2006-11-292-1/+75
| | | | | | | JIT on darwin/x86, which has htonl implemented as inline asm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31999 91177308-0d34-0410-b5e6-96231b3b80d8
* WTF? These weird newlines got in there...Bill Wendling2006-11-292-52/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31998 91177308-0d34-0410-b5e6-96231b3b80d8
* add a hook to allow targets to hack on inline asms to lower them to llvmChris Lattner2006-11-292-4/+22
| | | | | | | when they want to. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31997 91177308-0d34-0410-b5e6-96231b3b80d8
* Join a split line.Reid Spencer2006-11-291-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31996 91177308-0d34-0410-b5e6-96231b3b80d8
* Converted to using llvm streams instead of <iostream>sBill Wendling2006-11-296-90/+103
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31992 91177308-0d34-0410-b5e6-96231b3b80d8
* Replacing std::iostreams with llvm iostreams. Some of these changes involveBill Wendling2006-11-2925-179/+217
| | | | | | | | adding a temporary wrapper around the ostream to make it friendly to functions expecting an LLVM stream. This should be fixed in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31990 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert to using llvm streams instead of iostreams.Bill Wendling2006-11-289-61/+64
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31989 91177308-0d34-0410-b5e6-96231b3b80d8
* Support for llvm_ostreams.Bill Wendling2006-11-286-16/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31988 91177308-0d34-0410-b5e6-96231b3b80d8
* gcc doesn't like an empty colbber listAndrew Lenharth2006-11-282-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31987 91177308-0d34-0410-b5e6-96231b3b80d8
* Use ostream instead of iostreamBill Wendling2006-11-282-4/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31986 91177308-0d34-0410-b5e6-96231b3b80d8
* Use llvm streams instead of <iostream>Bill Wendling2006-11-283-20/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31985 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed #include <iostream> and used llvm streamsBill Wendling2006-11-281-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31984 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed some of the iostream #includes. Moved towards converting to usingBill Wendling2006-11-2812-89/+143
| | | | | | | llvm streams git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31983 91177308-0d34-0410-b5e6-96231b3b80d8
* Support for llvm streams.Bill Wendling2006-11-282-2/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31982 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a helper functionChris Lattner2006-11-282-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31981 91177308-0d34-0410-b5e6-96231b3b80d8
* Identities are default nowAndrew Lenharth2006-11-281-4/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31980 91177308-0d34-0410-b5e6-96231b3b80d8
* Make identity default, and fix PR1020Andrew Lenharth2006-11-282-14/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31979 91177308-0d34-0410-b5e6-96231b3b80d8
* Added a temporary hack to get the llvm-streams to work for future checkins.Bill Wendling2006-11-2814-7/+114
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31978 91177308-0d34-0410-b5e6-96231b3b80d8
* Undo the last patch until 253.perlbmk passes with these changes.Reid Spencer2006-11-281-3/+46
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31977 91177308-0d34-0410-b5e6-96231b3b80d8
* New entries.Evan Cheng2006-11-281-0/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31976 91177308-0d34-0410-b5e6-96231b3b80d8
* update commentsAndrew Lenharth2006-11-282-4/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31975 91177308-0d34-0410-b5e6-96231b3b80d8
* Get the asminfo for the target most closely matching the module and use that ↵Andrew Lenharth2006-11-282-56/+52
| | | | | | for inline asm git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31974 91177308-0d34-0410-b5e6-96231b3b80d8
* X86 asm -> gcc asm translation table (incomplete)Andrew Lenharth2006-11-281-1/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31973 91177308-0d34-0410-b5e6-96231b3b80d8
* Add per-target support for asm translation in the cbeAndrew Lenharth2006-11-282-1/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31972 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove debug code.Jim Laskey2006-11-281-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31970 91177308-0d34-0410-b5e6-96231b3b80d8
* Prime text sections to improve branch locality in large object files.Jim Laskey2006-11-281-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31969 91177308-0d34-0410-b5e6-96231b3b80d8
* 32-bit int space was not accounted for properly in lowerCall.Jim Laskey2006-11-281-3/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31966 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2006-11-283-586/+678
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31965 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement signedness caching for values, value lists, constants andReid Spencer2006-11-283-205/+253
| | | | | | | | | | | | constant lists. This is just an internal change to the parser in preparation for some backwards compatibility code that is to follow. This will allow things like "uint 4000000000" to retain the unsignedness of the integer constant as the value moves through the parser. In the future, all integer types will be signless but parsing "uint" and friends will be retained for backwards compatibility. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31964 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove 4 FIXME's from the CAST patch now that the back end is correctlyReid Spencer2006-11-281-46/+3
| | | | | | | producing code for "trunc to bool". This passes all tests on Linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31963 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an -append-exit-code option to bugpoint. This will cause bugpoint toReid Spencer2006-11-281-0/+11
| | | | | | | | | append "exit <retcode>" to the end of the output file. This is used by the nightly tester to make bugpoint match the output generated by the RunSafely.sh script so it doesn't find false positives. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31960 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo.Reid Spencer2006-11-281-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31959 91177308-0d34-0410-b5e6-96231b3b80d8
* Put the #include for a module first.Bill Wendling2006-11-281-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31958 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up.Evan Cheng2006-11-281-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31957 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix indentation.Evan Cheng2006-11-281-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31956 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed to using LLVM streams.Bill Wendling2006-11-286-35/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31955 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed to using llvm streams.Bill Wendling2006-11-282-15/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31954 91177308-0d34-0410-b5e6-96231b3b80d8
* Added helper function to transition to using llvm streams.Bill Wendling2006-11-281-2/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31953 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix JIT encoding bugs for shift / rotate by one ops.Evan Cheng2006-11-281-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31952 91177308-0d34-0410-b5e6-96231b3b80d8
* testcase for pr1016Chris Lattner2006-11-281-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31951 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1016Chris Lattner2006-11-281-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31950 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed #include <iostream> and replaced streams with llvm streams.Bill Wendling2006-11-273-47/+47
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31949 91177308-0d34-0410-b5e6-96231b3b80d8
* Preliminary support for inline asm in the cbe. The target specific uglinessAndrew Lenharth2006-11-272-4/+328
| | | | | | | | | | | is still in Writer, but issolated to a single function. This might be split into something in each target directory. This is sufficient to get through archie and an strcpy impl on linux-x86. Module level asm is not handled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31948 91177308-0d34-0410-b5e6-96231b3b80d8
* Change MachineInstr ctor's to take a TargetInstrDescriptor reference insteadEvan Cheng2006-11-2736-356/+400
| | | | | | | of opcode and number of operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31947 91177308-0d34-0410-b5e6-96231b3b80d8
* remove dead tagChris Lattner2006-11-271-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31944 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the dag combiner bug corresponding to PR1014.Chris Lattner2006-11-271-8/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31943 91177308-0d34-0410-b5e6-96231b3b80d8
* this doesn't pass with CVS HEAD.Chris Lattner2006-11-271-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31942 91177308-0d34-0410-b5e6-96231b3b80d8