oota-llvm.git
20 years agoPlug a memory leak in the asmparser. It turns out that we were leaking
Chris Lattner [Tue, 26 Oct 2004 18:26:14 +0000 (18:26 +0000)]
Plug a memory leak in the asmparser.  It turns out that we were leaking
the strings for basic block labels in some cases.  This amounted to about
120K of memory for namd, a medium sized program.

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

20 years agoWrap comments at 80 cols
Misha Brukman [Tue, 26 Oct 2004 18:00:03 +0000 (18:00 +0000)]
Wrap comments at 80 cols

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

20 years agoadd support for UndefValue
Chris Lattner [Tue, 26 Oct 2004 16:23:03 +0000 (16:23 +0000)]
add support for UndefValue

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

20 years agoFix header
Chris Lattner [Tue, 26 Oct 2004 16:19:57 +0000 (16:19 +0000)]
Fix header

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

20 years agoUse <tt> around "#include" and "std::endl"
Misha Brukman [Tue, 26 Oct 2004 16:18:43 +0000 (16:18 +0000)]
Use <tt> around "#include" and "std::endl"

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

20 years ago* DataTypesFix.h moved to AIXDataTypesFix.h
Misha Brukman [Tue, 26 Oct 2004 16:15:18 +0000 (16:15 +0000)]
* DataTypesFix.h moved to AIXDataTypesFix.h
* Condition #inclusion of AIXDataTypes.h on the _AIX preprocessor symbol to
  prevent extra I/O on non-AIX systems.  Thus, no #ifdef in AIXDataTypes.h

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

20 years agoUse <tt> around header names
Misha Brukman [Tue, 26 Oct 2004 16:07:46 +0000 (16:07 +0000)]
Use <tt> around header names

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

20 years ago* Thanks to Morten Ofstad for the Visual C++ compatibility fixes
Misha Brukman [Tue, 26 Oct 2004 15:55:12 +0000 (15:55 +0000)]
* Thanks to Morten Ofstad for the Visual C++ compatibility fixes
* Added Paolo's email address

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

20 years ago* Fix spelling and grammar errors
Misha Brukman [Tue, 26 Oct 2004 15:45:13 +0000 (15:45 +0000)]
* Fix spelling and grammar errors
* Close <p> tags properly
* Break up paragraphs with blank lines, clean up text alignment
* Delete unbalanced "

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

20 years agoMove method bodies that depend on <algorithm> from MBB.h to MBB.cpp
Chris Lattner [Tue, 26 Oct 2004 15:43:42 +0000 (15:43 +0000)]
Move method bodies that depend on <algorithm> from MBB.h to MBB.cpp

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

20 years agoRemove the unused MachineBasicBlock2IndexFunctor class.
Chris Lattner [Tue, 26 Oct 2004 15:41:13 +0000 (15:41 +0000)]
Remove the unused MachineBasicBlock2IndexFunctor class.
Move method bodies that depend on <algorithm> out of line to
MachineBasicBlock.cpp.  Patch contributed by Morten Ofstad!

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

20 years agoClean up the MachineBasicBlock.h file, percolating #includes into this file.
Chris Lattner [Tue, 26 Oct 2004 15:35:58 +0000 (15:35 +0000)]
Clean up the MachineBasicBlock.h file, percolating #includes into this file.
Patch contributed by Morten Ofstad

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

20 years ago* Implement the "dist-check" target that verifies the contents of a zipped
Reid Spencer [Tue, 26 Oct 2004 07:09:33 +0000 (07:09 +0000)]
* Implement the "dist-check" target that verifies the contents of a zipped
  tarball.
* Fix bugs in the "dist" target (a precursor to dist-check).
* Correct the implementation of the "install" targets so that they ensure
  the installation directories are created before attmpting to install
  directories in them.
* Reduce the verbosity of the output of the makefile system
* Ensure output includes the configuration whenever libraries or tools are
  built, installed, or uninstalled.

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

