Chris Lattner [Thu, 18 Oct 2001 21:50:39 +0000 (21:50 +0000)]
Add new testcase from C source
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@906
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:33:21 +0000 (20:33 +0000)]
Remove unneccesary retcode var
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@905
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:32:07 +0000 (20:32 +0000)]
Refactor Assembly/Bytecode writer code into Assembly & bytecode libraries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@904
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:31:54 +0000 (20:31 +0000)]
Refactor code into Assembly & bytecode libraries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@903
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:31:42 +0000 (20:31 +0000)]
initial checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@902
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:19:09 +0000 (20:19 +0000)]
move llvm/Transforms/Pass.h to the top level llvm/Pass.h file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@901
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:06:45 +0000 (20:06 +0000)]
Expose more xforms to the opt utility
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@900
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:06:31 +0000 (20:06 +0000)]
Bytecode writer is yanked out of Module printer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@899
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:06:03 +0000 (20:06 +0000)]
Refix bugs, stop using deprecated strstream header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@898
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:05:37 +0000 (20:05 +0000)]
Initial checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@897
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:05:30 +0000 (20:05 +0000)]
Initial Checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@896
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:05:07 +0000 (20:05 +0000)]
Pull bytecode writing out of Module writer pass. Prepare to move to seperate file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@895
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 20:04:40 +0000 (20:04 +0000)]
Add operator[] accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@894
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 18:20:20 +0000 (18:20 +0000)]
Move malloc/free lowering after tracing until lli supports
calls to external malloc/free functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@893
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 18:16:11 +0000 (18:16 +0000)]
Only print values live at BB or method exit, and insert loads at each
BB exit to read and print values stored in that BB. Note that only
these stored values are live at method exit!. Also, print messages at
method entry and exit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@892
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 18:13:49 +0000 (18:13 +0000)]
Add option to print per module instead of per method, so that
global declarations are also printed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@891
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 17:07:22 +0000 (17:07 +0000)]
Only output code if file open is successful
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@890
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 13:51:20 +0000 (13:51 +0000)]
Trace code should always be exported just before code generation;
this is not a debugging option. But we can export it as assembly
instead of bytecode if -debugtrace is specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@889
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 13:49:22 +0000 (13:49 +0000)]
Handle multiple exit blocks correctly.
Restore string variable cache.
Resurrect code to use formatted printing instead of PrintVal
but leave it turned off for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@888
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 13:47:49 +0000 (13:47 +0000)]
Add option to print as bytecode instead of assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@887
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 06:13:08 +0000 (06:13 +0000)]
Use the standard header not the old one
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@886
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 06:11:23 +0000 (06:11 +0000)]
Dang, we were losing the Constant bit on globals. Fix this
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@885
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 06:05:15 +0000 (06:05 +0000)]
Add support to insert trace code as an "optimization"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@884
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 06:03:05 +0000 (06:03 +0000)]
Convert to be compatible with lli.
Need to eliminate duplicate \n entries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@883
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 05:28:44 +0000 (05:28 +0000)]
Convert to new simpler, more powerful pass structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@882
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 05:28:08 +0000 (05:28 +0000)]
Massive hacks to try to fix subtle logic bugs. I think it's all working now,
at least what used to. I should disable method exit code completely because
it's broken (doesn't insert just post dominating values)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@881
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 05:27:33 +0000 (05:27 +0000)]
Convert to new simpler pass itf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@880
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 05:22:27 +0000 (05:22 +0000)]
Convert to new simpler Pass structure
Componentize better
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@879
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 05:22:15 +0000 (05:22 +0000)]
Convert to new simpler Pass structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@878
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 05:21:56 +0000 (05:21 +0000)]
Convert to new simpler pass structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@877
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 05:20:53 +0000 (05:20 +0000)]
Simplify Pass by removing silly subclasses
Fix an iterator problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@876
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 01:49:48 +0000 (01:49 +0000)]
Fix minor bug, update comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@875
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 01:48:09 +0000 (01:48 +0000)]
Change Sources specifier to ExtraSources
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@874
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 01:32:34 +0000 (01:32 +0000)]
Convert optimizations to the pass infrastructure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@873
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 01:32:17 +0000 (01:32 +0000)]
Pass's return true if they make a modification, not if they fail
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@872
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 01:31:58 +0000 (01:31 +0000)]
Convert optimizations to use the Pass infrastructure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@871
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 01:31:43 +0000 (01:31 +0000)]
* Passes return true if they change something, not if they fail
* Convert opt to use Pass's and convert optimizations to pass structure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@870
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 18 Oct 2001 01:31:22 +0000 (01:31 +0000)]
Passes return true if they change something, not if they fail
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@869
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 00:26:20 +0000 (00:26 +0000)]
1. Move most of the constant-fixup code into machine-independent file
InstrSelectionSupport.cpp. It now happens in a bottom-up pass on
each BURG tree after the original top-down selection pass on the tree.
2. Handle global values as constants (viz., constant addresses).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@868
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 00:23:32 +0000 (00:23 +0000)]
Reverse previous change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@867
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 00:22:14 +0000 (00:22 +0000)]
Generate assembly code for testcodegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@866
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 00:22:02 +0000 (00:22 +0000)]
Added several cases where a constant must be forwarded into a use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@865
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 00:03:20 +0000 (00:03 +0000)]
Sparc-specific code shared between local files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@864
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 00:02:32 +0000 (00:02 +0000)]
Moved implementation of class UltraSparcInstrInfo to SparcInstrInfo.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@863
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 00:02:06 +0000 (00:02 +0000)]
Added virtual function to generate an instruction sequence to
load a constant into a register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@862
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Thu, 18 Oct 2001 00:01:48 +0000 (00:01 +0000)]
Moved implementation of class UltraSparcInstrInfo here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@861
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 17 Oct 2001 23:59:09 +0000 (23:59 +0000)]
1. Add a bottom-up pass on BURG trees that is used to fix constant operands.
Needs to be bottom up because constant values may be forward-substituted
to their uses (i.e., into the parent in the BURG tree).
2. Move most of the constant-fixup code into machine-indepedent file
InstrSelectionSupport.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@860
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 17 Oct 2001 23:57:50 +0000 (23:57 +0000)]
1. Add a bottom-up pass on BURG trees that is used to fix constant operands.
Needs to be bottom up because constant values may be forward-substituted
to their uses (i.e., into the parent in the BURG tree).
2. Move most of the constant-fixup code into machine-indepedent file
InstrSelectionSupport.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@859
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 17 Oct 2001 23:55:16 +0000 (23:55 +0000)]
Separate VM instruction that generates the instructions that compute a value
from the value itself (the one causing an edge) because the latter may be
a temporary used within the instruction sequence for the VM instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@858
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 17 Oct 2001 23:53:16 +0000 (23:53 +0000)]
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@857
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 17 Oct 2001 22:39:50 +0000 (22:39 +0000)]
Remove extra assert in dyn_cast_or_null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@856
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 17 Oct 2001 20:14:34 +0000 (20:14 +0000)]
Disable codgen test for calltest.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@855
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 17 Oct 2001 12:34:26 +0000 (12:34 +0000)]
Only list automatically generated .cpp files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@854
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Wed, 17 Oct 2001 12:33:55 +0000 (12:33 +0000)]
Allow only extra Source files to be listed in a local Makefile.
Needed for automatically generated .cpp files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@853
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 16 Oct 2001 19:54:17 +0000 (19:54 +0000)]
Simplify some code
Remove Method special case
Fix bug exposed by this testcase:
implementation
void "PtrFunc2"()
begin
bb1:
%reg = add int(int)* null, null
add int (int)* %reg, null
ret void
end
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@852
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Tue, 16 Oct 2001 16:36:34 +0000 (16:36 +0000)]
added initializing regNum to -1 in both constructors of MachineOperand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@851
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Tue, 16 Oct 2001 16:34:44 +0000 (16:34 +0000)]
changed debugg message printing - no change to useful code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@850
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Tue, 16 Oct 2001 01:33:55 +0000 (01:33 +0000)]
No major change - commented some debug code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@849
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Tue, 16 Oct 2001 01:25:05 +0000 (01:25 +0000)]
No major change - added some comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@848
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Tue, 16 Oct 2001 01:23:19 +0000 (01:23 +0000)]
Added support for caller saving
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@847
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 20:08:19 +0000 (20:08 +0000)]
Add rule to build executables
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@846
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 19:34:17 +0000 (19:34 +0000)]
Emit the proper .type declarations to tell the debugger what a function is
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@845
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 19:21:31 +0000 (19:21 +0000)]
Handle abnormal jmpl syntax correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@844
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 19:18:26 +0000 (19:18 +0000)]
Implement ulong & long support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@843
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 19:18:01 +0000 (19:18 +0000)]
Make main do some simple work without requiring main arguments to be happy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@842
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 18:30:06 +0000 (18:30 +0000)]
Print Debug Code to stderr instead of stdout so that it doesn't mess up the assembly output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@841
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 18:15:27 +0000 (18:15 +0000)]
Output to cerr rather than cout so that debug info doesn't mess up assembly generation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@840
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 17:55:35 +0000 (17:55 +0000)]
Compile with v9 extensions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@839
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 17:47:13 +0000 (17:47 +0000)]
ConcretePass should not be a templated class!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@838
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 17:41:24 +0000 (17:41 +0000)]
Minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@837
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 17:31:51 +0000 (17:31 +0000)]
Add new Pass infrastructure and some examples
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@836
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 17:30:47 +0000 (17:30 +0000)]
Use the new Pass infrastructure to clean up llc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@835
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 17:30:18 +0000 (17:30 +0000)]
Convert to use Pass infrastructure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@834
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 17:30:06 +0000 (17:30 +0000)]
File moved to: llvm/Transforms/HoistPHIConstants.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@833
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 15 Oct 2001 16:58:50 +0000 (16:58 +0000)]
--added support for implicit operands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@832
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 15 Oct 2001 16:26:38 +0000 (16:26 +0000)]
updated suggesting/coloring of call & return args & implicit operands.
Changed added instr to a deque (from a vector)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@831
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 15 Oct 2001 16:25:28 +0000 (16:25 +0000)]
updated suggesting/coloring of call & return args & implicit operands
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@830
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 15 Oct 2001 16:23:48 +0000 (16:23 +0000)]
--changed Sugesting colors for method calls/return values etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@829
91177308-0d34-0410-b5e6-
96231b3b80d8
Ruchira Sasanka [Mon, 15 Oct 2001 16:22:44 +0000 (16:22 +0000)]
fixed a coalscing bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@828
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 15:55:15 +0000 (15:55 +0000)]
Add library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@827
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 15:54:43 +0000 (15:54 +0000)]
Be const correct
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@826
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 13:47:13 +0000 (13:47 +0000)]
Minor code cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@825
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 13:41:37 +0000 (13:41 +0000)]
Add cast_or_null & dyn_cast_or_null
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@824
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 13:25:40 +0000 (13:25 +0000)]
Implement initializers for structs and pointers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@823
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 13:21:42 +0000 (13:21 +0000)]
Rename ConstPoolPointerReference to ConstPoolPointerRef - My fingers get tired typing that much
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@822
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 13:13:32 +0000 (13:13 +0000)]
Improve error messages on assertion failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@821
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 13:07:21 +0000 (13:07 +0000)]
* getExitNode() doesn't exist in method anymore
* Make local functions static
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@820
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 15 Oct 2001 12:01:05 +0000 (12:01 +0000)]
Added Instrumentation subdirectory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@819
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 05:51:48 +0000 (05:51 +0000)]
Implement global variables. Struct and Pointer initializers are not implemented yet though
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@818
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 03:12:52 +0000 (03:12 +0000)]
Implement linking of global variable constant references
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@817
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 03:11:58 +0000 (03:11 +0000)]
Add some more interesting test cases for the linker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@816
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 15 Oct 2001 00:05:03 +0000 (00:05 +0000)]
Oops, didn't handle hex values correctly. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@815
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Oct 2001 23:54:12 +0000 (23:54 +0000)]
* Fix the constpoolarray -> c"" printing routines to escape things properly
* Fix slightly broken sharing problems
* Do not escape the literal string passed in
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@814
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Oct 2001 23:34:12 +0000 (23:34 +0000)]
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@813
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Oct 2001 23:29:30 +0000 (23:29 +0000)]
Minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@812
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sun, 14 Oct 2001 23:29:28 +0000 (23:29 +0000)]
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@811
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Oct 2001 23:29:15 +0000 (23:29 +0000)]
Implement linker. It's 95% working now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@810
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Oct 2001 23:28:56 +0000 (23:28 +0000)]
More interesting testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@809
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Sun, 14 Oct 2001 23:28:43 +0000 (23:28 +0000)]
Forward operands into implicit uses as well as explicit ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@808
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 14 Oct 2001 23:28:41 +0000 (23:28 +0000)]
External methods shouldn't have argument lists
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@807
91177308-0d34-0410-b5e6-
96231b3b80d8