oota-llvm.git
19 years agoAdded various LLVM_* strings that are configured to provide the user's
Reid Spencer [Fri, 20 Aug 2004 09:05:15 +0000 (09:05 +0000)]
Added various LLVM_* strings that are configured to provide the user's
choice of installation directories. Programs can then automagically know
where the installation files are located.

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

19 years agoUpdate after change to autoconf/configure.ac
Reid Spencer [Fri, 20 Aug 2004 09:03:57 +0000 (09:03 +0000)]
Update after change to autoconf/configure.ac

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

19 years agoChange version 1.3 -> 1.4
Reid Spencer [Fri, 20 Aug 2004 09:03:12 +0000 (09:03 +0000)]
Change version 1.3 -> 1.4
Add basic installation directories as AC_DEFINES and AC_SUBST so they can
be used by llvm programs with a simple #include <Config/config.h>

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

19 years agoNew testcase that the vector support does not work with yet.
Chris Lattner [Fri, 20 Aug 2004 08:34:27 +0000 (08:34 +0000)]
New testcase that the vector support does not work with yet.

This is also designed to make lowering a bitch :)

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

19 years agoAdded various tests in support of Packed Types.
Reid Spencer [Fri, 20 Aug 2004 06:06:43 +0000 (06:06 +0000)]
Added various tests in support of Packed Types.
Tests kindly provided by Brad Jones.

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

19 years agoAdded a test case for packed types. Test case kindly provided by Brad Jones
Reid Spencer [Fri, 20 Aug 2004 06:02:24 +0000 (06:02 +0000)]
Added a test case for packed types. Test case kindly provided by Brad Jones

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

19 years agoPacked types, brought to you by Brad Jones
Brian Gaeke [Fri, 20 Aug 2004 06:00:58 +0000 (06:00 +0000)]
Packed types, brought to you by Brad Jones

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

19 years agoAvoid building samples. Require explicit list of directory names to build.
Reid Spencer [Fri, 20 Aug 2004 01:49:59 +0000 (01:49 +0000)]
Avoid building samples. Require explicit list of directory names to build.

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

19 years agoMake people explicitly add dirs to this. Remove ModuleMaker as it currently
Chris Lattner [Fri, 20 Aug 2004 01:11:16 +0000 (01:11 +0000)]
Make people explicitly add dirs to this.  Remove ModuleMaker as it currently
does not build (it must be configured before it will work)

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

19 years agoOnly build project dirs with a Makefile in them. This should fix the
Chris Lattner [Fri, 20 Aug 2004 01:07:54 +0000 (01:07 +0000)]
Only build project dirs with a Makefile in them.  This should fix the
problem where Depend or Debug directories prevent CVS from nuking an obsolete
project dir

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

19 years agoBug fixed
Chris Lattner [Fri, 20 Aug 2004 00:36:23 +0000 (00:36 +0000)]
Bug fixed

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

19 years agoIf we are linking two global variables and they have the same size, do not
Chris Lattner [Fri, 20 Aug 2004 00:30:39 +0000 (00:30 +0000)]
If we are linking two global variables and they have the same size, do not
spew warnings, even if the types don't match.

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