20 years agoReduce the number of EXTRA_DIST files since Makefile.rules now handles the
Reid Spencer [Tue, 26 Oct 2004 07:05:09 +0000 (07:05 +0000)]
Reduce the number of EXTRA_DIST files since Makefile.rules now handles the
autoconf directory automagically.

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

20 years agoMake sure the samples and test directories get distributed.
Reid Spencer [Tue, 26 Oct 2004 07:04:18 +0000 (07:04 +0000)]
Make sure the samples and test directories get distributed.

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

20 years agoMake sure the include files get distributed.
Reid Spencer [Tue, 26 Oct 2004 07:03:39 +0000 (07:03 +0000)]
Make sure the include files get distributed.

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

20 years agoAdd the export symbols list files as extra distribution files.
Reid Spencer [Tue, 26 Oct 2004 07:02:58 +0000 (07:02 +0000)]
Add the export symbols list files as extra distribution files.

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

20 years agoRemove include of MRegisterInfo.h, since it is already included by
Nate Begeman [Tue, 26 Oct 2004 06:04:23 +0000 (06:04 +0000)]
Remove include of MRegisterInfo.h, since it is already included by
SkeletonGenRegisterInfo.h.inc

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

20 years agoRemove file that is no longer used, and move include of MRegisterInfo.h
Nate Begeman [Tue, 26 Oct 2004 06:02:38 +0000 (06:02 +0000)]
Remove file that is no longer used, and move include of MRegisterInfo.h
from PowerPCFrameInfo.h to PowerPCAsmPrinter.cpp where it is actually
needed.

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

20 years agoRemove method getRegClass from MRegisterInfo, as it is no longer used.
Nate Begeman [Tue, 26 Oct 2004 06:00:31 +0000 (06:00 +0000)]
Remove method getRegClass from MRegisterInfo, as it is no longer used.

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

20 years agoReally get mkinstalldirs to shut up about what its doing .. who cares?
Reid Spencer [Tue, 26 Oct 2004 05:49:38 +0000 (05:49 +0000)]
Really get mkinstalldirs to shut up about what its doing .. who cares?

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

20 years agoImprove help output from llvm-db 'info' command. Patch contributed by
Chris Lattner [Tue, 26 Oct 2004 05:46:17 +0000 (05:46 +0000)]
Improve help output from llvm-db 'info' command.  Patch contributed by
Michael McCracken!

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

20 years agoEliminate usage of MRegisterInfo::getRegClass(physreg)
Nate Begeman [Tue, 26 Oct 2004 05:40:45 +0000 (05:40 +0000)]
Eliminate usage of MRegisterInfo::getRegClass(physreg)

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

20 years agoFix the interpreter crash that Michael McCracken found
Chris Lattner [Tue, 26 Oct 2004 05:35:14 +0000 (05:35 +0000)]
Fix the interpreter crash that Michael McCracken found

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

20 years agoReduce usage of MRegisterInfo::getRegClass
Chris Lattner [Tue, 26 Oct 2004 05:29:18 +0000 (05:29 +0000)]
Reduce usage of MRegisterInfo::getRegClass

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

20 years agoUpdate to-do list
Nate Begeman [Tue, 26 Oct 2004 04:10:53 +0000 (04:10 +0000)]
Update to-do list

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

20 years agoFix treecc. Also fix a latent bug in emitBinaryConstOperation that would
Nate Begeman [Tue, 26 Oct 2004 03:48:25 +0000 (03:48 +0000)]
Fix treecc.  Also fix a latent bug in emitBinaryConstOperation that would
allow and const, 0 to be incorrectly codegen'd into a rlwinm instruction.

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

20 years agoAdd EXTRA_DIST for additional files to be distributed.
Reid Spencer [Tue, 26 Oct 2004 03:12:11 +0000 (03:12 +0000)]
Add EXTRA_DIST for additional files to be distributed.

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

