aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Back out Owen's 6/9 changes. They broke ↵Evan Cheng2006-06-114-27/+2
| | | | | | MultiSource/Benchmarks/Prolangs-C/bison (and perhaps others). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28747 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a missing assertion that would have helped out ReidChris Lattner2006-06-101-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28746 91177308-0d34-0410-b5e6-96231b3b80d8
* Work around a nasty tblgen bug where it doesn't add operands for varargsChris Lattner2006-06-101-0/+157
| | | | | | | nodes correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28745 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a problem exposed by the local allocator. CALL instructions are not markedChris Lattner2006-06-102-18/+22
| | | | | | | | | | as using incoming argument registers, so the local allocator would clobber them between their set and use. To fix this, we give the call instructions a variable number of uses in the CALL MachineInstr itself, so live variables understands the live ranges of these register arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28744 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrap to 80 colsChris Lattner2006-06-091-4/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28743 91177308-0d34-0410-b5e6-96231b3b80d8
* After telling GCC to type of the input file with -x asm/-x c, switch back toChris Lattner2006-06-091-0/+2
| | | | | | | -x none, to not foul up autodetection of .a file or .dylibs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28741 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't pull in environ, not always safe. Global variables are bad anyway.Evan Cheng2006-06-091-8/+4
| | | | | | | | Use execve when explicit environment variables ptr is available. Otherwise just use execv. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28740 91177308-0d34-0410-b5e6-96231b3b80d8
* Add LCSSA as a requirement for LoopUnswitch, and assert that LoopUnswitch ↵Owen Anderson2006-06-091-0/+4
| | | | | | | | | preserves LCSSA. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28739 91177308-0d34-0410-b5e6-96231b3b80d8
* Make Loop able to verify that it is in LCSSA-form, and have the LCSSA pass ↵Owen Anderson2006-06-093-2/+23
| | | | | | | | | assert on this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28738 91177308-0d34-0410-b5e6-96231b3b80d8
* Comments to appease sabre.Evan Cheng2006-06-091-1/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28737 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor compilation speed improvement.Evan Cheng2006-06-091-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28736 91177308-0d34-0410-b5e6-96231b3b80d8
* RewriteExpr, either the new PHI node of induction variable or theEvan Cheng2006-06-091-0/+3
| | | | | | | | | post-increment value, should be first cast to the appropriated type (to the type of the common expr). Otherwise, the rewrite of a use based on (common + iv) may end up with an incorrect type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28735 91177308-0d34-0410-b5e6-96231b3b80d8
* Update some comments, and expose LCSSAID in preparation for having other passesOwen Anderson2006-06-082-1/+9
| | | | | | | require LCSSA. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28734 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix X86/inline-asm.ll:test2, a case where an input value was implicitlyChris Lattner2006-06-081-3/+6
| | | | | | | truncated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28733 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new testcaseChris Lattner2006-06-081-1/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28732 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Regression/CodeGen/X86/inline-asm.ll, a case where inline asm causesChris Lattner2006-06-081-6/+13
| | | | | | | implement extension of a register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28731 91177308-0d34-0410-b5e6-96231b3b80d8
* New testcase, using "AX" as i32.Chris Lattner2006-06-081-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28730 91177308-0d34-0410-b5e6-96231b3b80d8
* Squelch a warning about signed/unsigned.Reid Spencer2006-06-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28729 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for "m" inline asm constraints.Chris Lattner2006-06-081-1/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28728 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an assert-on-inline-inline-asm bug.Chris Lattner2006-06-081-12/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28727 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR804:Reid Spencer2006-06-082-2/+2
| | | | | | | | | Change the file size field of StatusInfo to be uint64_t instead of size_t so that we know it is always 64 bits. This prevents some overflow on systems where size_t is 32 bits when it ought to be 64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28726 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead code.Vladimir Prus2006-06-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28725 91177308-0d34-0410-b5e6-96231b3b80d8
* New method BasicBlock::getFirstNonPHI.Vladimir Prus2006-06-082-1/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28724 91177308-0d34-0410-b5e6-96231b3b80d8
* This no longer needs plugins, this it doesn't need all of VMCore.Chris Lattner2006-06-081-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28723 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR787:Reid Spencer2006-06-075-0/+34
| | | | | | | | | | | | | Provide new llvm::sys::Program facilities for converting the stdout and stdin to binary mode. There is no standard way to do this and the available mechanisms are platform specific. Adjust the bytecode reader and writer to use these methods when their input is stdin or output is stdout. THis avoids the problem with \n writing CRLF to a bytecode file on windows. Patch Contributed by Michael Smith. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28722 91177308-0d34-0410-b5e6-96231b3b80d8
* Shorten a value description so --help out isn't so wide.Reid Spencer2006-06-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28721 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure this tool links in all of libVMCore.a because it can --loadReid Spencer2006-06-071-0/+1
| | | | | | | shared objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28720 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR780:Reid Spencer2006-06-0710-2/+39
| | | | | | | | | | 1. Add #includes to LinkAllVMCore.h to get Mangler.o and InlineAsm.o 2. Make Mangler.h and InlineAsm.h use the macros to ensure linkage 3. Make each of the tools with --load options include LinkAllVMCore.h This should be the last set of changes for this bug and 800. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28719 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a virtual dtor to the InlineAsm class so that the principle method ofChris Lattner2006-06-072-0/+7
| | | | | | | the class can be defined in InlineAsm.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28718 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug where the types for inlineasm nodes were not properly entered intoChris Lattner2006-06-071-2/+2
| | | | | | | | the compaction table for a function. This broke compilation of hexxagon on darwin/x86 with recent changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28717 91177308-0d34-0410-b5e6-96231b3b80d8
* Previous version of this file wasn't supposed to be committed. This versionReid Spencer2006-06-071-30/+12
| | | | | | | attempts to get all of libVMCore.a through the least number of declarations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28716 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR780:Reid Spencer2006-06-0719-78/+57
| | | | | | | | | | | 1. Fix the macros in IncludeFile.h to put everything in the llvm namespace 2. Replace the previous explicit mechanism in all the .h and .cpp files with the macros in IncludeFile.h This gets us a consistent mechanism throughout LLVM for ensuring linkage. Next step is to make sure its used in enough places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28715 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a spello in a comment.Reid Spencer2006-06-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28714 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR780:Reid Spencer2006-06-072-16/+62
| | | | | | | | | | This change was suggested by Chris so that we can select an alternate (or even no-op) implementation of the link assurance. I'm committing this for your review, Chris. If the names and definitions are okay, I'll adjust all the .h and .cpp files in a later patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28712 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR780:Reid Spencer2006-06-0711-15/+195
| | | | | | | | | | Break the "IncludeFile" mechanism into its own header file and adjust other files accordingly. Use this facility for the IntrinsicInst problem which was the subject of PR800. More to follow on this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28709 91177308-0d34-0410-b5e6-96231b3b80d8
* Add -extraflags FLAGS to pass extra compilation options.Evan Cheng2006-06-071-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28707 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove useless noop argumentChris Lattner2006-06-071-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28706 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug in the following scenario.Chris Lattner2006-06-061-1/+2
| | | | | | | | | | | | 1. llvm is built with objroot = OBJ and installed. 2. OBJ is deleted or install tree is shipped. 3. llvm-config is run. In this scenario, llvm-config shouldn't emit an error message at #3, it should just know it's not running in the objdir :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28704 91177308-0d34-0410-b5e6-96231b3b80d8
* Added X86FunctionInfo subclass of MachineFunction to record whether theEvan Cheng2006-06-063-7/+41
| | | | | | | | function that is being lowered is forced to use FP. Currently this is only true for main() / Cygwin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28703 91177308-0d34-0410-b5e6-96231b3b80d8
* document --libfilesChris Lattner2006-06-061-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28702 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new --libfiles option, for getting fully-qualified pathnames to libraries.Chris Lattner2006-06-061-7/+19
| | | | | | | | This can be used for tools that want makefile rules to depend on the libraries (e.g. so the tool is relinked when a library changes). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28701 91177308-0d34-0410-b5e6-96231b3b80d8
* Move toolrunner out of libsupport into the bugpoint toolChris Lattner2006-06-062-714/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28700 91177308-0d34-0410-b5e6-96231b3b80d8
* Move ToolRunner.(cpp|h) into the bugpoint directoryChris Lattner2006-06-066-9/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28699 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug in a recent patch. This fixes UnitTests/Vector/Altivec/casts.c onChris Lattner2006-06-061-1/+1
| | | | | | | PPC/altivec git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28698 91177308-0d34-0410-b5e6-96231b3b80d8
* Now that PR633 is implemented, the CBE can know to emit _setjmp/_longjmpChris Lattner2006-06-062-0/+12
| | | | | | | | when available. This speeds up hexxagon from 18.61s to 16.61s with the CBE on PPC Mac OS (for reference, LLC is 15.48s and GCC is 23.35s). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28697 91177308-0d34-0410-b5e6-96231b3b80d8
* Add PowerPC intrinsics to support dcbz[l]Chris Lattner2006-06-063-0/+34
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28696 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the llvm-config library dependency database depend on all of the libraries.Chris Lattner2006-06-061-6/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28695 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some formatting, and use inLoop() when appropriate.Owen Anderson2006-06-061-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28694 91177308-0d34-0410-b5e6-96231b3b80d8
* Stop a memory leak, and update some comments.Owen Anderson2006-06-061-10/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28693 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the -Xlinker option to bugpoint which allows an option to be passedReid Spencer2006-06-065-25/+98
| | | | | | | | | | through to gcc when its being used as a linker. This allows -L and -l (and any other) options to be added so that non-complete bytecode files can be processed with bugpoint. The -Xlinker option can be added as many times as needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28692 91177308-0d34-0410-b5e6-96231b3b80d8