oota-llvm.git
20 years agoNew testcase
Chris Lattner [Sun, 3 Aug 2003 18:28:09 +0000 (18:28 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7525 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix bug: TableGen/BitsInitOverflow.td
Chris Lattner [Sun, 3 Aug 2003 18:24:34 +0000 (18:24 +0000)]
Fix bug: TableGen/BitsInitOverflow.td

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7524 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd Target class for X86 target
Chris Lattner [Sun, 3 Aug 2003 18:19:37 +0000 (18:19 +0000)]
Add Target class for X86 target

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7523 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThe RegisterInfo class is obsolete
Chris Lattner [Sun, 3 Aug 2003 18:18:48 +0000 (18:18 +0000)]
The RegisterInfo class is obsolete

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7522 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove the RegisterInfo class in favor of a general Target class. Add instrinfo...
Chris Lattner [Sun, 3 Aug 2003 18:18:31 +0000 (18:18 +0000)]
Remove the RegisterInfo class in favor of a general Target class.  Add instrinfo stuff

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7521 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Changes to allow lists of any type
Chris Lattner [Sun, 3 Aug 2003 18:17:54 +0000 (18:17 +0000)]
* Changes to allow lists of any type
* Reorganize Target class a bit
* Fix string out of range access bug

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7520 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChanges to allow lists of any type
Chris Lattner [Sun, 3 Aug 2003 18:17:22 +0000 (18:17 +0000)]
Changes to allow lists of any type

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7519 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoexpand contraction
Chris Lattner [Sun, 3 Aug 2003 18:12:59 +0000 (18:12 +0000)]
expand contraction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7518 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew testcase
Chris Lattner [Sun, 3 Aug 2003 17:47:52 +0000 (17:47 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7517 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for instruction enum emission
Chris Lattner [Sun, 3 Aug 2003 17:24:20 +0000 (17:24 +0000)]
Add support for instruction enum emission

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7516 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInitial checkin of Instruction emitter, which just produces enum values so far
Chris Lattner [Sun, 3 Aug 2003 17:24:10 +0000 (17:24 +0000)]
Initial checkin of Instruction emitter, which just produces enum values so far

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7515 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove dead private:
Chris Lattner [Sun, 3 Aug 2003 16:30:24 +0000 (16:30 +0000)]
Remove dead private:

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7514 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTell CVS to ignore all .inc files
Chris Lattner [Sun, 3 Aug 2003 15:50:17 +0000 (15:50 +0000)]
Tell CVS to ignore all .inc files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7513 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoSwitch over to tablegen generated header files
Chris Lattner [Sun, 3 Aug 2003 15:48:55 +0000 (15:48 +0000)]
Switch over to tablegen generated header files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7512 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoSwitch over to TableGen generated register file description
Chris Lattner [Sun, 3 Aug 2003 15:48:14 +0000 (15:48 +0000)]
Switch over to TableGen generated register file description

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7511 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInitial checkin of X86.td file
Chris Lattner [Sun, 3 Aug 2003 15:47:49 +0000 (15:47 +0000)]
Initial checkin of X86.td file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7510 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInitial checkin of X86 Register File description
Chris Lattner [Sun, 3 Aug 2003 15:47:25 +0000 (15:47 +0000)]
Initial checkin of X86 Register File description

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7509 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake the register numbers line up more frequently
Chris Lattner [Sun, 3 Aug 2003 15:40:38 +0000 (15:40 +0000)]
Make the register numbers line up more frequently

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7508 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAllow an external 'set' command to set multiple values in the same command.
Chris Lattner [Sun, 3 Aug 2003 13:58:01 +0000 (13:58 +0000)]
Allow an external 'set' command to set multiple values in the same command.
Allow redefinitions of variables as long as they are of the same type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7507 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFinish the register info emitter
Chris Lattner [Sun, 3 Aug 2003 13:52:02 +0000 (13:52 +0000)]
Finish the register info emitter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7506 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix typeos in comments
Chris Lattner [Sun, 3 Aug 2003 13:50:14 +0000 (13:50 +0000)]
Fix typeos in comments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7505 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake it easier to debug by exposing a temporary
Chris Lattner [Sun, 3 Aug 2003 13:49:25 +0000 (13:49 +0000)]
Make it easier to debug by exposing a temporary

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7504 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoWrap at 80 columns
Chris Lattner [Sun, 3 Aug 2003 13:49:03 +0000 (13:49 +0000)]
Wrap at 80 columns

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7503 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd new method
Chris Lattner [Sat, 2 Aug 2003 01:27:37 +0000 (01:27 +0000)]
Add new method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7502 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix problem executing the CBE
Chris Lattner [Fri, 1 Aug 2003 23:29:59 +0000 (23:29 +0000)]
Fix problem executing the CBE

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7500 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix a bug
Chris Lattner [Fri, 1 Aug 2003 22:26:27 +0000 (22:26 +0000)]
Fix a bug

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7499 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRename fields
Chris Lattner [Fri, 1 Aug 2003 22:21:49 +0000 (22:21 +0000)]
Rename fields

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7498 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMove DEBUG to Debug.h
Chris Lattner [Fri, 1 Aug 2003 22:21:34 +0000 (22:21 +0000)]
Move DEBUG to Debug.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7497 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUpdate information about the new DEBUG_TYPE macro
Chris Lattner [Fri, 1 Aug 2003 22:20:59 +0000 (22:20 +0000)]
Update information about the new DEBUG_TYPE macro

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7496 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDEBUG got moved to Debug.h
Chris Lattner [Fri, 1 Aug 2003 22:19:03 +0000 (22:19 +0000)]
DEBUG got moved to Debug.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7495 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMove debug functionality to Debug.cpp/Debug.h
Chris Lattner [Fri, 1 Aug 2003 22:15:41 +0000 (22:15 +0000)]
Move debug functionality to Debug.cpp/Debug.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7494 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDescribe the value name
Chris Lattner [Fri, 1 Aug 2003 22:15:15 +0000 (22:15 +0000)]
Describe the value name

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7493 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDEBUG got moved to Support/Debug.h
Chris Lattner [Fri, 1 Aug 2003 22:15:03 +0000 (22:15 +0000)]
DEBUG got moved to Support/Debug.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7492 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDEBUG got moved to Debug.h
Chris Lattner [Fri, 1 Aug 2003 22:13:59 +0000 (22:13 +0000)]
DEBUG got moved to Debug.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7491 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMove debugging support out of Statistic.h into Debug.h, implement the new DEBUG_TYPE...
Chris Lattner [Fri, 1 Aug 2003 22:12:40 +0000 (22:12 +0000)]
Move debugging support out of Statistic.h into Debug.h, implement the new DEBUG_TYPE facilities

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7490 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoIncluding statistics into an anonymous namespace that gets #included into
Chris Lattner [Fri, 1 Aug 2003 22:12:07 +0000 (22:12 +0000)]
Including statistics into an anonymous namespace that gets #included into
every file is a bad idea.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7489 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix <>'s in HTML
Chris Lattner [Fri, 1 Aug 2003 21:30:37 +0000 (21:30 +0000)]
Fix <>'s in HTML

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7488 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoCheck in the implementation of the FileUtilities!
Chris Lattner [Fri, 1 Aug 2003 21:16:14 +0000 (21:16 +0000)]
Check in the implementation of the FileUtilities!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7487 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTablegen should only replace the output if it changes
Chris Lattner [Fri, 1 Aug 2003 20:35:01 +0000 (20:35 +0000)]
Tablegen should only replace the output if it changes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7486 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove makefile complexity by always running tablegen with its final output
Chris Lattner [Fri, 1 Aug 2003 20:34:56 +0000 (20:34 +0000)]
Remove makefile complexity by always running tablegen with its final output
directory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7485 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse the new FileUtilities library to do diff'ing of files
Chris Lattner [Fri, 1 Aug 2003 20:29:45 +0000 (20:29 +0000)]
Use the new FileUtilities library to do diff'ing of files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7484 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse the C++, more portable, deleter
Chris Lattner [Fri, 1 Aug 2003 20:29:18 +0000 (20:29 +0000)]
Use the C++, more portable, deleter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7483 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew file
Chris Lattner [Fri, 1 Aug 2003 20:28:55 +0000 (20:28 +0000)]
New file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7482 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake sure to delete the output file if there is an error
Chris Lattner [Fri, 1 Aug 2003 19:21:43 +0000 (19:21 +0000)]
Make sure to delete the output file if there is an error

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7481 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMove #include from a header to here
Chris Lattner [Fri, 1 Aug 2003 19:16:29 +0000 (19:16 +0000)]
Move #include from a header to here

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7480 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThis file doesn't need this include
Chris Lattner [Fri, 1 Aug 2003 19:16:18 +0000 (19:16 +0000)]
This file doesn't need this include

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7479 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDon't emit modules with lots of cruft hanging off of them.
Chris Lattner [Fri, 1 Aug 2003 16:14:33 +0000 (16:14 +0000)]
Don't emit modules with lots of cruft hanging off of them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7478 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoParameterize the performFinalCleanups a bit
Chris Lattner [Fri, 1 Aug 2003 16:13:49 +0000 (16:13 +0000)]
Parameterize the performFinalCleanups a bit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7477 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd all arithmetic operators to ConstantExprToString().
Vikram S. Adve [Fri, 1 Aug 2003 15:55:53 +0000 (15:55 +0000)]
Add all arithmetic operators to ConstantExprToString().
Note that some generated operators (like &, | or ^) may
not be supported by the assembler -- but if they've got
this far, it's better to generate them and let the assembler decide.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7476 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago*Both* operands of divide need sign-extension before divide (if smaller
Vikram S. Adve [Fri, 1 Aug 2003 15:54:38 +0000 (15:54 +0000)]
*Both* operands of divide need sign-extension before divide (if smaller
than machine register size), not just the second operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7475 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPut back the separate pass to decompose multi-dimensional references
Vikram S. Adve [Fri, 1 Aug 2003 15:53:24 +0000 (15:53 +0000)]
Put back the separate pass to decompose multi-dimensional references
since it is *necessary* for correct code generation.  Only optional
transformations belong in the PreOpts pass (which needs to be renamed
from PreSelection to PreOpts).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7474 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoadd support for emitting register classes
Chris Lattner [Fri, 1 Aug 2003 06:27:59 +0000 (06:27 +0000)]
add support for emitting register classes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7473 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd new getValueAsListInit and getValueAsInt methods
Chris Lattner [Fri, 1 Aug 2003 06:15:10 +0000 (06:15 +0000)]
Add new getValueAsListInit and getValueAsInt methods

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7472 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd the ability to emit register file enums
Chris Lattner [Fri, 1 Aug 2003 05:59:20 +0000 (05:59 +0000)]
Add the ability to emit register file enums

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7471 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix the way field bit references are resolved, also allow resolution of field referen...
Chris Lattner [Fri, 1 Aug 2003 05:58:58 +0000 (05:58 +0000)]
Fix the way field bit references are resolved, also allow resolution of field references overall!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7470 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoencode size information into each ValueType
Chris Lattner [Fri, 1 Aug 2003 05:18:03 +0000 (05:18 +0000)]
encode size information into each ValueType
Add new RegisterInfo class

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7469 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDead code elimination
Chris Lattner [Fri, 1 Aug 2003 04:47:20 +0000 (04:47 +0000)]
Dead code elimination

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7468 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd new getValueAsBitsInit 'high-level' method
Chris Lattner [Fri, 1 Aug 2003 04:46:24 +0000 (04:46 +0000)]
Add new getValueAsBitsInit 'high-level' method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7467 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd file comment
Chris Lattner [Fri, 1 Aug 2003 04:39:05 +0000 (04:39 +0000)]
Add file comment
Add register info emitter
Simplify code by using "high-level" methods.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7466 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInitial checkin of register info emitter
Chris Lattner [Fri, 1 Aug 2003 04:38:38 +0000 (04:38 +0000)]
Initial checkin of register info emitter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7465 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoSimplify code to match new interfaces
Chris Lattner [Fri, 1 Aug 2003 04:38:18 +0000 (04:38 +0000)]
Simplify code to match new interfaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7464 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoSwitch over to an exception handling model for "high-level" requests.
Chris Lattner [Fri, 1 Aug 2003 04:37:57 +0000 (04:37 +0000)]
Switch over to an exception handling model for "high-level" requests.
Add new getValueAsString method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7463 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMinor cleanups
Chris Lattner [Fri, 1 Aug 2003 04:15:25 +0000 (04:15 +0000)]
Minor cleanups

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7462 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFactor code out into a new getAllDerivedDefinitions method, which is generally useful
Chris Lattner [Fri, 1 Aug 2003 04:09:58 +0000 (04:09 +0000)]
Factor code out into a new getAllDerivedDefinitions method, which is generally useful

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7461 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThis method is long dead
Chris Lattner [Fri, 1 Aug 2003 03:48:42 +0000 (03:48 +0000)]
This method is long dead

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7460 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemoved the -only-static option as it is no longer required (and didn't work
John Criswell [Thu, 31 Jul 2003 20:59:32 +0000 (20:59 +0000)]
Removed the -only-static option as it is no longer required (and didn't work
with the newer version of libtool anyway).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7459 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoModified the use of libtool so that we don't compile every file twice.
John Criswell [Thu, 31 Jul 2003 20:58:51 +0000 (20:58 +0000)]
Modified the use of libtool so that we don't compile every file twice.
This can be done using the disable-shared tag that comes with libtool.
This change also required changing how .o libraries are linked.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7458 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix the JIT in the Nightly tester. This was not a fun bug to track down.
Chris Lattner [Thu, 31 Jul 2003 19:38:34 +0000 (19:38 +0000)]
Fix the JIT in the Nightly tester.  This was not a fun bug to track down.
See the comments in the patch for details.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7457 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTrivial cleanups: no need to include header twice. Global variable is local to file
Chris Lattner [Thu, 31 Jul 2003 19:31:21 +0000 (19:31 +0000)]
Trivial cleanups: no need to include header twice.  Global variable is local to file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7456 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove more obsolete comments
Chris Lattner [Thu, 31 Jul 2003 17:56:05 +0000 (17:56 +0000)]
Remove more obsolete comments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7455 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChanged pointer to the JIT code to its current location, under LLI.
Misha Brukman [Thu, 31 Jul 2003 17:50:35 +0000 (17:50 +0000)]
Changed pointer to the JIT code to its current location, under LLI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7454 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUnbreak the CBE output
Chris Lattner [Thu, 31 Jul 2003 17:47:24 +0000 (17:47 +0000)]
Unbreak the CBE output

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7453 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoI think local symbols in X86 GAS have to start with .L, not just
Brian Gaeke [Thu, 31 Jul 2003 17:38:52 +0000 (17:38 +0000)]
I think local symbols in X86 GAS have to start with .L, not just
.; so I have changed the basic block markers to start with .L.  I also
broke up a >80char line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7452 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChanged the default location of OBJ_ROOT to follow these rules:
John Criswell [Thu, 31 Jul 2003 16:45:37 +0000 (16:45 +0000)]
Changed the default location of OBJ_ROOT to follow these rules:
1. If USER is defined and localhome/$USER is a directory, set OBJ_ROOT
   to /localhome/$USER
2. Otherwise, set OBJ_ROOT to .
This should hopefully fix the nightly tester.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7451 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoForget about KEEP_SYMBOLS, make sure to build into the temp directory, not into localhome
Chris Lattner [Thu, 31 Jul 2003 16:05:11 +0000 (16:05 +0000)]
Forget about KEEP_SYMBOLS, make sure to build into the temp directory, not into localhome

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7450 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoModified the code so that it generates (0) for setjmp() and abort() for
John Criswell [Thu, 31 Jul 2003 15:11:08 +0000 (15:11 +0000)]
Modified the code so that it generates (0) for setjmp() and abort() for
longjmp() (and does not include setjmp.h).
This is to fix some problems on Sparc while non-local jumps are still
unimplemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7449 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRenamed trapping instruction function to be more consistent with other functions...
Tanya Lattner [Thu, 31 Jul 2003 05:08:02 +0000 (05:08 +0000)]
Renamed trapping instruction function to be more consistent with other functions in the file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7448 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago*** empty log message ***
Tanya Lattner [Thu, 31 Jul 2003 05:06:09 +0000 (05:06 +0000)]
*** empty log message ***

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7447 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMore minor cleanups of the interface
Chris Lattner [Thu, 31 Jul 2003 04:43:49 +0000 (04:43 +0000)]
More minor cleanups of the interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7446 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRename createEmitter to run because eventually all tablegen backends will
Chris Lattner [Thu, 31 Jul 2003 04:38:26 +0000 (04:38 +0000)]
Rename createEmitter to run because eventually all tablegen backends will
be subclasses of a common interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7445 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd file comment
Chris Lattner [Thu, 31 Jul 2003 04:37:57 +0000 (04:37 +0000)]
Add file comment

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7444 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTighten up interface
Chris Lattner [Thu, 31 Jul 2003 04:32:37 +0000 (04:32 +0000)]
Tighten up interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7443 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdded function to determine if an Instruction may trap.
Tanya Lattner [Thu, 31 Jul 2003 04:05:50 +0000 (04:05 +0000)]
Added function to determine if an Instruction may trap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7442 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd comments
Chris Lattner [Wed, 30 Jul 2003 22:16:41 +0000 (22:16 +0000)]
Add comments
Make the register classes optionally take code fragments for allocation_order_*

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7441 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for code fragments
Chris Lattner [Wed, 30 Jul 2003 22:15:58 +0000 (22:15 +0000)]
Add support for code fragments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7440 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInitial support for the 'code' type.
Chris Lattner [Wed, 30 Jul 2003 21:47:42 +0000 (21:47 +0000)]
Initial support for the 'code' type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7439 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoIgnore intrinsic functions -- don't mangle their names or rewrite calls to them.
Misha Brukman [Wed, 30 Jul 2003 21:45:20 +0000 (21:45 +0000)]
Ignore intrinsic functions -- don't mangle their names or rewrite calls to them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7438 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoWe no longer need to preprocess SparcV9.td before sending it through tablegen
Chris Lattner [Wed, 30 Jul 2003 21:00:37 +0000 (21:00 +0000)]
We no longer need to preprocess SparcV9.td before sending it through tablegen

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7437 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMove err() to the lexer, implement file inclusion capabilities directly in tblgen
Chris Lattner [Wed, 30 Jul 2003 20:56:47 +0000 (20:56 +0000)]
Move err() to the lexer, implement file inclusion capabilities directly in tblgen

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7436 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd test of file inclusion capability for bugpoint
Chris Lattner [Wed, 30 Jul 2003 20:55:37 +0000 (20:55 +0000)]
Add test of file inclusion capability for bugpoint

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7435 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoCodeGeneratorBug.cpp:
Misha Brukman [Wed, 30 Jul 2003 20:15:56 +0000 (20:15 +0000)]
CodeGeneratorBug.cpp:
* Temporarily externing InputArgv to print it out for the benefit of LLI command
  needed to reproduce the result.
* Print out the list of functions currently being tested
* ListReducer now returns a bool if there was a failure, so test for it

ListReducer.h:
* Handle the case where there is no problem by returning true if failure is
  found. Also correctly handles the case when there is only 1 pass/function.

Miscompilation.cpp:
* ListReducer now returns a bool if there was a failure, so test for it

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7434 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Moved InputArgv out of anonymous scope to be extern'd in another file.
Misha Brukman [Wed, 30 Jul 2003 20:15:44 +0000 (20:15 +0000)]
* Moved InputArgv out of anonymous scope to be extern'd in another file.
* Added DEBUG() statements to print out parameters passed to executing programs
* Actually ADD parameters to a program running via the JIT (using vector<char*>)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7433 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMinor reorganization, move ParseFile to the lexer
Chris Lattner [Wed, 30 Jul 2003 19:55:10 +0000 (19:55 +0000)]
Minor reorganization, move ParseFile to the lexer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7432 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake tablegen take an input filename to parse if one is specified, otherwise
Chris Lattner [Wed, 30 Jul 2003 19:48:02 +0000 (19:48 +0000)]
Make tablegen take an input filename to parse if one is specified, otherwise
use stdin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7431 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInitial tests for tblgen
Chris Lattner [Wed, 30 Jul 2003 19:40:00 +0000 (19:40 +0000)]
Initial tests for tblgen

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7430 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDirectly support C style comments in tblgen, but allow them to actually nest
Chris Lattner [Wed, 30 Jul 2003 19:39:36 +0000 (19:39 +0000)]
Directly support C style comments in tblgen, but allow them to actually nest

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7429 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix a bug that brian reported
Chris Lattner [Wed, 30 Jul 2003 19:04:37 +0000 (19:04 +0000)]
Fix a bug that brian reported

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7428 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMoved definition of InputArgv into ExecutionDriver.cpp -- it is only used there.
Misha Brukman [Wed, 30 Jul 2003 17:59:23 +0000 (17:59 +0000)]
Moved definition of InputArgv into ExecutionDriver.cpp -- it is only used there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7427 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse a vector<char*> instead of char*[] so that we can add arbitrary number of
Misha Brukman [Wed, 30 Jul 2003 17:44:15 +0000 (17:44 +0000)]
Use a vector<char*> instead of char*[] so that we can add arbitrary number of
parameters, such as command-line arguments that the executing program gets via
bugpoint.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7423 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd variable to capture arguments that should be passed to the user program
Chris Lattner [Wed, 30 Jul 2003 17:36:07 +0000 (17:36 +0000)]
Add variable to capture arguments that should be passed to the user program
This is unused so far.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7422 91177308-0d34-0410-b5e6-96231b3b80d8