20 years agoGive a useful hint
Chris Lattner [Tue, 26 Oct 2004 02:58:10 +0000 (02:58 +0000)]
Give a useful hint

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

20 years agoBug fixed
Chris Lattner [Mon, 25 Oct 2004 22:13:02 +0000 (22:13 +0000)]
Bug fixed

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

20 years agoDisable the JIT until it can sorta kinda work.
Chris Lattner [Mon, 25 Oct 2004 20:53:41 +0000 (20:53 +0000)]
Disable the JIT until it can sorta kinda work.

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

20 years agoadd a link to the makefile guide, eliminate redundant link to coding stds
Chris Lattner [Mon, 25 Oct 2004 19:39:46 +0000 (19:39 +0000)]
add a link to the makefile guide, eliminate redundant link to coding stds

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

20 years agoMake a sentence easier to parse
Chris Lattner [Mon, 25 Oct 2004 19:37:46 +0000 (19:37 +0000)]
Make a sentence easier to parse

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

20 years agoFix spellos
Chris Lattner [Mon, 25 Oct 2004 19:28:03 +0000 (19:28 +0000)]
Fix spellos

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

20 years agoRemove template args that are the same as the default
Chris Lattner [Mon, 25 Oct 2004 19:09:41 +0000 (19:09 +0000)]
Remove template args that are the same as the default

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

20 years agoRemove a dead class. Thanks to Morten Ofstad for pointing this out.
Chris Lattner [Mon, 25 Oct 2004 19:07:43 +0000 (19:07 +0000)]
Remove a dead class.  Thanks to Morten Ofstad for pointing this out.

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

20 years agoRemove dead assert
Chris Lattner [Mon, 25 Oct 2004 19:04:01 +0000 (19:04 +0000)]
Remove dead assert

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

20 years agoPatch to support MSVC, contributed by Morten Ofstad
Chris Lattner [Mon, 25 Oct 2004 18:47:10 +0000 (18:47 +0000)]
Patch to support MSVC, contributed by Morten Ofstad

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

20 years agoPatch to support MSVC, contributed by Morten Ofstad
Chris Lattner [Mon, 25 Oct 2004 18:46:05 +0000 (18:46 +0000)]
Patch to support MSVC, contributed by  Morten Ofstad

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

20 years agoFix compatibility with MSVC, patch by Morten Ofstad
Chris Lattner [Mon, 25 Oct 2004 18:45:16 +0000 (18:45 +0000)]
Fix compatibility with MSVC, patch by Morten Ofstad

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

20 years agoDo not use variable sized arrays in C++, they are non-portable. Patch
Chris Lattner [Mon, 25 Oct 2004 18:44:14 +0000 (18:44 +0000)]
Do not use variable sized arrays in C++, they are non-portable.  Patch
contributed by Morten Ofstad

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

20 years agoRemoved dead method, printPHICopiesForSuccessors().
John Criswell [Mon, 25 Oct 2004 18:41:50 +0000 (18:41 +0000)]
Removed dead method, printPHICopiesForSuccessors().

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

20 years agoPatch to support MSVC better, contributed by Morten Ofstad
Chris Lattner [Mon, 25 Oct 2004 18:40:47 +0000 (18:40 +0000)]
Patch to support MSVC better, contributed by Morten Ofstad

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

20 years agoPatch to support MSVC, contributed by Morten Ofstad
Chris Lattner [Mon, 25 Oct 2004 18:40:08 +0000 (18:40 +0000)]
Patch to support MSVC, contributed by Morten Ofstad

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

20 years agoPatch to support MSVC correctly, contributed by Morten Ofstad!
Chris Lattner [Mon, 25 Oct 2004 18:38:05 +0000 (18:38 +0000)]
Patch to support MSVC correctly, contributed by Morten Ofstad!

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

