Vikram S. Adve [Mon, 16 Sep 2002 15:56:01 +0000 (15:56 +0000)]
Add methods to query about the representation of LLVM quantities (e.g.,
constants). Useful for target-dependent LLVM transformations like
Preselection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3743
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:54:02 +0000 (15:54 +0000)]
Don't print out global names unnecesssarily. Also, expose pass
constructors so passes can be inserted by TargetMachine.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3742
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:39:35 +0000 (15:39 +0000)]
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3741
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:39:26 +0000 (15:39 +0000)]
Move all the code that creates code generation passes from Sparc.cpp to
TargetMachine.cpp, since it is entirely machine-independent.
Also, add options to disable optional back-end passes (preselection and
instr. scheduling).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3740
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:32:07 +0000 (15:32 +0000)]
Add subdirectory PreSelection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3739
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:31:13 +0000 (15:31 +0000)]
New preselection pass that specializes LLVM code for a target machine,
while remaining in legal portable LLVM form and preserving type
information and type safety.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3738
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:18:53 +0000 (15:18 +0000)]
Dump routine now writes out allocated register numbers if available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3737
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:18:16 +0000 (15:18 +0000)]
Improve and fix error in allocating stack slots: adjust alignment after adding
base address of the relevant region (instead of assuming that each region
is maximally aligned).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3736
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:15:57 +0000 (15:15 +0000)]
Add a version of ChooseRegOrImmed to handle numerical constants
introduced by InstrSelection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3735
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:13:59 +0000 (15:13 +0000)]
Add an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3734
91177308-0d34-0410-b5e6-
96231b3b80d8
Anand Shukla [Mon, 16 Sep 2002 05:26:51 +0000 (05:26 +0000)]
Incorporated changes in alloca and getElementPointer instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3733
91177308-0d34-0410-b5e6-
96231b3b80d8
Anand Shukla [Mon, 16 Sep 2002 05:24:49 +0000 (05:24 +0000)]
Incorporated changes in alloca instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3732
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sun, 15 Sep 2002 21:51:04 +0000 (21:51 +0000)]
No longer need to sign-extend array indices to 64 bits since they
are now longs and not unsigned ints.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3731
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sun, 15 Sep 2002 18:22:47 +0000 (18:22 +0000)]
Simplify significantly (and fix syntax error).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3730
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sun, 15 Sep 2002 16:58:30 +0000 (16:58 +0000)]
Use much better method to find the llvmbase directory.
Also, add -h option to print usage information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3729
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sun, 15 Sep 2002 16:45:10 +0000 (16:45 +0000)]
Check error condition after cvs returns. Also remove -c option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3728
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sun, 15 Sep 2002 16:33:32 +0000 (16:33 +0000)]
Shell-script to build current directory and then link one tool (default: opt)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3727
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sun, 15 Sep 2002 15:33:48 +0000 (15:33 +0000)]
Fix typos in previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3726
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 15 Sep 2002 07:07:55 +0000 (07:07 +0000)]
RegAllocCommon no longer includes CommandLine.h so we have to include it
here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3725
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 14 Sep 2002 23:05:33 +0000 (23:05 +0000)]
Break RA_DEBUG option into several levels to get better control over
debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3724
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 14 Sep 2002 23:04:52 +0000 (23:04 +0000)]
Remove unnecessary include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3723
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 14 Sep 2002 22:18:37 +0000 (22:18 +0000)]
Break RA_DEBUG option into several levels to get better output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3722
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Hildenbrandt [Sat, 14 Sep 2002 21:36:24 +0000 (21:36 +0000)]
Fixed problem with printing struct definitions in the correct order.
This allows for the Regression/Transforms/ScalarReplacement/scalarize.c to run correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3721
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 Sep 2002 19:52:49 +0000 (19:52 +0000)]
Fix to work correctly under linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3720
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 14 Sep 2002 19:33:16 +0000 (19:33 +0000)]
Fix bug I introduced
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3719
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 14 Sep 2002 11:57:17 +0000 (11:57 +0000)]
Moving to lib/CodeGen/RegAlloc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3718
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sat, 14 Sep 2002 10:42:59 +0000 (10:42 +0000)]
Add support for MacOS and (hopefully) other BSD derivatives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3717
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sat, 14 Sep 2002 03:04:02 +0000 (03:04 +0000)]
Function.h is unnecessary when Module.h is included.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3716
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sat, 14 Sep 2002 02:18:57 +0000 (02:18 +0000)]
On the quest of eliminating unnecessary includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3715
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sat, 14 Sep 2002 02:07:43 +0000 (02:07 +0000)]
Again, including Module makes Function unnecessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3714
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sat, 14 Sep 2002 02:06:53 +0000 (02:06 +0000)]
Following Chris's advice, I'm pruning some unnecessary .h includes that I'm
noticing. Since Module includes Function, and eventually, BasicBlock and
GlobalVariable, the last three are unnecessary to be included directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3713
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 23:30:42 +0000 (23:30 +0000)]
* Fix a bug that was causing lli to misrun:
test/Regression/Transforms/DecomposeMultiDimRefs/mixedindices.c
* Eliminate unneccesary #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3712
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 22:28:50 +0000 (22:28 +0000)]
Change the MallocInst & AllocaInst ctors to take the allocated type, not the
pointer type returned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3711
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 22:28:45 +0000 (22:28 +0000)]
Change the MallocInst & AllocaInst ctors to take the allocated type, not the
pointer type returned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3710
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 22:25:00 +0000 (22:25 +0000)]
include/llvm/DataTypes.h includes this #define so we don't need it anymore
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3709
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 22:24:57 +0000 (22:24 +0000)]
include/llvm/DataTypes.h includes this #define so we don't need it anymore
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3708
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 22:20:19 +0000 (22:20 +0000)]
Export symbols for linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3707
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 22:18:26 +0000 (22:18 +0000)]
Tighten up sanity checking
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3706
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 22:14:47 +0000 (22:14 +0000)]
Factor platform specific makefile directives out into their own makefile
fragments. This is gross, but having tons of confusing conditionals all
throughout the build system seems worst.
Credits got to Casey Carter for the idea.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3705
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 21:51:25 +0000 (21:51 +0000)]
Try to work well on multiple platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3704
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 13 Sep 2002 21:41:07 +0000 (21:41 +0000)]
Link .so files correctly on either linux or solaris
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3703
91177308-0d34-0410-b5e6-
96231b3b80d8
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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