Misha Brukman [Tue, 9 Sep 2003 21:54:45 +0000 (21:54 +0000)]
Spell `occurrence' correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8425
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 9 Sep 2003 20:57:03 +0000 (20:57 +0000)]
Updated to find source files using VPATH. This makes writing build rules
much cleaner and easier.
Labeled .td as a suffix for tblgen files in Makefile.rules.
Modified build rules so that source files generated during the build are placed
in the build directory and not the source directory (and not in a Debug
directory). This makes the system cleaner and allows us to have a read-only
source tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8424
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 9 Sep 2003 20:52:17 +0000 (20:52 +0000)]
Removed Makefiles for directories that no longer exist.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8423
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Sep 2003 18:16:08 +0000 (18:16 +0000)]
Fix bug: InstCombine/2003-09-09-VolatileLoadElim.ll
Loads "mayWriteToMemory" if they are volatile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8422
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Sep 2003 18:15:45 +0000 (18:15 +0000)]
New testcase: do not DCE volatile loads!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8421
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Sep 2003 18:14:37 +0000 (18:14 +0000)]
Update testcases to be more modern
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8420
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 9 Sep 2003 16:58:41 +0000 (16:58 +0000)]
Reverting back to the previous revision.
We want to check for length 5 because we might get the "llvm." string as the
name. That string is in the LLVM namespace and should be checked as such.
We also don't have to worry about garbage data because (I believe) the string
class will return a valid value. So, the switch statement will work and we
don't have to worry about the code wandering into segfault land.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8419
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 9 Sep 2003 16:36:09 +0000 (16:36 +0000)]
Modified the check for intrinsic functions. All intrinsic functions have to
be at least 6 characters, since something must follow the "llvm." string in the
function name.
This seems to fix an assertion failure with the SingleSource tests, too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8418
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 9 Sep 2003 16:23:36 +0000 (16:23 +0000)]
* Simplify printConstantValueOnly by moving the tail padding stuff directly
into the struct case.
* Extend printConstantValueOnly to print .zero's if the initializer is zero
* Delete dead isConstantFunctionPointerRef function
* Emit the appropriate assembly for the various linkage types!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8417
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 9 Sep 2003 15:27:40 +0000 (15:27 +0000)]
Updated the log of changes (as required by the Burg copyright) to give an
overview of what we changed (which is probably all that the author was looking
for).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8416
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 9 Sep 2003 14:37:48 +0000 (14:37 +0000)]
Modified the code so that we exit() with a non-zero value instead of calling
abort() when we can't open the input filename. The abort() function generates
a core dump if possible and is meant for handling errors so grand that even the
program knows that debugging is necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8415
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Mon, 8 Sep 2003 21:25:35 +0000 (21:25 +0000)]
Added the .t implicit rule. You can now run an individual set of QMTests by
specifying "make <test>.t"
For example, make feature.t will run the feature tests.
Removed the QMTESTS variable since it is no longer used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8414
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 20:29:46 +0000 (20:29 +0000)]
Oops, look at the VOLATILE marker, not the opcode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8413
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 19:44:47 +0000 (19:44 +0000)]
Eliminate the unwind intrinsic, it is now an instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8412
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 19:44:26 +0000 (19:44 +0000)]
Eliminate support for the llvm.unwind intrinisic, using the Unwind instruction instead
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8411
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 19:43:46 +0000 (19:43 +0000)]
Fix bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8410
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 19:00:30 +0000 (19:00 +0000)]
Should invokify is always true
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8409
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:54:55 +0000 (18:54 +0000)]
Add support for the unwind instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8408
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:54:36 +0000 (18:54 +0000)]
Add support for unwind
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8407
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:54:16 +0000 (18:54 +0000)]
add support for the unwind inst
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8406
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:54:09 +0000 (18:54 +0000)]
Add the unwind instruction class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8405
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:54:01 +0000 (18:54 +0000)]
Add new unwind instruction. Happily there was a slot leftover from when the
'not' instruction was removed long ago
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8404
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:27:49 +0000 (18:27 +0000)]
Add info about volatile loads/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8403
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:20:29 +0000 (18:20 +0000)]
Parse volatile loads/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8402
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:20:14 +0000 (18:20 +0000)]
Read volatile loads/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8401
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:19:58 +0000 (18:19 +0000)]
Remove a bunch of unneeded stuph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8400
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:17:14 +0000 (18:17 +0000)]
Do not hoist volatile loads
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8399
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:13:58 +0000 (18:13 +0000)]
Fix bug: RLE-Preserve-Volatile.ll
Volatile loads and stores must not be value numbered
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8398
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:08:11 +0000 (18:08 +0000)]
syntax highlightify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8397
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:07:57 +0000 (18:07 +0000)]
Syntax hilight
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8396
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 18:04:16 +0000 (18:04 +0000)]
Remove a gross hack that was there to support bytecode files that are over a year old.
If you still have these suckers laying around, you have GOT to rebuild them. geeze.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8395
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 17:58:37 +0000 (17:58 +0000)]
Add support for writing volatile load/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8394
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 17:45:59 +0000 (17:45 +0000)]
Add support for volatile loads/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8393
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 17:45:18 +0000 (17:45 +0000)]
Fix grammar-o
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8392
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 17:43:36 +0000 (17:43 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8391
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 8 Sep 2003 16:29:02 +0000 (16:29 +0000)]
Fix old style test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8390
91177308-0d34-0410-b5e6-
96231b3b80d8
Vikram S. Adve [Mon, 8 Sep 2003 15:32:47 +0000 (15:32 +0000)]
Fix syntax error when makellvm is run in an invalid directory.
Add debugging support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8389
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Mon, 8 Sep 2003 03:08:43 +0000 (03:08 +0000)]
Spell `occurrence' correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8388
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Sun, 7 Sep 2003 20:12:52 +0000 (20:12 +0000)]
Fixed spelling of `intentionally'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8387
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 7 Sep 2003 05:09:32 +0000 (05:09 +0000)]
Remove unneeded #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8386
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Sat, 6 Sep 2003 15:20:15 +0000 (15:20 +0000)]
Checkin of autoconf-style object root.
Updated Makefile for new autoconf-style object root.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8385
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Sat, 6 Sep 2003 15:17:13 +0000 (15:17 +0000)]
Checkin of autoconf-style object root.
Copies Makefiles into the new object root directory from the source directory.
Removed the --with-objroot option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8384
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Sat, 6 Sep 2003 15:15:04 +0000 (15:15 +0000)]
Checkin of autoconf-style object root.
Updated TestRunner tests so that they work correctly in a separate object root
directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8383
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Sat, 6 Sep 2003 15:12:21 +0000 (15:12 +0000)]
Checkin of autoconf-style object root.
Use QMTest for the feature and Regression tests.
Continue using the Makefile system for the Programs tests.
Adjusted the Makefile rules to handle building outside the source directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8381
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Sat, 6 Sep 2003 15:03:24 +0000 (15:03 +0000)]
Checkin of autoconf-style object root.
Modified Makefiles to use the new Makefile setup in LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8380
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Sat, 6 Sep 2003 14:50:22 +0000 (14:50 +0000)]
Checkin of autoconf-style object root.
Adjusted Makefile to work with new autoconf-style object root.
Specifically, use the new -I option of tblgen to find include files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8379
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Sat, 6 Sep 2003 14:46:19 +0000 (14:46 +0000)]
Checkin of autoconf-style object root.
Added the AC_CONFIG_MAKEFILE macro to configure akefiles which don't need .in
templates.
Removed the --with-objroot option.
Added commands to configure.ac to configure all of the LLVM Makefiles. Oof.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8378
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Sat, 6 Sep 2003 14:44:17 +0000 (14:44 +0000)]
Checkin of autoconf-style object root.
Moved Makefile.common to Makefile.rules. This makes project Makefiles easier
to support, and allows for easier overriding of default configuration values
that used to be in Makefile.common.
Modified Makefile.config.in to determine paths for directories (like
LLVM_SRC_ROOT) and to use the pwd binary as opposed to the shell builtin (this
works better for symbolic links).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8377
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Fri, 5 Sep 2003 22:59:31 +0000 (22:59 +0000)]
Added some optimizations:
* Generate a single BA instead of 6-instruction JUMP if possible
(this occurs both in the creation and overwriting of the stub code)
* If possible, rewrite the ORIGINAL call to call the generated function
directly, thus bypassing the stub entirely
Also added some statistics on how often calls are overwritten and how often the
CompilationCallback is invoked.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8376
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 20:08:15 +0000 (20:08 +0000)]
Reorder #includes to follow LLVM conventions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8375
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 19:43:45 +0000 (19:43 +0000)]
No longer used
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8374
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 19:43:19 +0000 (19:43 +0000)]
Correct comments
Don't include InstLoops.h
Don't export factory functions for these passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8373
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 19:42:34 +0000 (19:42 +0000)]
Interpreter, JIT moved to lib/ExecutionEngine (includes -> llvm/ExecutionEngine)
Build lli using executionengine library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8372
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 19:39:49 +0000 (19:39 +0000)]
Add ExecutionEngine directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8371
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 19:39:22 +0000 (19:39 +0000)]
ExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/
Build ExecutionEngine as library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8370
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 19:23:03 +0000 (19:23 +0000)]
-abort-on-exception is gone. Rebuild your gccld shell scripts, folks! :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8368
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 18:55:03 +0000 (18:55 +0000)]
Make getOperandValue and executeCastOperation methods of Interpreter.
This lets us protect a few more ExecutionEngine methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8367
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 18:42:01 +0000 (18:42 +0000)]
Make CreateArgv part of lli rather than part of ExecutionEngine.
Switch Interpreter and JIT's "run" methods to take a Function and a vector of
GenericValues.
Move (almost all of) the stuff that constructs a canonical call to main()
into lli (new methods "callAsMain", "makeStringVector").
Nuke getCurrentExecutablePath(), enableTracing(), getCurrentFunction(),
isStopped(), and many dead decls from interpreter.
Add linux strdup() support to interpreter.
Make interpreter's atexit handler runner and JIT's runAtExitHandlers() look
more alike, in preparation for refactoring.
atexit() is spelled "atexit", not "at_exit".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8366
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 18:25:29 +0000 (18:25 +0000)]
Fix reading of invoke instrs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8365
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 06:10:50 +0000 (06:10 +0000)]
Zap some more unused static method decls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8364
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 05:27:58 +0000 (05:27 +0000)]
Whoa, we were misreading invoke instructions "normal" destinations quite badly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8363
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 05:22:08 +0000 (05:22 +0000)]
Remove printOperandInfo(), and simplify run().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8362
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 05:10:04 +0000 (05:10 +0000)]
Add asserts, move code around. This gets the dropAllTypeUses partially implemented
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8361
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 05:04:32 +0000 (05:04 +0000)]
Remove support for printing values from a module by name, only used
w/ interactive keyboard entry of names.
With that, Support.cpp is history.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8360
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Fri, 5 Sep 2003 04:46:26 +0000 (04:46 +0000)]
Remove support for interactive (step finish next) instructions.
Remove printCurrentInstruction, printStackFrame and infoValue
(only used interactively) and other unused methods of Interpreter.
Fold UserInput.cpp containing only callMainFunction() into Interpreter.cpp.
Remove unused Profile flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8359
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 02:39:52 +0000 (02:39 +0000)]
Move functionality preserving changes.
Inline containsEquivalent
Remove some //'s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8358
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 02:30:47 +0000 (02:30 +0000)]
Refactor what has effectively become copy-and-pasted code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8357
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 02:30:18 +0000 (02:30 +0000)]
Get friendly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8356
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 02:21:39 +0000 (02:21 +0000)]
Check in a bunch of minor fixes, plus a whole lot of #if 0'd out code, which will hopefully be enabled in the near future
This does not make any functionality changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8355
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 5 Sep 2003 02:15:36 +0000 (02:15 +0000)]
Reshuffling of APIs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8354
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 4 Sep 2003 23:49:53 +0000 (23:49 +0000)]
containsEquivalent never returns its argument
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8353
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 4 Sep 2003 23:47:07 +0000 (23:47 +0000)]
Non-functional change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8352
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 4 Sep 2003 23:46:03 +0000 (23:46 +0000)]
Remove needless usage of getDescription()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8351
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 4 Sep 2003 23:43:40 +0000 (23:43 +0000)]
Inline method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8350
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 4 Sep 2003 23:43:35 +0000 (23:43 +0000)]
Remove method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8349
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 4 Sep 2003 23:41:03 +0000 (23:41 +0000)]
Don't try to be sneaky, breaking recursive types in the process
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8348
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 4 Sep 2003 23:38:22 +0000 (23:38 +0000)]
This is now unnecessary
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8347
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 4 Sep 2003 23:15:40 +0000 (23:15 +0000)]
Remove support for breakpoints (not used).
Remove some dead code and whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8346
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 4 Sep 2003 22:57:27 +0000 (22:57 +0000)]
Move EE dtor where it belongs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8345
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Thu, 4 Sep 2003 22:21:24 +0000 (22:21 +0000)]
Interpreter cleanups:
Get rid of support for DebugMode (make it always off).
Mung some comments.
Get rid of interpreter's PROFILE_STRUCTURE_FIELDS and PerformExitStuff
which have been disabled forever.
Get rid of -abort-on-exception (make it always on).
Get rid of user interaction stuff (debug mode innards).
Simplify Interpreter's callMainFunction().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8344
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Wed, 3 Sep 2003 20:34:19 +0000 (20:34 +0000)]
ExecutionEngine.cpp: Move execution engine creation stuff into a new
static method here.
Remove some extra blank lines.
ExecutionEngine.h: Add its prototype.
lli.cpp: Call it.
Make creation method for each type of EE into a static method of its
own subclass.
Interpreter/Interpreter.cpp: ExecutionEngine::createInterpreter -->
Interpreter::create
Interpreter/Interpreter.h: Likewise.
JIT/JIT.cpp: ExecutionEngine::createJIT --> VM::create
JIT/VM.h: Likewise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8343
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 3 Sep 2003 20:25:27 +0000 (20:25 +0000)]
Avoid printing meaningless numbers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8342
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 3 Sep 2003 17:56:43 +0000 (17:56 +0000)]
Fix bug where we couldn't print a function without a name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8341
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 3 Sep 2003 16:01:54 +0000 (16:01 +0000)]
Follow the pattern of all other atu's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8340
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 3 Sep 2003 14:44:53 +0000 (14:44 +0000)]
No need to rescan types when they are created.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8339
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 3 Sep 2003 04:20:13 +0000 (04:20 +0000)]
Final cleanups, document is good to go
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8338
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 3 Sep 2003 00:41:47 +0000 (00:41 +0000)]
Add a WHOLE lot of updates clarifications and fixes. This is not done but getting closer. I changed the docs to reflect the goal of making unwind an instruction, not an intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8337
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Sep 2003 23:38:41 +0000 (23:38 +0000)]
hyphenation police visited here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8336
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Sep 2003 22:52:49 +0000 (22:52 +0000)]
Another small speedup, this one to: 2.42s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8335
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Sep 2003 22:50:02 +0000 (22:50 +0000)]
Don't return bogus references, and don't add an entry to the Concrete map
unless it's not empty!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8334
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Sep 2003 22:15:15 +0000 (22:15 +0000)]
Another optimization, speed up the testcase to 2.7s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8333
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Sep 2003 21:56:34 +0000 (21:56 +0000)]
Removal of explicit stack, which requires the method to be a member (so it can
call setAbstract). Now that we just compute abstractness we can also return
the computed value by value instead of as an argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8332
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Sep 2003 21:54:56 +0000 (21:54 +0000)]
New method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8331
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Sep 2003 21:41:05 +0000 (21:41 +0000)]
Remove the "recursive bit", not only is it unused by anyone, it was also
not correctly calculated, and calculating it wrong for fun seems rather
pointless. This also speeds up my favorite testcase by .25 seconds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8330
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 2 Sep 2003 21:40:33 +0000 (21:40 +0000)]
Remove the "recursive bit", not only is it unused by anyone, it was also
not correctly calculated, and calculating it wrong for fun seems rather
pointless.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8329
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 2 Sep 2003 21:11:22 +0000 (21:11 +0000)]
Added code that makes the bytecode file readable (needed by the generated shell
script).
Removed the use of sys/types.h and sys/stat.h.
Modified FileExists() so that it uses the access() system call to check for
file existance. This requires less header files and might even be a tad bit
faster.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8328
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 2 Sep 2003 21:09:30 +0000 (21:09 +0000)]
Added the MakeFileReadable() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8327
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 2 Sep 2003 20:30:16 +0000 (20:30 +0000)]
Added a description of the algorithm.
Return failure if the chmod() fails.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8326
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 2 Sep 2003 20:17:20 +0000 (20:17 +0000)]
Modified the code so that it uses the MakeFileExecutable() method. The new
library code now adds all execute bits that are allowed by the umask value to
the file's current permission bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8325
91177308-0d34-0410-b5e6-
96231b3b80d8
John Criswell [Tue, 2 Sep 2003 20:14:57 +0000 (20:14 +0000)]
Added the MakeFileExecutable() method. This method takes a filename and
gives it execute access while respecting the user's umask.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8324
91177308-0d34-0410-b5e6-
96231b3b80d8