1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
Commit Graph

7459 Commits

Author SHA1 Message Date
Misha Brukman
6ad21447f8 A lot of changes were suggested by Chris.
ExecveHandler.c:
* Use "" instead of <> for LLVM include files
* Use raw I/O, we don't need buffering
* Set errno = 0 before using open()
* strlen() doesn't count NULL terminator in its size
* Use memcmp() instead of strcmp()
* Return result of the real execve(), not 0
* Search for path to bytecode file if not absolute/relative path

SysUtils.c:
* Convert all comments to C-style
* Stop using `bool', use `unsigned' instead

SysUtils.h:
* Stop using `bool', use `unsigned' instead
* Updated comment to FindExecutable()

README.txt:
* Describe the goal of LLEE and an application

llvm-svn: 7911
2003-08-15 23:31:16 +00:00
Chris Lattner
916993f384 new testcase narrowed down from xboard
llvm-svn: 7910
2003-08-15 23:15:37 +00:00
Chris Lattner
aa7c7ca541 New testcase identified by misha, distilled from the 'ls' program
llvm-svn: 7909
2003-08-15 22:36:55 +00:00
Brian Gaeke
797d0f0aeb Fix typo in comment
llvm-svn: 7906
2003-08-15 21:19:25 +00:00
Brian Gaeke
294589d7f6 lib/Support/CommandLine.cpp:
Many changes suggested by Chris. It's okay, I'll recover from the emotional
damage...maybe someday. :-)

Collapse ParseCStringVector into ParseStringVector.  Comment it.
Make it take a const input.
Use std::string::npos instead of -1 (what a mouthful!)
Make ParseEnvironmentOptions take const inputs.
Check its args at the very beginning.
Strdup all the contents of newArgv and free them all at the end.

include/Support/CommandLine.h:
Constify progName and envVar arguments to ParseEnvironmentOptions().

