Chris Lattner
36b877ae7f
Make this work better for constants that aren't necessarily in ANY graph, such as null pointers
...
llvm-svn: 8628
2003-09-20 16:12:57 +00:00
Chris Lattner
22533bc900
update dox
...
llvm-svn: 8626
2003-09-20 14:43:16 +00:00
Chris Lattner
5dac64f629
Rename Function::getEntryNode -> getEntryBlock
...
llvm-svn: 8625
2003-09-20 14:39:18 +00:00
Chris Lattner
21f750fabb
Rename getEntryNode -> getEntryBlock()
...
llvm-svn: 8624
2003-09-20 14:36:49 +00:00
Chris Lattner
4413e4362c
Minor cleanups, no functional changes
...
Rename Function::getEntryNode -> getEntryBlock
llvm-svn: 8623
2003-09-20 14:36:23 +00:00
Chris Lattner
da5b9376a2
Cleanup header file
...
llvm-svn: 8622
2003-09-20 14:35:38 +00:00
Chris Lattner
25963c85e3
Now that the TCE pass passes all of the tests, add it to GCCAS
...
llvm-svn: 8621
2003-09-20 05:26:22 +00:00
Chris Lattner
b6ac976247
Fix a really obvious huge gaping bug, add a comment
...
llvm-svn: 8620
2003-09-20 05:24:00 +00:00
Chris Lattner
0016085602
Expose the TCE pass
...
llvm-svn: 8619
2003-09-20 05:14:13 +00:00
Chris Lattner
2e9014cb1b
New transformation: tail recursion elimination
...
llvm-svn: 8618
2003-09-20 05:03:31 +00:00
Chris Lattner
50af7516b0
New testcase
...
llvm-svn: 8617
2003-09-20 05:02:54 +00:00
Chris Lattner
7e5ca14433
Fix header, fix broken friend decl
...
llvm-svn: 8616
2003-09-20 03:34:44 +00:00
Chris Lattner
092af3f36e
Fix bug: BasicAA/2003-09-19-LocalArgument.ll
...
llvm-svn: 8615
2003-09-20 03:08:47 +00:00
Chris Lattner
066ccf8848
New testcase that basicaa should be able to handle
...
llvm-svn: 8614
2003-09-20 03:08:21 +00:00
Chris Lattner
825937df8e
Fix file header
...
llvm-svn: 8613
2003-09-20 02:42:54 +00:00
Chris Lattner
0942bc63a3
Unsquishify
...
llvm-svn: 8612
2003-09-20 01:23:29 +00:00
Chris Lattner
b1fcb2b644
Keep track of the number of typed/untyped memory accesses theyre are in the program
...
VS: ----------------------------------------------------------------------
llvm-svn: 8611
2003-09-20 01:20:46 +00:00
John Criswell
17c3d4dfc1
New header file for gccld.
...
llvm-svn: 8610
2003-09-19 20:24:40 +00:00
John Criswell
b533bde540
Removed linking functionality from gccld.cpp and moved it to linker.cpp.
...
Renamed functions that were all lower-case.
Moved functions from util.cpp into linker.cpp or gccld.cpp.
Removed util.h and created gccld.h.
Refactored the linker functionality in linker.cpp so that it is easier to
follow, easier to modify, and it's library/object file search behavior is
easier to understand and document.
Added code to include library paths when doing native linking, but this
causes problems and is currently #ifdef'd out.
llvm-svn: 8609
2003-09-19 20:24:23 +00:00
Chris Lattner
3284ed725a
Reject "llvm." as a function name
...
llvm-svn: 8608
2003-09-19 19:31:41 +00:00
Chris Lattner
2da29177ba
Implement InstCombine/and.ll:test(15|16)
...
llvm-svn: 8607
2003-09-19 19:05:02 +00:00
Chris Lattner
d441d407cf
Two new tests for shifts followed by ands
...
llvm-svn: 8606
2003-09-19 19:04:43 +00:00
Chris Lattner
ba1cb38c06
pull a large nested conditional out into its own function
...
llvm-svn: 8605
2003-09-19 17:17:26 +00:00
Chris Lattner
dbba189f15
Implement InstCombine/add.ll:test(15|16)
...
llvm-svn: 8604
2003-09-19 15:35:42 +00:00
Chris Lattner
def041c533
New testcases
...
llvm-svn: 8603
2003-09-19 15:33:46 +00:00
Chris Lattner
bf38b842ba
a bitfield stress test to exercise various parts of the front-end.
...
llvm-svn: 8602
2003-09-19 05:22:10 +00:00
John Criswell
a8391af2c4
Changed the empty rule for .h files. The rule needs an empty command so that
...
Make actually uses it to "regenerate" header files that have been
moved/removed.
llvm-svn: 8600
2003-09-18 18:37:08 +00:00
Brian Gaeke
7af0df0015
Fix a typo in Sparc.cpp.
...
Update names of some pass creator fns in addPassesToEmitAssembly().
FunctionInfo is gone.
llvm-svn: 8599
2003-09-18 17:37:46 +00:00
Brian Gaeke
310b1d899a
Rename the pass creator fn to mimic the other creator fn names.
...
llvm-svn: 8598
2003-09-18 17:37:35 +00:00
Brian Gaeke
24e706c1ac
Fix (and properly doxygenify) some comments. Incorporate
...
functionality of FunctionInfo pass as doFinalization method.
Rename pass to match names of other passes like it.
Rename the pass creator fn to mimic the other creator fn names.
Include StringExtras for utostr().
Make symbol prologue/epilogue stuff redundant with
EmitBytecodeToAssembly, in preparation for refactoring.
llvm-svn: 8597
2003-09-18 17:37:25 +00:00
Brian Gaeke
b4aa604093
Make the symbol prologue/epilogue stuff redundant with MappingInfo, in
...
preparation for refactoring.
Rename the pass creator fn to mimic the other creator fn names.
llvm-svn: 8596
2003-09-18 17:37:14 +00:00
John Criswell
8ecc30249f
Refactored gccld into three C++ source files.
...
Added code ignore bytecode link failures when generating native code.
Moved native code and bytecode generation out of the main() function.
llvm-svn: 8595
2003-09-18 16:22:26 +00:00
Misha Brukman
3d72faddeb
Minimal implementation of the abstract ModuleProvider interface.
...
llvm-svn: 8594
2003-09-18 16:17:06 +00:00
Misha Brukman
1d33258b99
Abstract interface for module providers, e.g. streaming bytecode reader.
...
llvm-svn: 8593
2003-09-18 16:16:32 +00:00
Chris Lattner
651524a228
Document new column
...
llvm-svn: 8589
2003-09-17 22:02:49 +00:00
Misha Brukman
02fe6b7683
Fixed spelling.
...
llvm-svn: 8588
2003-09-17 21:34:23 +00:00
John Criswell
a2748c267b
Replaced the call to strdup() with a new operator followed by a strcpy().
...
This should prevent calls to the new oerator and malloc.
llvm-svn: 8587
2003-09-17 19:14:41 +00:00
John Criswell
0217b1beb3
Added the use of the const keyword.
...
Have gccld find the path to llc and gcc instead of having the library do it.
llvm-svn: 8586
2003-09-17 19:04:22 +00:00
John Criswell
74c89470d3
In ExecWait(), made the child process exit if it can't execve() the new
...
program.
Added the use of const (which compiles and is hopefully correct).
Added comments.
llvm-svn: 8585
2003-09-17 19:02:49 +00:00
Misha Brukman
a3fc5d9a35
Added sections about debugging mis-compilations and incorrect code generation.
...
llvm-svn: 8584
2003-09-17 18:51:47 +00:00
Misha Brukman
435404818b
Do not put DEBUG() guard around error condition; this must *always* be printed.
...
llvm-svn: 8583
2003-09-17 18:21:48 +00:00
Misha Brukman
041bded97e
Fix the flag on `rm' to properly do a recursive deletion.
...
llvm-svn: 8582
2003-09-17 18:20:35 +00:00
Chris Lattner
a28e1f281a
Change FunctionInfo from being an annotation put on Functions to be
...
something which is mapped from functions.
llvm-svn: 8580
2003-09-17 17:26:22 +00:00
John Criswell
f22d845bd7
Removed the use of the environ variable and instead use the environment array
...
passed into main(). This may (or may not) be more portable, but it looks
nicer.
Added functions to copy the environment array and modify the copy, thus
preserving the environment.
Switched from using system() to using ExecWait().
The code now removes the assembly file generated when using the -native option.
Fixed the remove_env() function: The previous revision truncated the
environment variable list. This version just zaps the variable as intended.
llvm-svn: 8579
2003-09-17 15:20:51 +00:00
John Criswell
f13ec35fe1
Added the ExecWait() function.
...
llvm-svn: 8578
2003-09-17 15:14:25 +00:00
John Criswell
9a99ed1992
Added the ExecWait() function. It executes a program with the specified
...
arguments and environment.
Perhaps it should be merged with the RunProgramWithTimeout function, but I'd
want to allow it to inherit the parent process's stdin and stdout.
I'll save that for a rainy day...
llvm-svn: 8577
2003-09-17 15:13:59 +00:00
Chris Lattner
457a95bdc8
fix misspelling analyse -> analyze
...
llvm-svn: 8576
2003-09-17 15:00:45 +00:00
John Criswell
9bcdda3588
Renamed the link page to llvmlink.html
...
Added initial pages for the extract and llvm-link commands.
Reworded the description of the -load option for analyze to hopefully make it
more clear.
llvm-svn: 8575
2003-09-17 14:11:24 +00:00
Chris Lattner
2ae6b11415
new old testcase
...
llvm-svn: 8574
2003-09-17 05:00:56 +00:00
Chris Lattner
8552e7c6df
Use new method
...
llvm-svn: 8573
2003-09-17 05:00:07 +00:00