oota-llvm.git
20 years agoUpdated the log of changes (as required by the Burg copyright) to give an
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

20 years agoModified the code so that we exit() with a non-zero value instead of calling
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

20 years agoAdded the .t implicit rule. You can now run an individual set of QMTests by
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

20 years agoOops, look at the VOLATILE marker, not the opcode
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

20 years agoEliminate the unwind intrinsic, it is now an instruction
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

20 years agoEliminate support for the llvm.unwind intrinisic, using the Unwind instruction instead
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

20 years agoFix bug
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

20 years agoShould invokify is always true
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

20 years agoAdd support for the unwind instruction
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

20 years agoAdd support for unwind
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

20 years agoadd support for the unwind inst
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

20 years agoAdd the unwind instruction class
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

20 years agoAdd new unwind instruction. Happily there was a slot leftover from when the
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

20 years agoAdd info about volatile loads/stores
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

20 years agoParse volatile loads/stores
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

20 years agoRead volatile loads/stores
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

20 years agoRemove a bunch of unneeded stuph
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

20 years agoDo not hoist volatile loads
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

20 years agoFix bug: RLE-Preserve-Volatile.ll
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

20 years agosyntax highlightify
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

20 years agoSyntax hilight
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

20 years agoRemove a gross hack that was there to support bytecode files that are over a year...
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

20 years agoAdd support for writing volatile load/stores
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

20 years agoAdd support for volatile loads/stores
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

20 years agoFix grammar-o
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

20 years agoNew testcase
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

20 years agoFix old style test
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

20 years agoFix syntax error when makellvm is run in an invalid directory.
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

20 years agoSpell `occurrence' correctly.
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

20 years agoFixed spelling of `intentionally'.
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

20 years agoRemove unneeded #include
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

20 years agoCheckin of autoconf-style object root.
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

20 years agoCheckin of autoconf-style object root.
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

20 years agoCheckin of autoconf-style object root.
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

20 years agoCheckin of autoconf-style object root.
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

20 years agoCheckin of autoconf-style object root.
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

20 years agoCheckin of autoconf-style object root.
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

20 years agoCheckin of autoconf-style object root.
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

20 years agoCheckin of autoconf-style object root.
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

20 years agoAdded some optimizations:
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

20 years agoReorder #includes to follow LLVM conventions
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

20 years agoNo longer used
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

20 years agoCorrect comments
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

20 years agoInterpreter, JIT moved to lib/ExecutionEngine (includes -> llvm/ExecutionEngine)
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

20 years agoAdd ExecutionEngine directory.
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

20 years agoExecutionEngine.h, GenericValue.h --> include/llvm/ExecutionEngine/
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

20 years ago-abort-on-exception is gone. Rebuild your gccld shell scripts, folks! :-)
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

20 years agoMake getOperandValue and executeCastOperation methods of Interpreter.
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

20 years agoMake CreateArgv part of lli rather than part of ExecutionEngine.
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

20 years agoFix reading of invoke instrs
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

20 years agoZap some more unused static method decls
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

20 years agoWhoa, we were misreading invoke instructions "normal" destinations quite badly.
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

20 years agoRemove printOperandInfo(), and simplify run().
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

20 years agoAdd asserts, move code around. This gets the dropAllTypeUses partially implemented
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

20 years agoRemove support for printing values from a module by name, only used
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

20 years agoRemove support for interactive (step finish next) instructions.
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

20 years agoMove functionality preserving changes.
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

20 years agoRefactor what has effectively become copy-and-pasted code
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

20 years agoGet friendly
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

20 years agoCheck in a bunch of minor fixes, plus a whole lot of #if 0'd out code, which will...
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

20 years agoReshuffling of APIs
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

20 years agocontainsEquivalent never returns its argument
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

20 years agoNon-functional change
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

20 years agoRemove needless usage of getDescription()
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

20 years agoInline method
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

20 years agoRemove method
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

20 years agoDon't try to be sneaky, breaking recursive types in the process
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

20 years agoThis is now unnecessary
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

20 years agoRemove support for breakpoints (not used).
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

20 years agoMove EE dtor where it belongs
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

20 years agoInterpreter cleanups:
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

20 years agoExecutionEngine.cpp: Move execution engine creation stuff into a new
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

20 years agoAvoid printing meaningless numbers
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