llvm-svn: 7905
2003-08-15 21:05:57 +00:00
Misha Brukman
52b0a71cee hash_map and hash_set:
* Define HASH_NAMESPACE to `std' in the case of pre-3.0 GCC compilers
* Add comments to clarify the intent of all the #ifdef madness
* Add VIM directive to highlight files as C++

llvm-svn: 7903
2003-08-15 20:01:10 +00:00
Chris Lattner
aee049613e Remove extraneous ;'s, no functional changes
llvm-svn: 7902
2003-08-15 20:00:47 +00:00
Misha Brukman
cd6338ce78 * Match the column names in the report
* Describe and clarify meanings of columns
* Fix up HTML: close <a> and <li> tags

llvm-svn: 7900
2003-08-15 19:31:04 +00:00
Misha Brukman
cddc1c4f9c Now that the JIT memory manager allocates as many bytes as necessary rather than
rounding up to a page, we need to request (num instrs * 4) bytes. However, I
think that 64 bytes is overkill for the stub function.

llvm-svn: 7888
2003-08-15 18:03:06 +00:00
Misha Brukman
2416155d3d Reordered includes to be consistent with the LLVM style.
llvm-svn: 7887
2003-08-15 17:52:02 +00:00
Chris Lattner
c705a7a6f3 Document new column, remove X86 specific stuff
llvm-svn: 7886
2003-08-15 16:29:06 +00:00
Misha Brukman
16cd96bf4a Fix register and parameter numbers in saving double FP registers.
llvm-svn: 7884
2003-08-15 16:15:28 +00:00
Chris Lattner
9e8f3b6a49 Add llvm tools to path of LLVMGCC
llvm-svn: 7882
2003-08-15 15:20:52 +00:00
Chris Lattner
09d58b8157 Remove extraneous #include
llvm-svn: 7881
2003-08-15 05:21:30 +00:00
Chris Lattner
b2ff3ba7df Remove uses of the NonCopyable class, to make the doxygen output look better
llvm-svn: 7880
2003-08-15 05:20:06 +00:00
Chris Lattner
899f2381f1 Revert my last (accidental) checkin, but keep the typeo fix
llvm-svn: 7879
2003-08-15 04:56:47 +00:00
Chris Lattner
0427dd4f4f rename selection library to selectiondag
llvm-svn: 7878
2003-08-15 04:56:09 +00:00
Chris Lattner
d5ff87cb9b rename selection directory and library to SelectionDAG
llvm-svn: 7877
2003-08-15 04:55:22 +00:00
Chris Lattner
50a2906989 build the new runtime directory
llvm-svn: 7876
2003-08-15 04:53:45 +00:00
Chris Lattner
d76432ee48 Add a bunch of new node types, etc
llvm-svn: 7875
2003-08-15 04:53:16 +00:00
Chris Lattner
d929db2450 Add support for basic blocks, unary/binary unspecs, conditional branches, ...
llvm-svn: 7874
2003-08-15 04:52:51 +00:00
Chris Lattner
fb986e7b44 Adjust to new API, add expandCall stub
llvm-svn: 7873
2003-08-15 04:51:59 +00:00
Chris Lattner
8d79ae7383 Add support for unconditional branches and for emitting JE instructions
llvm-svn: 7872
2003-08-15 04:50:49 +00:00
Chris Lattner
894af9f898 Ignore dummy register classes
llvm-svn: 7871
2003-08-15 04:36:19 +00:00
Chris Lattner
250f26f066 Add a bunch of new node types, including a new Void dummy register class
llvm-svn: 7870
2003-08-15 04:35:14 +00:00
Chris Lattner
58c8999bca Add support for nodes with void arguments, like chain nodes
llvm-svn: 7869
2003-08-15 04:28:04 +00:00
Chris Lattner
40351fc323 Make sure to create the directory before we cram a .bc file into it
llvm-svn: 7864
2003-08-15 03:02:52 +00:00
Chris Lattner
6393ff6e14 Adjust level, build things in parallel
llvm-svn: 7863
2003-08-15 02:38:18 +00:00
Chris Lattner
4312264c54 initial checkin, adjust LEVEL
llvm-svn: 7862
2003-08-15 02:38:06 +00:00
Chris Lattner
4f9c81206b Initial checkin of README
llvm-svn: 7861
2003-08-15 02:35:13 +00:00
Chris Lattner
78b2442ec4 Initial checkin of runtime/GCCLibraries makefile
llvm-svn: 7860
2003-08-15 02:33:49 +00:00
Chris Lattner
7845332a36 Update readme
llvm-svn: 7859
2003-08-15 02:31:23 +00:00
Chris Lattner
8f04dc7f67 Convert libraries into the BYTECODE_LIBRARY style
llvm-svn: 7858
2003-08-15 02:20:32 +00:00
Chris Lattner
6eb7e540eb Disable this library for now
llvm-svn: 7857
2003-08-15 02:19:43 +00:00
Chris Lattner
608e645f45 Some of this gets hoisted up to Makefile.common
llvm-svn: 7856
2003-08-15 02:19:08 +00:00
Chris Lattner
7b45e00414 Implement BYTECODE_LIBRARY support
llvm-svn: 7855
2003-08-15 02:18:35 +00:00
Misha Brukman
a45f4930ed * Must save FP registers when calling CompilationCallback(), because FP
registers are global, are NOT windowed, and hence can be clobbered!
* Removed unused register shorthand notations
* Fixed and cleaned up comments in inline assembly

llvm-svn: 7853
2003-08-15 00:26:50 +00:00
Chris Lattner
6b9c20230f Remove extraneous cl:: namespace qualifiers
llvm-svn: 7852
2003-08-14 22:04:41 +00:00
Brian Gaeke
1fea9addaa Add support for reading command line arguments from an environment variable.
llvm-svn: 7851
2003-08-14 22:00:59 +00:00
Chris Lattner
1b6f820a48 Simplifications to Makefile.common, remove support for Purify since it was
broken by libtoolification anyways, and noone can use it because purify doesn't
support the 64-bit sparc compilers even if it weren't broken!

llvm-svn: 7850
2003-08-14 21:10:25 +00:00
Chris Lattner
42b2865d4e Disable this support stuff, it doesn't work under linux anyway
llvm-svn: 7849
2003-08-14 20:55:38 +00:00
Vikram S. Adve
39ff8beb24 Improvement to the previous fix: branch following a delay slot of
another delayed instr. would cause the later sanity-check (assertion)
in PhyRegAlloc.cpp to fail, even though there is really no error.

llvm-svn: 7848
2003-08-14 20:45:56 +00:00
Chris Lattner
01af3eca82 Stop annoying warnings about mismatched types with the argument of a free
implement more constant expressions so that 176.gcc compiles with the CBE

llvm-svn: 7847
2003-08-14 19:19:53 +00:00
Chris Lattner
f3d5d00f51 I just moved papi to a new directory
llvm-svn: 7846
2003-08-14 18:59:53 +00:00
Chris Lattner
25f5c7bbb3 Implement a _REAL_ memory manager for the code generated by the JIT. This
speeds up program execution by 15% pretty consistently for large programs

llvm-svn: 7845
2003-08-14 18:35:27 +00:00
Misha Brukman
283afdd02b Using std::remove' requires cstdio.h'.
llvm-svn: 7843
2003-08-14 16:05:35 +00:00
Misha Brukman
cdb5fe46cd * Enable SPEC testing in the `configure' script command line
* Switched from using `m||' to `m##' because VIM mis-highlights `m||'
* Simplified the regex getting the file version number

llvm-svn: 7842
2003-08-14 15:26:28 +00:00
Misha Brukman
fd3dc24fc4 Since we now have TableGen editing modes for VIM and (X)Emacs, we no longer need
to mark TableGen description files with "C++ mode".

llvm-svn: 7841
2003-08-14 15:16:28 +00:00
Chris Lattner
c8890366ee Restore 'nice name' to pass
llvm-svn: 7840
2003-08-14 14:43:24 +00:00
Brian Gaeke
4651096037 Factory methods for function passes now return type FunctionPass *.
llvm-svn: 7839
2003-08-14 06:09:32 +00:00