oota-llvm.git
21 years agoBuild with -D_GNU_SOURCE to enable gnu extensions in header files
Chris Lattner [Fri, 13 Sep 2002 16:02:26 +0000 (16:02 +0000)]
Build with -D_GNU_SOURCE to enable gnu extensions in header files

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

21 years agoAdd better linux support by using the right macro. This still should be
Chris Lattner [Fri, 13 Sep 2002 15:37:58 +0000 (15:37 +0000)]
Add better linux support by using the right macro.  This still should be
autoconfiscated, but for now this is sufficient.

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

21 years agoSubmitted by Casey Carter:
Chris Lattner [Fri, 13 Sep 2002 14:57:24 +0000 (14:57 +0000)]
Submitted by Casey Carter:

ISSUE: Linux doesn't have any steenking SIGEMT signal, as referred to in
lib/Support/Signals.cpp.

ACTION: Wrap the use with a #ifdef SIGEMT / #endif.

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

21 years agoAnother portability fix provided via Casey Carter:
Chris Lattner [Fri, 13 Sep 2002 14:47:12 +0000 (14:47 +0000)]
Another portability fix provided via Casey Carter:

ISSUE: getTimeRecord in lib/VMCore/Pass.cpp uses timeval and
gettimeofday() without including sys/time.h.

ACTION: Include sys/time.h.

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

21 years agoAnother portability patch graciously provided by Casey Carter
Chris Lattner [Fri, 13 Sep 2002 14:41:38 +0000 (14:41 +0000)]
Another portability patch graciously provided by Casey Carter

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

21 years agoCheckin patch written by Casey Carter, enabling support for the redhat GCC 2.96
Chris Lattner [Fri, 13 Sep 2002 14:33:39 +0000 (14:33 +0000)]
Checkin patch written by Casey Carter, enabling support for the redhat GCC 2.96
compiler.

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

21 years agoFix a bug introduced by the Getelementptr change
Chris Lattner [Thu, 12 Sep 2002 20:34:47 +0000 (20:34 +0000)]
Fix a bug introduced by the Getelementptr change

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