20 years agoModified switch generation so that only the phi values associated with the
John Criswell [Mon, 25 Oct 2004 18:30:09 +0000 (18:30 +0000)]
Modified switch generation so that only the phi values associated with the
destination basic block are copied.

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

20 years agoNew Makefile Features:
Reid Spencer [Mon, 25 Oct 2004 08:27:37 +0000 (08:27 +0000)]
New Makefile Features:

* "dist" target now builds tar.gz, tar.bz2, and zip files suitable for
  distribution. "dist" can only be run from $(BUILD_OBJ_ROOT) and implies
  a "check".

* made the preconditions not do a recursive make and ensured that they are
  executed sequentially.

* made the messages output by the makefile be prefixed with "llvm" and the
  make level (e.g. llvm[1]: ) in the same way that make does so that the
  messages are uniform and more readable.

* Fixed the tags target so that tags depends on TAGS which contains the
  rules to build a file named TAGS

* Implemented the EXTRA_DIST feature in a few directories to make sure it
  works.

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

20 years agoTeach mkinstalldirs how to shut up about making directories.
Reid Spencer [Mon, 25 Oct 2004 08:21:09 +0000 (08:21 +0000)]
Teach mkinstalldirs how to shut up about making directories.

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

20 years agoAdd a check for the tar program.
Reid Spencer [Mon, 25 Oct 2004 08:18:47 +0000 (08:18 +0000)]
Add a check for the tar program.

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

20 years agoImplement more complete and correct codegen for bitfield inserts, as tested
Nate Begeman [Sun, 24 Oct 2004 10:33:30 +0000 (10:33 +0000)]
Implement more complete and correct codegen for bitfield inserts, as tested
by the recently committed rlwimi.ll test file.  Also commit initial code
for bitfield extract, although it is turned off until fully debugged.

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

20 years agoInitial checkin of regression test for generating the PowerPC rlwimi
Nate Begeman [Sun, 24 Oct 2004 10:30:22 +0000 (10:30 +0000)]
Initial checkin of regression test for generating the PowerPC rlwimi
instruction, which performs bitfield inserts.  All tests should compile
to one rlwimi instruction.

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

20 years agoFirst draft. More to come.
Reid Spencer [Sun, 24 Oct 2004 08:48:59 +0000 (08:48 +0000)]
First draft. More to come.

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

20 years agoFix uninstall from rebuilding everything (wrong dependency)
Reid Spencer [Sun, 24 Oct 2004 08:21:04 +0000 (08:21 +0000)]
Fix uninstall from rebuilding everything (wrong dependency)

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

20 years agoMove top level rules for tags and installing headers to Makefile.rules
Reid Spencer [Sun, 24 Oct 2004 08:20:10 +0000 (08:20 +0000)]
Move top level rules for tags and installing headers to Makefile.rules

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

20 years agoImplemented New Features:
Reid Spencer [Sun, 24 Oct 2004 07:53:21 +0000 (07:53 +0000)]
Implemented New Features:

* Fixed the install target to install files correctly
* Implemented the uninstall target to remove files from install dirs
* Isolated the top level targets (dist, dist-check, dist-clean, tags) so
  they only run/exist from the top level directory
* Put if/endif gaurds around potentially dangerous $(RM) commands.
* Implemented place-holder rules for distribution targets to just say that
  they aren't implemented yet.
* Implemented tags target in Makefile.rules so all projects can use it
* Made a pony for resistor

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

20 years agoFix the previous bug the correct way. This fixes ptrdist/bc
Chris Lattner [Sun, 24 Oct 2004 04:27:59 +0000 (04:27 +0000)]
Fix the previous bug the correct way.  This fixes ptrdist/bc

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

20 years agoFix grammar in comments to getSizeOf()
Misha Brukman [Sun, 24 Oct 2004 03:18:30 +0000 (03:18 +0000)]
Fix grammar in comments to getSizeOf()

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