19 years agoFix opcodes being printed in caps (the more general fix may be `AsmWriter')
Misha Brukman [Thu, 19 Aug 2004 21:56:12 +0000 (21:56 +0000)]
Fix opcodes being printed in caps (the more general fix may be `AsmWriter')

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

19 years agoActually let it compile after file name changes.
Reid Spencer [Thu, 19 Aug 2004 21:52:49 +0000 (21:52 +0000)]
Actually let it compile after file name changes.

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

19 years agoStack space for argument passing is 32 regardless of 32- vs. 64-bit arch.
Misha Brukman [Thu, 19 Aug 2004 21:51:19 +0000 (21:51 +0000)]
Stack space for argument passing is 32 regardless of 32- vs. 64-bit arch.
Thanks to Nate Begeman for pointing this out.

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

19 years agoLR needs to be saved at 16-byte offset on a 64-bit arch
Misha Brukman [Thu, 19 Aug 2004 21:36:14 +0000 (21:36 +0000)]
LR needs to be saved at 16-byte offset on a 64-bit arch

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

19 years agoOn 64-bit PowerPC, pointers are 8 bytes, so parameter area offset is 48, not 24
Misha Brukman [Thu, 19 Aug 2004 21:34:05 +0000 (21:34 +0000)]
On 64-bit PowerPC, pointers are 8 bytes, so parameter area offset is 48, not 24

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

19 years agoMoved ConfigData -> Configuration
Reid Spencer [Thu, 19 Aug 2004 21:17:53 +0000 (21:17 +0000)]
Moved ConfigData -> Configuration

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

19 years agoThis PHI has 4 additional operands, not 2.
Misha Brukman [Thu, 19 Aug 2004 21:00:12 +0000 (21:00 +0000)]
This PHI has 4 additional operands, not 2.

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

19 years agoMoved these files to "SmallExamples" directory.
Reid Spencer [Thu, 19 Aug 2004 20:16:42 +0000 (20:16 +0000)]
Moved these files to "SmallExamples" directory.

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

19 years agoAdd the fibonacci example provided by Valery Khamenya.
Reid Spencer [Thu, 19 Aug 2004 20:10:04 +0000 (20:10 +0000)]
Add the fibonacci example provided by Valery Khamenya.

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

19 years agoMake the SmallExamples programs compile in their new home.
Reid Spencer [Thu, 19 Aug 2004 20:09:14 +0000 (20:09 +0000)]
Make the SmallExamples programs compile in their new home.

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

19 years agoUse the appropriate 64-bit register description file.
Misha Brukman [Thu, 19 Aug 2004 19:36:57 +0000 (19:36 +0000)]
Use the appropriate 64-bit register description file.

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

19 years agoFixed the test to actually run correctly.
Reid Spencer [Thu, 19 Aug 2004 19:23:28 +0000 (19:23 +0000)]
Fixed the test to actually run correctly.

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

19 years agoAdd a test case test test 1.3 alignment removal and to test a regression
Reid Spencer [Thu, 19 Aug 2004 19:11:57 +0000 (19:11 +0000)]
Add a test case test test 1.3 alignment removal and to test a regression
on disassembly speed (where SlotMachine was being recomputed on each
getSlot() call).

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

19 years agoFix more remaining 32-bit vestiges of PowerPC
Misha Brukman [Thu, 19 Aug 2004 18:49:58 +0000 (18:49 +0000)]
Fix more remaining 32-bit vestiges of PowerPC

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

19 years agoFix another vestige of the 32-bit PowerPC backend.
Misha Brukman [Thu, 19 Aug 2004 16:50:30 +0000 (16:50 +0000)]
Fix another vestige of the 32-bit PowerPC backend.

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

19 years agoCorrect character prepended to global symbols ('.'), use Mangler consistently
Misha Brukman [Thu, 19 Aug 2004 16:33:56 +0000 (16:33 +0000)]
Correct character prepended to global symbols ('.'), use Mangler consistently

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

19 years ago* Eliminate global base register, r2 is used for that on AIX/PowerPC
Misha Brukman [Thu, 19 Aug 2004 16:29:25 +0000 (16:29 +0000)]
* Eliminate global base register, r2 is used for that on AIX/PowerPC
* Fix bug from 32-bit PowerPC days of 2-register long split

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

19 years agoWrap long lines.
Misha Brukman [Thu, 19 Aug 2004 16:28:30 +0000 (16:28 +0000)]
Wrap long lines.

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

19 years agoConvert casts that will have no effect into move instructions.
Nate Begeman [Thu, 19 Aug 2004 08:07:50 +0000 (08:07 +0000)]
Convert casts that will have no effect into move instructions.

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

19 years agoClean up floating point instruction selection.
Nate Begeman [Thu, 19 Aug 2004 05:20:54 +0000 (05:20 +0000)]
Clean up floating point instruction selection.
Change int->float cast code to put conversion constants in constant pool.
Shorten code sequence for constant pool fp loads.
Remove LOADLoDirect/LOADLoIndirect psuedo instructions and tweak asmwriter

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

19 years agoImplement many new features for llvmc. This is the first version that will
Reid Spencer [Thu, 19 Aug 2004 04:49:47 +0000 (04:49 +0000)]
Implement many new features for llvmc. This is the first version that will
actually execute actions and it is been shown to optimize a Stacker program

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

19 years agoInstead of int64_t, overload itostr with `long long' parameter.
Misha Brukman [Wed, 18 Aug 2004 22:56:12 +0000 (22:56 +0000)]
Instead of int64_t, overload itostr with `long long' parameter.
This appeases both SparcV9 and 64-bit PowerPC.

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

19 years agoCorrect a link, add a TOC entry.
Reid Spencer [Wed, 18 Aug 2004 20:17:05 +0000 (20:17 +0000)]
Correct a link, add a TOC entry.

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

19 years agoProvided opcode definitions.
Reid Spencer [Wed, 18 Aug 2004 20:06:19 +0000 (20:06 +0000)]
Provided opcode definitions.
Clarified documentation of symbol tables.
Clarified definition of slot numbers.
Added the http-equiv meta tag for HTML 4.01 strict compliance.
Adjusted line lengths.
Differentiated between "type slot" and "value slot" everywhere.
ispelled it.

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

19 years agoM_DUMMY_PHI_FLAG is no longer used to distinguish V9::PHI. Get rid of it and
Brian Gaeke [Wed, 18 Aug 2004 20:04:28 +0000 (20:04 +0000)]
M_DUMMY_PHI_FLAG is no longer used to distinguish V9::PHI. Get rid of it and
its TargetInstrInfo accessor.

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

19 years agoInstead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
Brian Gaeke [Wed, 18 Aug 2004 20:04:24 +0000 (20:04 +0000)]
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.

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

19 years agoInstead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
Brian Gaeke [Wed, 18 Aug 2004 20:04:21 +0000 (20:04 +0000)]
Instead of using isDummyPhiInstr, we just compare the opcode with V9::PHI.
Also, squash a use of TargetInstrInfo::isNop().

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

19 years agoConvert to the new MachineFunctionInfo interface
Chris Lattner [Wed, 18 Aug 2004 18:13:37 +0000 (18:13 +0000)]
Convert to the new MachineFunctionInfo interface

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

19 years agoAll targets are now allowed to have their own MachineFunctionInfo objects,
Chris Lattner [Wed, 18 Aug 2004 18:13:16 +0000 (18:13 +0000)]
All targets are now allowed to have their own MachineFunctionInfo objects,
also, make getInfo do some checking and cast to the appropriate concrete type.

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

19 years agoM_PSEUDO_FLAG is no longer used. Get rid of it and its accessor.
Brian Gaeke [Wed, 18 Aug 2004 17:44:17 +0000 (17:44 +0000)]
M_PSEUDO_FLAG is no longer used. Get rid of it and its accessor.

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

19 years agoThe SparcV9 target no longer uses any pseudoinstructions (SETSW, SETUW,
Brian Gaeke [Wed, 18 Aug 2004 17:44:16 +0000 (17:44 +0000)]
The SparcV9 target no longer uses any pseudoinstructions (SETSW, SETUW,
SETX) or M_PSEUDO_FLAG.

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

19 years agoThe Create*Const methods don't need to pass around a TargetMachine reference.
Brian Gaeke [Wed, 18 Aug 2004 17:44:15 +0000 (17:44 +0000)]
The Create*Const methods don't need to pass around a TargetMachine reference.
Other minor cleanups.

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

19 years agoDoxygenify some comments.
Brian Gaeke [Wed, 18 Aug 2004 17:44:14 +0000 (17:44 +0000)]
Doxygenify some comments.
Clean up cpReg2MemMI and cpMem2RegMI, and doxygenify comments.
Get rid of their uses of SETSW, which is a pseudoinstruction. We can't
JIT-compile pseudoinstructions at the moment. This was blowing up 252.eon/jit,
which has some HUGE stack frames.
Reduce the uses of constantFitsInImmedField().
Consolidate some assertions.

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

19 years agoSwitch V9 over to using the AsmPrinter base class to do its constant printing
Chris Lattner [Wed, 18 Aug 2004 05:29:08 +0000 (05:29 +0000)]
Switch V9 over to using the AsmPrinter base class to do its constant printing
Massive thanks to the brg miester for doing the testing. :)

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

19 years agoRename var
Chris Lattner [Wed, 18 Aug 2004 02:22:55 +0000 (02:22 +0000)]
Rename var

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

19 years agoAlkis pointed out that this is not a character (we actually support strings)
Chris Lattner [Wed, 18 Aug 2004 02:22:34 +0000 (02:22 +0000)]
Alkis pointed out that this is not a character (we actually support strings)
and as such, we should use self revealing names.  Hey, makes sense to me!

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

19 years agonew method
Chris Lattner [Tue, 17 Aug 2004 21:38:51 +0000 (21:38 +0000)]
new method

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

19 years agoAdd support for targets without a .zero directive
Chris Lattner [Tue, 17 Aug 2004 21:38:40 +0000 (21:38 +0000)]
Add support for targets without a .zero directive

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

19 years agoThis file is no longer used.
Misha Brukman [Tue, 17 Aug 2004 20:23:33 +0000 (20:23 +0000)]
This file is no longer used.

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

19 years agoStart using alignment output routines from AsmPrinter.
Chris Lattner [Tue, 17 Aug 2004 19:26:03 +0000 (19:26 +0000)]
Start using alignment output routines from AsmPrinter.
Changes to make this more similar to the X86 asmprinter

Fix overalignment of globals.

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

19 years agoStart using alignment output routines from AsmPrinter.
Chris Lattner [Tue, 17 Aug 2004 19:25:42 +0000 (19:25 +0000)]
Start using alignment output routines from AsmPrinter.
Changes to make this more similar to the ppc asmprinter

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

19 years agoAdd an overload
Chris Lattner [Tue, 17 Aug 2004 19:17:10 +0000 (19:17 +0000)]
Add an overload

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

19 years agoAdd support for alignment
Chris Lattner [Tue, 17 Aug 2004 19:14:29 +0000 (19:14 +0000)]
Add support for alignment

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

19 years agoAdd a new helper method to get log2(type alignment)
Chris Lattner [Tue, 17 Aug 2004 19:13:00 +0000 (19:13 +0000)]
Add a new helper method to get log2(type alignment)

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

19 years agoAdd punctuation, add a new method
Chris Lattner [Tue, 17 Aug 2004 19:12:44 +0000 (19:12 +0000)]
Add punctuation, add a new method

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

19 years agoAdd itostr(long) for our furry 64-bit friends.
Misha Brukman [Tue, 17 Aug 2004 18:08:52 +0000 (18:08 +0000)]
Add itostr(long) for our furry 64-bit friends.

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

19 years agoUltra-doxygenify some function header comments.
Misha Brukman [Tue, 17 Aug 2004 17:52:36 +0000 (17:52 +0000)]
Ultra-doxygenify some function header comments.

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

19 years agoCheck constant expression validity more strictly
Chris Lattner [Tue, 17 Aug 2004 17:28:46 +0000 (17:28 +0000)]
Check constant expression validity more strictly

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

19 years agoWork around PR424 for old c/c++ frontends.
Chris Lattner [Tue, 17 Aug 2004 17:26:41 +0000 (17:26 +0000)]
Work around PR424 for old c/c++ frontends.

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

19 years agoPrint comments with ;
Chris Lattner [Tue, 17 Aug 2004 16:27:26 +0000 (16:27 +0000)]
Print comments with ;

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

19 years agoUse a designated comment character when printing comments.
Chris Lattner [Tue, 17 Aug 2004 16:27:05 +0000 (16:27 +0000)]
Use a designated comment character when printing comments.

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

19 years agoAllow targets to specify a comment character
Chris Lattner [Tue, 17 Aug 2004 16:26:36 +0000 (16:26 +0000)]
Allow targets to specify a comment character

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

19 years agoAdded a *very* initial cut at a lexicon for LLVM. I don't plan to write
Reid Spencer [Tue, 17 Aug 2004 09:38:50 +0000 (09:38 +0000)]
Added a *very* initial cut at a lexicon for LLVM. I don't plan to write
this whole thing. Just use the pattern in the file to add entries as you
think of them. This will be really helpful for newbies to advanced compiler
optimization techniques such as myself.

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

19 years agoDocumented (Java properties file like) syntax of config file format
Reid Spencer [Tue, 17 Aug 2004 09:18:37 +0000 (09:18 +0000)]
Documented (Java properties file like) syntax of config file format
Added definitions for some of the configuration items.
Made the document HTML 4.01 Strict compliant.
Ran ispell on it.

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

19 years agoAdd a reference to the ComilerDriver documentation.
Reid Spencer [Tue, 17 Aug 2004 08:01:57 +0000 (08:01 +0000)]
Add a reference to the ComilerDriver documentation.

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

19 years agoBytecode File Format Changes:
Reid Spencer [Tue, 17 Aug 2004 07:45:14 +0000 (07:45 +0000)]
Bytecode File Format Changes:
- File format version number bumped to 4
- Writer will now align nothing
- Reader now only expects alignment for version 3 or earlier

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

19 years agoDocumented the removal of alignment in version 4 bytecode files (version 3
Reid Spencer [Tue, 17 Aug 2004 07:43:43 +0000 (07:43 +0000)]
Documented the removal of alignment in version 4 bytecode files (version 3
was released with LLVM 1.3). Alignment of fields can add severe size to
certain kinds of functions (those with lots of long format instructions) so
we decided to do away with alignment altogether in this bc version.

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

19 years agoRe-fix hiding the Frame Pointer from the register allocator in functions
Nate Begeman [Tue, 17 Aug 2004 07:17:44 +0000 (07:17 +0000)]
Re-fix hiding the Frame Pointer from the register allocator in functions
that have a frame pointer.  This change fixes Burg.  In addition, make
the necessary changes to floating point code gen and constant loading after
Chris Lattner's fixes to the asm writer.  These changes fix MallocBench/gs

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

19 years agoUse the AsmPrinter emitGlobalConstant.
Chris Lattner [Tue, 17 Aug 2004 06:48:55 +0000 (06:48 +0000)]
Use the AsmPrinter emitGlobalConstant.

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

19 years agoAdd missing \t
Chris Lattner [Tue, 17 Aug 2004 06:48:34 +0000 (06:48 +0000)]
Add missing \t

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

19 years agoAdd support for targets that have .quad, drop extra tab inserted
Chris Lattner [Tue, 17 Aug 2004 06:48:16 +0000 (06:48 +0000)]
Add support for targets that have .quad, drop extra tab inserted

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

19 years agoUse the emitGlobalConstant defined in AsmPrinter
Chris Lattner [Tue, 17 Aug 2004 06:37:12 +0000 (06:37 +0000)]
Use the emitGlobalConstant defined in AsmPrinter

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

19 years agoImplement emitGlobalConstant
Chris Lattner [Tue, 17 Aug 2004 06:36:49 +0000 (06:36 +0000)]
Implement emitGlobalConstant

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

19 years agoAdd some hooks
Chris Lattner [Tue, 17 Aug 2004 06:36:27 +0000 (06:36 +0000)]
Add some hooks

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

19 years agoNew, more general, interface.
Chris Lattner [Tue, 17 Aug 2004 06:07:43 +0000 (06:07 +0000)]
New, more general, interface.

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

19 years agoAllow an arbitrary prefix
Chris Lattner [Tue, 17 Aug 2004 06:06:54 +0000 (06:06 +0000)]
Allow an arbitrary prefix

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

19 years agoAllow an arbitrary prefix.
Chris Lattner [Tue, 17 Aug 2004 06:06:37 +0000 (06:06 +0000)]
Allow an arbitrary prefix.

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

19 years agoWe now allow targets to use any prefix they want for global symbols. Lets
Chris Lattner [Tue, 17 Aug 2004 06:06:19 +0000 (06:06 +0000)]
We now allow targets to use any prefix they want for global symbols.  Lets
hear it for ".".

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

19 years agoRewrite targets/rules to generate files for just PowerPC or PPC{32,64}
Misha Brukman [Tue, 17 Aug 2004 05:11:54 +0000 (05:11 +0000)]
Rewrite targets/rules to generate files for just PowerPC or PPC{32,64}

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

19 years agoRegister classes are target-dependent
Misha Brukman [Tue, 17 Aug 2004 05:10:31 +0000 (05:10 +0000)]
Register classes are target-dependent

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

19 years ago#include <map> is not necessary here
Misha Brukman [Tue, 17 Aug 2004 05:09:39 +0000 (05:09 +0000)]
#include <map> is not necessary here

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

19 years ago`PowerPC' is no longer a real target
Misha Brukman [Tue, 17 Aug 2004 05:09:10 +0000 (05:09 +0000)]
`PowerPC' is no longer a real target

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

19 years agoMove variables and methods which need PPC{32,64}* distinction to subclasses
Misha Brukman [Tue, 17 Aug 2004 05:08:44 +0000 (05:08 +0000)]
Move variables and methods which need PPC{32,64}* distinction to subclasses

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

19 years agoNo need for an `is64bit' flag
Misha Brukman [Tue, 17 Aug 2004 05:06:47 +0000 (05:06 +0000)]
No need for an `is64bit' flag

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

19 years agoPowerPCInstrInfo and PowerPCRegisterInfo have gone away; they are replaced
Misha Brukman [Tue, 17 Aug 2004 05:05:00 +0000 (05:05 +0000)]
PowerPCInstrInfo and PowerPCRegisterInfo have gone away; they are replaced
by 32- and 64-bit customized files, named appropriately.

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

19 years agoConsistently name passed with 32 or 64 in their name
Misha Brukman [Tue, 17 Aug 2004 05:02:58 +0000 (05:02 +0000)]
Consistently name passed with 32 or 64 in their name

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

19 years agoPowerPCRegisterInfo no longer takes a bool to differentiate 32 vs 64 bits
Misha Brukman [Tue, 17 Aug 2004 05:02:18 +0000 (05:02 +0000)]
PowerPCRegisterInfo no longer takes a bool to differentiate 32 vs 64 bits

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

19 years agoThe PowerPCInstrInfo class has gone away.
Misha Brukman [Tue, 17 Aug 2004 05:00:46 +0000 (05:00 +0000)]
The PowerPCInstrInfo class has gone away.

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

19 years agoPowerPCInstrInfo has gone away, PPC32 and PPC64 share opcodes.
Misha Brukman [Tue, 17 Aug 2004 04:58:50 +0000 (04:58 +0000)]
PowerPCInstrInfo has gone away, PPC32 and PPC64 share opcodes.

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

19 years agoPowerPC 32-/64-bit split: Part II, 64-bit customizations on PowerPC
Misha Brukman [Tue, 17 Aug 2004 04:57:37 +0000 (04:57 +0000)]
PowerPC 32-/64-bit split: Part II, 64-bit customizations on PowerPC

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

19 years agoPowerPC 32-/64-bit split: Part I, PPC32* bit files, adapted from former PowerPC*
Misha Brukman [Tue, 17 Aug 2004 04:55:41 +0000 (04:55 +0000)]
PowerPC 32-/64-bit split: Part I, PPC32* bit files, adapted from former PowerPC*

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

19 years agoDo not #include files into the llvm namespace
Chris Lattner [Tue, 17 Aug 2004 03:08:28 +0000 (03:08 +0000)]
Do not #include files into the llvm namespace

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

19 years agoCorrect the comments in the symbol table writer to reflect reality.
Reid Spencer [Tue, 17 Aug 2004 02:59:02 +0000 (02:59 +0000)]
Correct the comments in the symbol table writer to reflect reality.

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

19 years agoPrint float constants as 4 byte values.
Chris Lattner [Tue, 17 Aug 2004 02:48:44 +0000 (02:48 +0000)]
Print float constants as 4 byte values.
Also, fix endianness problems when cross compiling from little-endian host.

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

19 years agoMake sure to put an _ prefix on all identifiers!
Chris Lattner [Tue, 17 Aug 2004 02:29:00 +0000 (02:29 +0000)]
Make sure to put an _ prefix on all identifiers!

Also, add some (currently disabled) code to print float's as 32-bits.

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

19 years agoSome asmwriters want an _ prefix
Chris Lattner [Tue, 17 Aug 2004 02:28:26 +0000 (02:28 +0000)]
Some asmwriters want an _ prefix

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

19 years agoSome asmweriters want an _ prefix
Chris Lattner [Tue, 17 Aug 2004 02:28:12 +0000 (02:28 +0000)]
Some asmweriters want an _ prefix

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

19 years agoTechnical Corrections (thanks to Robert Mykland):
Reid Spencer [Tue, 17 Aug 2004 00:49:03 +0000 (00:49 +0000)]
Technical Corrections (thanks to Robert Mykland):
- Define the "opcode" data type and reference the Instruction.def file
- Clean up the definition of symtab by indicating that it is composed of
  two llists.
- Fix some broken links.

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