21 years agoFix a bug I introduced into the code generator. :(
Chris Lattner [Thu, 12 Sep 2002 20:27:10 +0000 (20:27 +0000)]
Fix a bug I introduced into the code generator. :(

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

21 years agoAdd a </ul> that was missing and caused the document to get a little whacky
Chris Lattner [Thu, 12 Sep 2002 19:08:16 +0000 (19:08 +0000)]
Add a </ul> that was missing and caused the document to get a little whacky

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

21 years agoIncorporate information about deleting instructions from a basic block,
Chris Lattner [Thu, 12 Sep 2002 19:06:51 +0000 (19:06 +0000)]
Incorporate information about deleting instructions from a basic block,
contributed by Tanya.

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

21 years agoFix bug I introduced with one of my previous changes.
Chris Lattner [Thu, 12 Sep 2002 19:00:43 +0000 (19:00 +0000)]
Fix bug I introduced with one of my previous changes.
Thanks fly out to Nick for noticing it!  :)

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

21 years agoAdd some information about the Instruction class and Instruction.def
Chris Lattner [Thu, 12 Sep 2002 17:18:46 +0000 (17:18 +0000)]
Add some information about the Instruction class and Instruction.def

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

21 years agoAdd a new BasicBlockPass::doInitialization/Finalization(Function &) pair of
Chris Lattner [Thu, 12 Sep 2002 17:06:43 +0000 (17:06 +0000)]
Add a new BasicBlockPass::doInitialization/Finalization(Function &) pair of
methods that may be useful for BasicBlockPasses.

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

21 years agoAdd a new BasicBlockPass::doInitialization/Finalization(Function &) pair of
Chris Lattner [Thu, 12 Sep 2002 17:06:40 +0000 (17:06 +0000)]
Add a new BasicBlockPass::doInitialization/Finalization(Function &) pair of
methods that may be useful for BasicBlockPasses.

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

21 years agoMake sure to print a message when linking a tool
Chris Lattner [Thu, 12 Sep 2002 17:02:40 +0000 (17:02 +0000)]
Make sure to print a message when linking a tool

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

21 years agoCompiling with "gmake" should produce less output. The compilation/linking
Misha Brukman [Thu, 12 Sep 2002 16:05:39 +0000 (16:05 +0000)]
Compiling with "gmake" should produce less output. The compilation/linking
flags are always the same anyway, who wants to see so much text on the
screen? Compiling with "gmake VERBOSE=1" should produce all the output
you're used to.

Basically it checks for VERBOSE being defined, and if it is, sets VERB
appropriately. VERB is then prepended in a bunch of key places such that
when VERB is "@", the command is not echoed, when VERB is not set to
anything, it's as before.

One thing I could not get rid of is "gmake[1]: Entering directory <blah>",
but running "gmake -s" suppresses it all, and shows just the interesting
stuff.

Now output (when running "gmake -s" will look something like):

<snip>
======= Linking target debug library =======
Compiling Writer.cpp
Compiling getLLVMinfo.cpp
Compiling as.cpp
Compiling dis.cpp
Compiling opt.cpp
Compiling gccas.cpp
<snip>

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

21 years ago- Added content to use-def/def-use section
Joel Stanley [Wed, 11 Sep 2002 22:32:24 +0000 (22:32 +0000)]
- Added content to use-def/def-use section
- Added content to subsection "Creating and inserting new Instructions"

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

21 years ago*** empty log message ***
Joel Stanley [Wed, 11 Sep 2002 20:50:04 +0000 (20:50 +0000)]
*** empty log message ***

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

21 years ago- Change getelementptr instruction to use long indexes instead of uint
Chris Lattner [Wed, 11 Sep 2002 01:21:35 +0000 (01:21 +0000)]
- Change getelementptr instruction to use long indexes instead of uint
    indexes for sequential types.

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

21 years ago- Change getelementptr instruction to use long indexes instead of uint
Chris Lattner [Wed, 11 Sep 2002 01:21:33 +0000 (01:21 +0000)]
- Change getelementptr instruction to use long indexes instead of uint
    indexes for sequential types.

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

21 years ago - Change getelementptr instruction to use long indexes instead of uint
Chris Lattner [Wed, 11 Sep 2002 01:21:29 +0000 (01:21 +0000)]
  - Change getelementptr instruction to use long indexes instead of uint
    indexes for sequential types.

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

21 years agoGive better assertion message for error conditions
Chris Lattner [Wed, 11 Sep 2002 01:21:04 +0000 (01:21 +0000)]
Give better assertion message for error conditions

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

21 years agoRecently changed getelementptr to use 'long' indexes for sequential types
Chris Lattner [Wed, 11 Sep 2002 01:17:27 +0000 (01:17 +0000)]
Recently changed getelementptr to use 'long' indexes for sequential types
instead of uints.  This adds a translation scheme to be backwards compatible
with old .ll files.

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

21 years agoConvert index type for getelementptr instruction from uint to long
Chris Lattner [Wed, 11 Sep 2002 01:16:19 +0000 (01:16 +0000)]
Convert index type for getelementptr instruction from uint to long

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

21 years agoAllocation insts always have one operand
Chris Lattner [Wed, 11 Sep 2002 00:22:39 +0000 (00:22 +0000)]
Allocation insts always have one operand

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

21 years agoAdd convenience ctor to BranchInst
Chris Lattner [Tue, 10 Sep 2002 23:54:58 +0000 (23:54 +0000)]
Add convenience ctor to BranchInst

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

21 years agoAdd convenience ctor to BranchInst
Chris Lattner [Tue, 10 Sep 2002 23:54:56 +0000 (23:54 +0000)]
Add convenience ctor to BranchInst

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

21 years agoFix the last of the silly bugs I just introduced. :(
Chris Lattner [Tue, 10 Sep 2002 23:46:10 +0000 (23:46 +0000)]
Fix the last of the silly bugs I just introduced.  :(

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

21 years agoFix bugs in previous checkins
Chris Lattner [Tue, 10 Sep 2002 23:31:28 +0000 (23:31 +0000)]
Fix bugs in previous checkins

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

21 years agoFix bug in previous checkin
Chris Lattner [Tue, 10 Sep 2002 23:31:12 +0000 (23:31 +0000)]
Fix bug in previous checkin

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

21 years agoAdd cannonicalization of shl X, 1 -> add X, X
Chris Lattner [Tue, 10 Sep 2002 23:04:09 +0000 (23:04 +0000)]
Add cannonicalization of shl X, 1 -> add X, X

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

21 years agoCheck for cannonicalization of shl X, 1 -> add X, X
Chris Lattner [Tue, 10 Sep 2002 23:03:10 +0000 (23:03 +0000)]
Check for cannonicalization of shl X, 1 -> add X, X

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

21 years agoFix minor problems in previous checkin
Chris Lattner [Tue, 10 Sep 2002 22:52:51 +0000 (22:52 +0000)]
Fix minor problems in previous checkin

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

21 years agoFix minor problems in previous checkin
Chris Lattner [Tue, 10 Sep 2002 22:52:49 +0000 (22:52 +0000)]
Fix minor problems in previous checkin

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

21 years agoFix config file due to directories changing
Chris Lattner [Tue, 10 Sep 2002 22:39:04 +0000 (22:39 +0000)]
Fix config file due to directories changing

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

21 years agoClean up code due to auto-insert constructors
Chris Lattner [Tue, 10 Sep 2002 22:38:49 +0000 (22:38 +0000)]
Clean up code due to auto-insert constructors

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

21 years agoClean up code due to auto-insert constructors
Chris Lattner [Tue, 10 Sep 2002 22:38:47 +0000 (22:38 +0000)]
Clean up code due to auto-insert constructors

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

21 years agoClean up code
Chris Lattner [Tue, 10 Sep 2002 22:38:06 +0000 (22:38 +0000)]
Clean up code

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

21 years agoUse explicit ctor
Chris Lattner [Tue, 10 Sep 2002 22:37:46 +0000 (22:37 +0000)]
Use explicit ctor

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

21 years agoClean up pointer using testcases
Chris Lattner [Tue, 10 Sep 2002 20:04:19 +0000 (20:04 +0000)]
Clean up pointer using testcases

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

21 years agoTighten up assertion checking for binary operators, not allowing invalid
Chris Lattner [Tue, 10 Sep 2002 19:57:53 +0000 (19:57 +0000)]
Tighten up assertion checking for binary operators, not allowing invalid
instructions to _even be created_.

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

21 years agoTighten up error checking in parser, disallowing instructions that f.e.,
Chris Lattner [Tue, 10 Sep 2002 19:57:26 +0000 (19:57 +0000)]
Tighten up error checking in parser, disallowing instructions that f.e.,
add pointers together.

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

21 years agoRemove a testcase that is irrelevant now, fix a pointer adding testcase
Chris Lattner [Tue, 10 Sep 2002 19:55:40 +0000 (19:55 +0000)]
Remove a testcase that is irrelevant now, fix a pointer adding testcase

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

21 years agoFix bug: test/Regression/Transforms/LevelRaise/2002-09-10-PointerAdds.ll
Chris Lattner [Tue, 10 Sep 2002 19:42:53 +0000 (19:42 +0000)]
Fix bug: test/Regression/Transforms/LevelRaise/2002-09-10-PointerAdds.ll

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

21 years agoNew testcase for poitner problem
Chris Lattner [Tue, 10 Sep 2002 19:41:57 +0000 (19:41 +0000)]
New testcase for poitner problem

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

21 years agoSimplify code (somtimes dramatically), by using the new "auto-insert" feature
Chris Lattner [Tue, 10 Sep 2002 17:04:02 +0000 (17:04 +0000)]
Simplify code (somtimes dramatically), by using the new "auto-insert" feature
of instruction constructors.

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

21 years agoSimplify code (somtimes dramatically), by using the new "auto-insert" feature
Chris Lattner [Tue, 10 Sep 2002 17:03:06 +0000 (17:03 +0000)]
Simplify code (somtimes dramatically), by using the new "auto-insert" feature
of instruction constructors.

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

21 years agoAdd support for printing constpointerrefs more nicely
Chris Lattner [Tue, 10 Sep 2002 15:53:49 +0000 (15:53 +0000)]
Add support for printing constpointerrefs more nicely

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

21 years agoAdd capability to insert an instruction into a basic block immediately after
Chris Lattner [Tue, 10 Sep 2002 15:45:53 +0000 (15:45 +0000)]
Add capability to insert an instruction into a basic block immediately after
it is created, as part of the ctor call.

Eliminate the GenericBinaryInst class

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

21 years agoRemove extra #include
Chris Lattner [Tue, 10 Sep 2002 15:43:30 +0000 (15:43 +0000)]
Remove extra #include

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

21 years agoImplement support for inserting an instruction into a basic block right when it
Chris Lattner [Tue, 10 Sep 2002 15:36:11 +0000 (15:36 +0000)]
Implement support for inserting an instruction into a basic block right when it
is created.

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

21 years agoClean up indvar printing
Chris Lattner [Tue, 10 Sep 2002 15:35:39 +0000 (15:35 +0000)]
Clean up indvar printing

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

21 years agoEliminate the GenericBinaryInst class
Chris Lattner [Tue, 10 Sep 2002 15:35:23 +0000 (15:35 +0000)]
Eliminate the GenericBinaryInst class

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

21 years ago* Eliminate GenericBinaryInst class
Chris Lattner [Tue, 10 Sep 2002 15:34:41 +0000 (15:34 +0000)]
* Eliminate GenericBinaryInst class
* Allow specifying where to insert a newly created SetCondInst

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

21 years agoEliminate the GenericBinaryInst class.
Chris Lattner [Tue, 10 Sep 2002 15:27:31 +0000 (15:27 +0000)]
Eliminate the GenericBinaryInst class.

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

21 years agoEliminate setType method
Chris Lattner [Tue, 10 Sep 2002 15:26:27 +0000 (15:26 +0000)]
Eliminate setType method
Now the only way to set the type of a value is in the ctor for an object

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

21 years agoFinish up the isa/cast/dyn_cast section
Chris Lattner [Tue, 10 Sep 2002 15:20:46 +0000 (15:20 +0000)]
Finish up the isa/cast/dyn_cast section

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

21 years ago* Clean up code a little bit
Chris Lattner [Tue, 10 Sep 2002 05:24:05 +0000 (05:24 +0000)]
* Clean up code a little bit
* Fix bug: test/Regression/Transforms/IndVarsSimplify/2002-09-09-PointerIndVar.ll

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

21 years agoRun indvars tests
Chris Lattner [Tue, 10 Sep 2002 04:55:36 +0000 (04:55 +0000)]
Run indvars tests

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

21 years agoAdd new testcase for broken indvars case
Chris Lattner [Tue, 10 Sep 2002 04:54:44 +0000 (04:54 +0000)]
Add new testcase for broken indvars case

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

21 years agoFix typeo in assertion message
Chris Lattner [Tue, 10 Sep 2002 04:52:59 +0000 (04:52 +0000)]
Fix typeo in assertion message

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

21 years agoHack unneccesary now that shifts of pointers are no longer legal!
Chris Lattner [Tue, 10 Sep 2002 03:50:54 +0000 (03:50 +0000)]
Hack unneccesary now that shifts of pointers are no longer legal!

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

21 years agoWrite most of the isa, cast, dyn_cast section. It's not done yet though.
Chris Lattner [Tue, 10 Sep 2002 00:39:05 +0000 (00:39 +0000)]
Write most of the isa, cast, dyn_cast section.  It's not done yet though.

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

21 years agoDo not allow adds of pointer types, or many other operations on pointer types.
Chris Lattner [Mon, 9 Sep 2002 20:26:04 +0000 (20:26 +0000)]
Do not allow adds of pointer types, or many other operations on pointer types.

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

21 years agoDisallow creation of pointer typed shift instructions
Chris Lattner [Mon, 9 Sep 2002 20:25:21 +0000 (20:25 +0000)]
Disallow creation of pointer typed shift instructions

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

21 years ago* Write the prose for the Basic Inspection and Traversal Routines section
Chris Lattner [Mon, 9 Sep 2002 19:58:18 +0000 (19:58 +0000)]
* Write the prose for the Basic Inspection and Traversal Routines section
* Fix some minor problems with &lt; and &amp;
* Add links to later parts of the document for classes

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

21 years ago*** empty log message ***
Joel Stanley [Mon, 9 Sep 2002 16:29:58 +0000 (16:29 +0000)]
*** empty log message ***

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

21 years ago- Made distinction between object->iterator and iterator->object
Joel Stanley [Mon, 9 Sep 2002 15:50:33 +0000 (15:50 +0000)]
- Made distinction between object->iterator and iterator->object
conversion more clear.

- Added content to "Iterating over Instructions in a Function"
section.

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

21 years agoSilly bug fix: Machine code vector could be empty for a no-op cast instruction,
Vikram S. Adve [Mon, 9 Sep 2002 14:54:21 +0000 (14:54 +0000)]
Silly bug fix: Machine code vector could be empty for a no-op cast instruction,
e.g., cast double to double.

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

21 years agoClean up the isa section stub. It should not be listed twice
Chris Lattner [Mon, 9 Sep 2002 05:53:21 +0000 (05:53 +0000)]
Clean up the isa section stub.  It should not be listed twice

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

21 years agoStub out another couple sections that it looks like 426's MP1 will really
Chris Lattner [Mon, 9 Sep 2002 05:49:39 +0000 (05:49 +0000)]
Stub out another couple sections that it looks like 426's MP1 will really
need.

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

21 years agoFix minor typo
Chris Lattner [Mon, 9 Sep 2002 03:48:46 +0000 (03:48 +0000)]
Fix minor typo

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

21 years agoTestcase no longer applicable since shifts of pointers are no longer allowed
Chris Lattner [Mon, 9 Sep 2002 03:43:09 +0000 (03:43 +0000)]
Testcase no longer applicable since shifts of pointers are no longer allowed

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

21 years agoEliminate multiply of pointer type
Chris Lattner [Mon, 9 Sep 2002 03:42:14 +0000 (03:42 +0000)]
Eliminate multiply of pointer type

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

21 years agoFactor silly code duplication out
Chris Lattner [Sun, 8 Sep 2002 21:47:54 +0000 (21:47 +0000)]
Factor silly code duplication out

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

21 years agoFix Bug: test/Regression/Transforms/InstCombine/2002-09-08-PointerShiftBug.ll
Chris Lattner [Sun, 8 Sep 2002 21:39:07 +0000 (21:39 +0000)]
Fix Bug: test/Regression/Transforms/InstCombine/2002-09-08-PointerShiftBug.ll

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

21 years agoNew testcase for a bug identified by Vikram
Chris Lattner [Sun, 8 Sep 2002 21:37:49 +0000 (21:37 +0000)]
New testcase for a bug identified by Vikram

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

21 years agoMake sure the leakdetector is told about temporary Phi nodes also, so it doesn't
Chris Lattner [Sun, 8 Sep 2002 21:19:29 +0000 (21:19 +0000)]
Make sure the leakdetector is told about temporary Phi nodes also, so it doesn't
erroneously report them as leaks

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

21 years agoInform the memory leak detector that TmpInstruction objects should not be
Chris Lattner [Sun, 8 Sep 2002 21:08:43 +0000 (21:08 +0000)]
Inform the memory leak detector that TmpInstruction objects should not be
subject to memory leak checking.

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

21 years agoMove TmpInstruction ctor to InstrSelection.cpp file
Chris Lattner [Sun, 8 Sep 2002 21:07:51 +0000 (21:07 +0000)]
Move TmpInstruction ctor to InstrSelection.cpp file

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

21 years agoEnable "garbage detection" of LLVM objects. Check for leaks after running
Chris Lattner [Sun, 8 Sep 2002 19:00:07 +0000 (19:00 +0000)]
Enable "garbage detection" of LLVM objects.  Check for leaks after running
every pass.

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

21 years agoEnable "garbage detection" of LLVM objects. Now users should be obnoxious
Chris Lattner [Sun, 8 Sep 2002 18:59:35 +0000 (18:59 +0000)]
Enable "garbage detection" of LLVM objects.  Now users should be obnoxious
warnings.  If they accidentally leak LLVM Value's.

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

21 years agoMinor simplification
Chris Lattner [Sun, 8 Sep 2002 18:55:04 +0000 (18:55 +0000)]
Minor simplification

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

21 years agoCheckin initial support for automatic memory leak detection routines
Chris Lattner [Sun, 8 Sep 2002 18:51:16 +0000 (18:51 +0000)]
Checkin initial support for automatic memory leak detection routines

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

21 years agoCheckin initial support for automatic memory leak detection routines
Chris Lattner [Sun, 8 Sep 2002 18:51:12 +0000 (18:51 +0000)]
Checkin initial support for automatic memory leak detection routines

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

21 years ago* Add capability to recognize alias properties of the following common cases:
Chris Lattner [Sun, 8 Sep 2002 18:45:18 +0000 (18:45 +0000)]
* Add capability to recognize alias properties of the following common cases:
  - A[c1] cannot alias A[c2] where constants c1 != c2
  - A[i] cannot alias B[j] if A & B are provably different arrays

This should help out array based codes.  For example, from bzip2 from spec,
3 additional loads can be GCSE'd, and _21_ additional loads can be LICMd due
to this change.

In a test example from the Spec GAP benchmark (vecffe.c), this change allows
_52_ additional loads to be GCSE'd and _224_ additional LICM'd loads.

Not bad for such a simple change.  Other testcases show no change at all
because they just don't use arrays.  Not too suprising there.

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

21 years agoNew testcase that tests for array pointer analysis type stuff
Chris Lattner [Sun, 8 Sep 2002 18:08:36 +0000 (18:08 +0000)]
New testcase that tests for array pointer analysis type stuff

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

21 years agoFix bug in testcase now that load-vn is not built into gcse
Chris Lattner [Sat, 7 Sep 2002 22:50:41 +0000 (22:50 +0000)]
Fix bug in testcase now that load-vn is not built into gcse

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

21 years agoFix broken test
Chris Lattner [Sat, 7 Sep 2002 22:48:30 +0000 (22:48 +0000)]
Fix broken test

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

21 years agoTest commit
Chris Lattner [Sat, 7 Sep 2002 05:33:45 +0000 (05:33 +0000)]
Test commit

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

21 years ago*** empty log message ***
Joel Stanley [Fri, 6 Sep 2002 23:42:40 +0000 (23:42 +0000)]
*** empty log message ***

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

21 years agoFixed typos and added &lt/&gt/&amp tags where appropriate
Joel Stanley [Fri, 6 Sep 2002 23:05:12 +0000 (23:05 +0000)]
Fixed typos and added &lt/&gt/&amp tags where appropriate

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

21 years ago* Fix a couple more <>&'s
Chris Lattner [Fri, 6 Sep 2002 22:51:10 +0000 (22:51 +0000)]
* Fix a couple more <>&'s
* Correct an extremely minor technical point about a deprecated interface.

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

21 years agoMinor fixes html type fixes: & -> &amp; > -> &gt; etc.
Chris Lattner [Fri, 6 Sep 2002 22:12:58 +0000 (22:12 +0000)]
Minor fixes html type fixes: & -> &amp;  > -> &gt; etc.
Hopefully permission thing works this time.

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

21 years agoMinor fix, test that web autoupdate works for people non-chris
Chris Lattner [Fri, 6 Sep 2002 22:09:21 +0000 (22:09 +0000)]
Minor fix, test that web autoupdate works for people non-chris

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

21 years agoAdded subsections to 'Basic Inspection and Traversal Routines':
Joel Stanley [Fri, 6 Sep 2002 21:55:13 +0000 (21:55 +0000)]
Added subsections to 'Basic Inspection and Traversal Routines':

* Iterating over the BasicBlocks in a Function
* Iterating over the Instructions in a BasicBlock
* Turning an iterator into a class pointer
* Finding call sites: a more complex example

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

21 years agoMove code out of header files into .cpp files to make future changes easier
Chris Lattner [Fri, 6 Sep 2002 21:33:15 +0000 (21:33 +0000)]
Move code out of header files into .cpp files to make future changes easier

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

21 years ago* Clean up some comments
Chris Lattner [Fri, 6 Sep 2002 21:31:57 +0000 (21:31 +0000)]
* Clean up some comments
* Move code out of header file to .cpp files, to make future changes easier
* Add arguments to classes so that they can be automatically inserted into their
  parent structure upon creation.

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

21 years agoFix script due to new www/ top level directory
Chris Lattner [Fri, 6 Sep 2002 21:04:36 +0000 (21:04 +0000)]
Fix script due to new www/ top level directory

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

21 years agoRemove obsolete script
Chris Lattner [Fri, 6 Sep 2002 21:04:22 +0000 (21:04 +0000)]
Remove obsolete script

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