20 years agoMake this actually work.
Alkis Evlogimenos [Sun, 24 Oct 2004 03:02:16 +0000 (03:02 +0000)]
Make this actually work.

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

20 years agoImprove comments and wrap to 80 columns.
Alkis Evlogimenos [Sun, 24 Oct 2004 03:01:32 +0000 (03:01 +0000)]
Improve comments and wrap to 80 columns.

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

20 years agoMake the $(OBJDIR) go away on clean-local.
Reid Spencer [Sun, 24 Oct 2004 02:26:09 +0000 (02:26 +0000)]
Make the $(OBJDIR) go away on clean-local.

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

20 years agoAdd ConstantExpr::getSizeOf(Type*).
Alkis Evlogimenos [Sun, 24 Oct 2004 01:41:10 +0000 (01:41 +0000)]
Add ConstantExpr::getSizeOf(Type*).

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

20 years ago* Correctly handle the MovePCtoLR pseudo-instr with a bl to next instr
Misha Brukman [Sat, 23 Oct 2004 23:47:34 +0000 (23:47 +0000)]
* Correctly handle the MovePCtoLR pseudo-instr with a bl to next instr
* Stop the confusion of using rv and Addr for global addresses: just use rv

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

20 years agoAdd BA, BL, and BLA opcodes
Misha Brukman [Sat, 23 Oct 2004 20:29:24 +0000 (20:29 +0000)]
Add BA, BL, and BLA opcodes

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

20 years agoSeveral Changes:
Reid Spencer [Sat, 23 Oct 2004 20:04:14 +0000 (20:04 +0000)]
Several Changes:
* Fix parallel build problem on generated dependency files
* Fix rule confusion between .a and .la libraries so that parallel builds
  don't get confused on who is building which .o and which library it is
  going into.
* Fix dependency inclusion to only include C/C++ dependency files because
  other types of sources won't have dependencies auto generated.
* Change "Source" to "SOURCES" for naming consistency
* Update parallel build rules for new recursive targets
* Implement EXPERIMENTAL_DIRS (failure allowed) feature
* Implement -local version of targets (all-local, clean-local, etc)
* Implement recursive targets in terms of their local counterparts
* Clarify names of some internal variables
* Move documentation to docs/MakefileGuide.html
* Clean up commentary

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

20 years agoMake clean quieter.
Reid Spencer [Sat, 23 Oct 2004 19:49:20 +0000 (19:49 +0000)]
Make clean quieter.

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

20 years ago* Do not emit IMPLICIT_DEF pseudo-instructions
Misha Brukman [Sat, 23 Oct 2004 18:28:01 +0000 (18:28 +0000)]
* Do not emit IMPLICIT_DEF pseudo-instructions
* Convert register numbers from their opcode value to the real value, e.g.
  PPC::R1 => 1 and PPC::F1 => 1
* Add correct handling of loading of global values which are PC-relative --
  implement ha16() and lo16()

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

20 years agoFix nightly build by avoiding shared library construction.
Reid Spencer [Sat, 23 Oct 2004 15:30:30 +0000 (15:30 +0000)]
Fix nightly build by avoiding shared library construction.

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

20 years ago* Actually ignore build errors in optional directories
Reid Spencer [Sat, 23 Oct 2004 08:19:37 +0000 (08:19 +0000)]
* Actually ignore build errors in optional directories
* Use LLVM_SRC_ROOT as the anchor for the Target.td file
* Use MFLAGS instead of MAKEFLAGS for recursive makes so we don't try
  to build a target "w" or "s" mysteriously.

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

20 years agoRemove the clean target.
Reid Spencer [Sat, 23 Oct 2004 08:01:27 +0000 (08:01 +0000)]
Remove the clean target.

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

20 years agoFirst cut at the LLVM Makefile Guide. There's lots to correct and lots more
Reid Spencer [Sat, 23 Oct 2004 07:57:22 +0000 (07:57 +0000)]
First cut at the LLVM Makefile Guide. There's lots to correct and lots more
to write, but this is all my brain can muster for tonight.

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

