OSDN Git Service
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
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
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
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
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
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
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
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
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
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
Chris Lattner [Mon, 1 Sep 2003 20:44:42 +0000 (20:44 +0000)]
Add RPR prototype here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8314
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:41:21 +0000 (20:41 +0000)]
Remove dead file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8313
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:41:07 +0000 (20:41 +0000)]
OptInfo is no longer required
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8312
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:40:59 +0000 (20:40 +0000)]
No longer provide an optinfo, noone uses it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8311
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:40:43 +0000 (20:40 +0000)]
No longer require an OptInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8310
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:38:03 +0000 (20:38 +0000)]
Inline simple comparison which is sparc specific anyway
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8309
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:34:15 +0000 (20:34 +0000)]
Don't build dead directories
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8308
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:33:38 +0000 (20:33 +0000)]
Remove header files that were privatized
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8307
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:33:07 +0000 (20:33 +0000)]
Move private interfaces into private .h file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8306
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:30:17 +0000 (20:30 +0000)]
Preselection is now integrated into the Sparc target library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8305
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:29:43 +0000 (20:29 +0000)]
Remove dead library makefile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8304
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:26:52 +0000 (20:26 +0000)]
Remove makefile for dead library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8303
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:26:14 +0000 (20:26 +0000)]
Sparc peephole optimizer moved out of post-opts library into Sparc target library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8302
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:24:06 +0000 (20:24 +0000)]
Simplify code a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8301
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:19:31 +0000 (20:19 +0000)]
This file is never #included
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8300
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:17:13 +0000 (20:17 +0000)]
LiveRange.h is now in lib/CodeGen/RegAlloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8299
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:14:00 +0000 (20:14 +0000)]
This file is hopelessly out of date
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8298
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:12:17 +0000 (20:12 +0000)]
LiveRangeInfo got moved into the lib/CodeGen/RegAlloc directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8297
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:09:04 +0000 (20:09 +0000)]
PhyRegAlloc.h got moved to lib/CodeGen/RegAlloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8296
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:05:47 +0000 (20:05 +0000)]
Move IGNode from public include directory to here. Minor cleanups like adding std:: namespace qualifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8295
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 20:00:08 +0000 (20:00 +0000)]
IGNode got moved to lib/CodeGen/RegAlloc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8294
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 19:58:02 +0000 (19:58 +0000)]
This file just needs LiveRange.h not IGNode.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8293
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 19:56:48 +0000 (19:56 +0000)]
No longer include IGNode.h in the Sparc global header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8292
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 18:01:36 +0000 (18:01 +0000)]
Final cleanup: remove dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8291
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:53:46 +0000 (16:53 +0000)]
Not only is this a lot smaller, it actually works if there is already a
function with the right name in the module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8290
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:49:57 +0000 (16:49 +0000)]
Dead files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8289
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:49:38 +0000 (16:49 +0000)]
If "These should be used only by the auto-parallelization pass", we might as
well put them INTO the auto-par pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8288
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:45:30 +0000 (16:45 +0000)]
Moved all of the cilkifier stuff into lib/Transforms/IPO, as it really is not
support stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8287
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:42:43 +0000 (16:42 +0000)]
This file is just a subset of Cilkifier.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8286
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:42:16 +0000 (16:42 +0000)]
Minor cleanups
Do not #include Parallelize.h, it's just a subset of Cilkifier.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8285
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:38:43 +0000 (16:38 +0000)]
Other minor cleanups while I'm in the area
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8284
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:35:30 +0000 (16:35 +0000)]
Fix spell-o
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8283
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 16:31:28 +0000 (16:31 +0000)]
Remove gross old hacky code that was in there for backwards compatibility
1 year is plenty of migration time!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8282
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 03:14:56 +0000 (03:14 +0000)]
Change the RaiseAllocations pass to be a Pass instead of a BasicBlock pass.
This makes it more efficient: it doesn't have to scan the whole program, so
it performs work proportional to the number of malloc/free calls in the
program, not the size of the program.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8280
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 1 Sep 2003 03:14:00 +0000 (03:14 +0000)]
Change the RaiseAllocations pass from being a BasicBlockPass to being a Pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8279
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 21:47:24 +0000 (21:47 +0000)]
Remove the -stopAfterNPasses option, which has been long obsoleted by bugpoint
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8278
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 21:45:55 +0000 (21:45 +0000)]
* move the dead-type-eliminate passes to the end, where they are more useful
* add prune-eh and inlining passes
* other minor pass reorganizations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8277
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 21:17:44 +0000 (21:17 +0000)]
Fix bug: TailDuplicate/2003-08-31-UnreachableBlocks.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8276
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 21:05:39 +0000 (21:05 +0000)]
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8275
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 20:36:52 +0000 (20:36 +0000)]
Replace M with F when refering to functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8274
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 20:01:57 +0000 (20:01 +0000)]
Rename TarjanSCCIterator -> scc_iterator
* Increases consistency with other iterators (e.g. df_iterator, po_iterator...)
* It's shorter
* We don't name classes by the implementation, we name it for the interface!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8273
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:55:31 +0000 (19:55 +0000)]
ELIMINATE the SCC class completely. One less thing deriving from std::vector
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8272
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:55:06 +0000 (19:55 +0000)]
Don't explicitly use the SCC class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8271
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:54:57 +0000 (19:54 +0000)]
Remove dead var
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8270
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:51:38 +0000 (19:51 +0000)]
The SCC::HasLoop method is now in the main iterator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8269
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:51:22 +0000 (19:51 +0000)]
Move the HasLoop method from the SCC class to the iterator class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8268
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:46:48 +0000 (19:46 +0000)]
Remove explicit passing of SCC's around as objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8267
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:46:22 +0000 (19:46 +0000)]
This should use Support/iterator, not <iterator>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8266
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:41:17 +0000 (19:41 +0000)]
Cleanups, move the getAnalysisUsage method to the .cpp file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8265
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:40:57 +0000 (19:40 +0000)]
Move the getAnalysisUsage method from the header file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8264
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:37:29 +0000 (19:37 +0000)]
Fix an FLAT OUT WRONG comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8263
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:35:16 +0000 (19:35 +0000)]
The tarjan iterator now returns a reference to the current SCC, not a possibly null pointer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8262
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:34:27 +0000 (19:34 +0000)]
* Cleanups
* operator* now returns a reference to the current SCC, instead of a possibly
null pointer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8261
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:29:52 +0000 (19:29 +0000)]
Minor cleanups
Iterate from tarj_begin -> tarj_end, not from tarj_begin -> NULL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8260
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:27:11 +0000 (19:27 +0000)]
Indent classes correctly in the namespace
move bodies out-of-line
Add getAnalysisUsage method for SFGSCC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8259
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:23:41 +0000 (19:23 +0000)]
* Cleanups
* Iterate from tarj_begin -> tarj_end, not from tarj_begin -> NULL
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8258
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 19:10:30 +0000 (19:10 +0000)]
Heavily refactor code:
* Separate the policy decisions into a derived class [InlineSimple]
* Move the inlining mechanics into a base class [Inliner]
* Change the inliner to be an SCCPass, making it more structured and
eventually pipelinable with other SCC passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8257
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 16:30:25 +0000 (16:30 +0000)]
Add accessor function for the PruneEH pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8254
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 16:30:07 +0000 (16:30 +0000)]
Add accessor function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8253
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 06:53:05 +0000 (06:53 +0000)]
New testcase for annoying structure layout stuff!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8252
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 02:50:07 +0000 (02:50 +0000)]
Minor simplification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8251
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 02:47:32 +0000 (02:47 +0000)]
Initial checkin of the -prune-eh pass, a very simple exception handling removal pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8250
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 02:38:46 +0000 (02:38 +0000)]
new tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8249
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 02:36:10 +0000 (02:36 +0000)]
Add tests for the pruneeh pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8248
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 01:54:59 +0000 (01:54 +0000)]
Initial checkin of the CallGraphSCCPass class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8247
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 01:48:21 +0000 (01:48 +0000)]
Remove usage of unsigned long: unsigned should be enough!
Remove explicit use of a stack<>, use a vector instead
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8246
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 01:45:00 +0000 (01:45 +0000)]
This file uses cerr without including <iostream>. Since it's just for debugging, comment it out
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8245
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 01:38:00 +0000 (01:38 +0000)]
s/Meth/F
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8244
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 00:45:13 +0000 (00:45 +0000)]
ScalarRepl does not modify the CFG. Say so!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8243
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 00:22:27 +0000 (00:22 +0000)]
Use new interface, simplifies code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8242
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 31 Aug 2003 00:21:59 +0000 (00:21 +0000)]
Use the new interface, simplifies code
NOTE that these two files are _BUGGY_ and need to be fixed, just not by me :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8241
91177308-0d34-0410-b5e6-
96231b3b80d8