20 years agoFix bug where we couldn't print a function without a name
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

20 years agoFollow the pattern of all other atu's
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

20 years agoNo need to rescan types when they are created.
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

20 years agoFinal cleanups, document is good to go
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

20 years agoAdd a WHOLE lot of updates clarifications and fixes. This is not done but getting...
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

20 years agohyphenation police visited here
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

20 years agoAnother small speedup, this one to: 2.42s
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

20 years agoDon't return bogus references, and don't add an entry to the Concrete map
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

20 years agoAnother optimization, speed up the testcase to 2.7s
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

20 years agoRemoval of explicit stack, which requires the method to be a member (so it can
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

20 years agoNew method
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

20 years agoRemove the "recursive bit", not only is it unused by anyone, it was also
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

20 years agoRemove the "recursive bit", not only is it unused by anyone, it was also
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

20 years agoAdded code that makes the bytecode file readable (needed by the generated shell
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

20 years agoAdded the MakeFileReadable() method.
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

20 years agoAdded a description of the algorithm.
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

20 years agoModified the code so that it uses the MakeFileExecutable() method. The new
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

20 years agoAdded the MakeFileExecutable() method. This method takes a filename and
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

20 years agoDon't bother doing an exhaustive recursive walk if we are at the limit of what
Chris Lattner [Tue, 2 Sep 2003 20:06:29 +0000 (20:06 +0000)]
Don't bother doing an exhaustive recursive walk if we are at the limit of what
we need to know anyway.  This reduces the 2002-07-08-HugePerformanceProblem.llx
down to 3.210u:0.010s, which is back in the acceptable range again

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8323 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUgh, fix bugs. Ok, so the last fix wasn't as great as I thought it was.
Chris Lattner [Tue, 2 Sep 2003 19:14:12 +0000 (19:14 +0000)]
Ugh, fix bugs.  Ok, so the last fix wasn't as great as I thought it was.
Now we're back to: 131.730u, 0.330s, which is still quite an improvement,
but still quite unacceptable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8322 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFurther simplifications
Chris Lattner [Tue, 2 Sep 2003 16:46:41 +0000 (16:46 +0000)]
Further simplifications

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8321 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChange the code to no longer compute the "type description" immediately when
Chris Lattner [Tue, 2 Sep 2003 16:35:17 +0000 (16:35 +0000)]
Change the code to no longer compute the "type description" immediately when
the type is analyzed.  Instead, only compute it when requested (with
getDescription), and cached for reuse later.

This dramatically speeds up LLVM in general because these descriptions almost
_never_ need to be constructed.  The only time they are used is when a type is
<<'d.  Printing of modules by themselves uses other code to print symbolic
types when possible, so these descriptions are really only used for debugging.

Also, this fixes the particularly bad case when lots of types get resolved to
each other, such as during linking of large programs.  In these cases, the type
descriptions would be repeatedly recomputed and discarded even though: A. noone
reads the description before it gets resolved, and B. many many resolutions
happen at intermediate steps, causing a HUGE waste of time.

Overall, this makes the getTypeDesc function much more light-weight, and fixes
bug: Assembler/2002-07-08-HugePerformanceProblem.llx, which went from taking
1048.770u/19.150s (which is 17.5 MINUTES, on apoc), to taking 0.020u/0.000s,
which is a nice little speedup.  :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8320 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThe description is no longer stored directly in the type.
Chris Lattner [Tue, 2 Sep 2003 16:28:03 +0000 (16:28 +0000)]
The description is no longer stored directly in the type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8319 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove assertion which is never reached.
Brian Gaeke [Tue, 2 Sep 2003 06:45:34 +0000 (06:45 +0000)]
Remove assertion which is never reached.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8318 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDead header file
Chris Lattner [Mon, 1 Sep 2003 20:46:08 +0000 (20:46 +0000)]
Dead header file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8317 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago#include is unnecessary
Chris Lattner [Mon, 1 Sep 2003 20:45:46 +0000 (20:45 +0000)]
#include is unnecessary

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8316 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPrototype for creator function got moved
Chris Lattner [Mon, 1 Sep 2003 20:45:33 +0000 (20:45 +0000)]
Prototype for creator function got moved

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8315 91177308-0d34-0410-b5e6-96231b3b80d8