20 years agoDForm_1, particularly used by store instructions, needs the immediate operand to
Misha Brukman [Sat, 23 Oct 2004 06:08:38 +0000 (06:08 +0000)]
DForm_1, particularly used by store instructions, needs the immediate operand to
be listed second as that is how the instructions are usually created (and is the
correct asm syntax) so that it's assembled correctly from its constituents

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

20 years agoFix the SPR field for MTLR, MFLR, MTCTR, and MFCTR instructions.
Misha Brukman [Sat, 23 Oct 2004 06:05:49 +0000 (06:05 +0000)]
Fix the SPR field for MTLR, MFLR, MTCTR, and MFCTR instructions.
The decimal value given in the manual (8 or 9) really needs to be multiplied by
a factor of 32 because of the group of 5 zero bits after the register code.

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

20 years agoThe value of the XO field for MFLR and MFCTR is 339, not 399
Misha Brukman [Sat, 23 Oct 2004 05:38:55 +0000 (05:38 +0000)]
The value of the XO field for MFLR and MFCTR is 339, not 399

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

20 years agoRemove extraneous blank line
Misha Brukman [Sat, 23 Oct 2004 04:59:22 +0000 (04:59 +0000)]
Remove extraneous blank line

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

20 years agoMake VC happier, patch contributed by Morten Ofstad
Chris Lattner [Sat, 23 Oct 2004 04:58:50 +0000 (04:58 +0000)]
Make VC happier, patch contributed by Morten Ofstad

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

20 years agoAlign function arguments in function headers
Misha Brukman [Sat, 23 Oct 2004 04:58:32 +0000 (04:58 +0000)]
Align function arguments in function headers

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

20 years agoFix a bug that Brian brought to my attention. This corrects:
Chris Lattner [Sat, 23 Oct 2004 03:10:23 +0000 (03:10 +0000)]
Fix a bug that Brian brought to my attention.  This corrects:
Assembler/2004-10-22-BCWriterUndefBug.llx

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

20 years agoNew testcase
Chris Lattner [Sat, 23 Oct 2004 03:10:01 +0000 (03:10 +0000)]
New testcase

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

20 years agoKill casts from integer types to unsigned byte, when the cast was only used
Nate Begeman [Sat, 23 Oct 2004 00:50:23 +0000 (00:50 +0000)]
Kill casts from integer types to unsigned byte, when the cast was only used
as the shift amount operand to a shift instruction.  This was causing us to
emit unnecessary clear operations for code such as:
int foo(int x) { return 1 << x; }

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

20 years agoUse cleaner quoting and eliminate blank space
Misha Brukman [Fri, 22 Oct 2004 23:35:57 +0000 (23:35 +0000)]
Use cleaner quoting and eliminate blank space

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

20 years agoClean up the output from this makefile so its not verbose.
Reid Spencer [Fri, 22 Oct 2004 23:24:39 +0000 (23:24 +0000)]
Clean up the output from this makefile so its not verbose.

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

20 years agoMake sure that we don't set up a circular dependency if OBJDIR == SRCDIR
Reid Spencer [Fri, 22 Oct 2004 23:06:30 +0000 (23:06 +0000)]
Make sure that we don't set up a circular dependency if OBJDIR == SRCDIR

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

20 years agoRemove double colon rule for gram.tab.h so it doesn't conflict with the
Reid Spencer [Fri, 22 Oct 2004 23:05:46 +0000 (23:05 +0000)]
Remove double colon rule for gram.tab.h so it doesn't conflict with the
auto-generated dependency rule.

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

20 years agoPull in Target.td using absolute path from source root instead of relative path;
Misha Brukman [Fri, 22 Oct 2004 22:18:27 +0000 (22:18 +0000)]
Pull in Target.td using absolute path from source root instead of relative path;
this allows us to have sub-targets whose depth in the tree is not the same as it
is for the standard X86/PowerPC/Sparc.

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

