Chris Lattner [Tue, 17 Sep 2002 20:40:22 +0000 (20:40 +0000)]
Enable correct support for dynamic loading on Linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3779
91177308-0d34-0410-b5e6-
96231b3b80d8
Anand Shukla [Tue, 17 Sep 2002 20:24:46 +0000 (20:24 +0000)]
Removed debug info printing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3778
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 17:23:09 +0000 (17:23 +0000)]
Add support for GCC 2.96
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3777
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 17:18:12 +0000 (17:18 +0000)]
Remove extra #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3776
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 17 Sep 2002 16:47:06 +0000 (16:47 +0000)]
Fix typeo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3775
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Tue, 17 Sep 2002 11:50:38 +0000 (11:50 +0000)]
Don't print global variable definitions twice! Sun's pathetic compiler
never complained about this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3774
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Tue, 17 Sep 2002 11:09:59 +0000 (11:09 +0000)]
Fix typo in comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3773
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Tue, 17 Sep 2002 01:17:57 +0000 (01:17 +0000)]
Remove specification of argument default from cpp file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3772
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:37:56 +0000 (22:37 +0000)]
Remove warning that is no longer applicable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3771
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:36:42 +0000 (22:36 +0000)]
Comment line of the makefile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3770
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:34:56 +0000 (22:34 +0000)]
Handle whitespace in LIBRARYNAME gracefully
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3769
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:30:20 +0000 (22:30 +0000)]
Fix FunctionInlining pass assertion failure:
ilist:104: failed assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3768
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 22:08:07 +0000 (22:08 +0000)]
Fix typeo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3767
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 20:44:19 +0000 (20:44 +0000)]
Fix compile problem on linux. Noone should ever #include <inttypes.h>
directly. Instead, include Support/DataTypes.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3766
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 19:09:11 +0000 (19:09 +0000)]
Run the cee pass tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3765
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 19:08:36 +0000 (19:08 +0000)]
Checking testcases for cee pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3764
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 18:32:33 +0000 (18:32 +0000)]
Fix: test/Regression/LLC/badidx.c problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3763
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 18:28:27 +0000 (18:28 +0000)]
Remove duplicate sparc entry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3762
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 18:13:12 +0000 (18:13 +0000)]
Use .o files instead of .a files for several cases (that don't actually
need them) until other Makefiles can be updated to build archives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3761
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 16 Sep 2002 18:09:42 +0000 (18:09 +0000)]
Print information about files that were removed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3760
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 18:08:17 +0000 (18:08 +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@3759
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Hildenbrandt [Mon, 16 Sep 2002 17:56:48 +0000 (17:56 +0000)]
Moved these files to the utils directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3758
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:46:17 +0000 (16:46 +0000)]
Add ilist_iterator constructor from a node reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3756
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:40:07 +0000 (16:40 +0000)]
Extract most of the transformation into an externally accessible
function -- DecomposeArrayRef(GetElementPtrInst* GEP) -- that can
be invoked on a single instruction at a time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3755
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:36:13 +0000 (16:36 +0000)]
Change several entries to use the .o instead of .a to expose pass options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3754
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:35:34 +0000 (16:35 +0000)]
Make all registered optimization passes available to llc.
Eliminate duplicate tracing options and use those defined by the trace passes.
Making the tracing step a module pass that runs before any llc-specific
passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3753
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:09:43 +0000 (16:09 +0000)]
Add support for optimization passes that use a TargetMachine object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3752
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:07:19 +0000 (16:07 +0000)]
Allow transformation DecomposeArrayRef(GetElementPtrInst* GEP) to
be invoked on a single instruction at a time, for use in other passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3751
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:06:12 +0000 (16:06 +0000)]
Add routines to update or erase operands (and to do so without external
assumptions about which operand number stores what operand).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3750
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:01:41 +0000 (16:01 +0000)]
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3749
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 16:01:39 +0000 (16:01 +0000)]
Add support for passes that use a TargetMachine object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3748
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:58:54 +0000 (15:58 +0000)]
Add method MachineOperand::hasAllocatedReg().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3747
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:58:34 +0000 (15:58 +0000)]
Add a version of ChooseRegOrImmed to handle numerical constants
introduced by InstrSelection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3746
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:57:43 +0000 (15:57 +0000)]
Add method adjustAlignment so that stack slot alignments can be computed
in a target-dependent manner (because of the dang OFFSET in Sparc v9).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3745
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 16 Sep 2002 15:56:45 +0000 (15:56 +0000)]
Use ulong instead of uint for size expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3744
91177308-0d34-0410-b5e6-
96231b3b80d8
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