20 years agoAdjust rules for building .inc files due to Reid's changes of Makefile.rules
Misha Brukman [Fri, 22 Oct 2004 22:16:24 +0000 (22:16 +0000)]
Adjust rules for building .inc files due to Reid's changes of Makefile.rules

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

20 years agoWe're not doing automake any more
Reid Spencer [Fri, 22 Oct 2004 21:02:23 +0000 (21:02 +0000)]
We're not doing automake any more

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

20 years agoAdjust to changes in Makefile.rules
Reid Spencer [Fri, 22 Oct 2004 21:02:08 +0000 (21:02 +0000)]
Adjust to changes in Makefile.rules

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

20 years agoShorten the rules, speed it up, correct library contruction, add *.td rules
Reid Spencer [Fri, 22 Oct 2004 21:01:56 +0000 (21:01 +0000)]
Shorten the rules, speed it up, correct library contruction, add *.td rules

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

20 years agoRemove the unused SourceDir variable (use BUILD_SRC_DIR)
Reid Spencer [Fri, 22 Oct 2004 21:01:44 +0000 (21:01 +0000)]
Remove the unused SourceDir variable (use BUILD_SRC_DIR)

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

20 years agoOne more file to remove now that we're not doing automake.
Reid Spencer [Fri, 22 Oct 2004 19:33:22 +0000 (19:33 +0000)]
One more file to remove now that we're not doing automake.

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

20 years agoEliminate compilation warning on uninitialized variable.
Reid Spencer [Fri, 22 Oct 2004 16:10:39 +0000 (16:10 +0000)]
Eliminate compilation warning on uninitialized variable.

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

20 years ago*** empty log message ***
Chris Lattner [Fri, 22 Oct 2004 06:43:28 +0000 (06:43 +0000)]
*** empty log message ***

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

20 years agoNew testcase. Check for the ability to promote a malloc whose initialzed state is...
Chris Lattner [Fri, 22 Oct 2004 06:43:07 +0000 (06:43 +0000)]
New testcase.  Check for the ability to promote a malloc whose initialzed state is checked by the program

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

20 years agoFix a bug Nate noticed, where we miscompiled a simple testcase
Chris Lattner [Fri, 22 Oct 2004 04:53:16 +0000 (04:53 +0000)]
Fix a bug Nate noticed, where we miscompiled a simple testcase

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

20 years agoRemove automake support.
Reid Spencer [Fri, 22 Oct 2004 03:39:08 +0000 (03:39 +0000)]
Remove automake support.

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

20 years agoWe won't use automake
Reid Spencer [Fri, 22 Oct 2004 03:35:04 +0000 (03:35 +0000)]
We won't use automake

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

20 years agoRemove debug code emitter from the JIT
Misha Brukman [Thu, 21 Oct 2004 03:07:38 +0000 (03:07 +0000)]
Remove debug code emitter from the JIT

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

20 years agoMake this compile.
Alkis Evlogimenos [Thu, 21 Oct 2004 02:44:16 +0000 (02:44 +0000)]
Make this compile.

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

20 years ago* Added basic support for JITing functions, basic blocks, instruction encoding,
Misha Brukman [Thu, 21 Oct 2004 01:42:02 +0000 (01:42 +0000)]
* Added basic support for JITing functions, basic blocks, instruction encoding,
  including registers, constants, and partial support for global addresses
* The JIT is disabled by default to allow building llvm-gcc, which wants to test
  running programs during configure

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

20 years agoDon't clear or sign extend bool->int. This fires a few dozen times on the test suite
Nate Begeman [Wed, 20 Oct 2004 21:55:41 +0000 (21:55 +0000)]
Don't clear or sign extend bool->int.  This fires a few dozen times on the test suite

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