OSDN Git Service

android-x86/external-llvm.git
21 years agoFix clean command to clean in /shared when that is used.
Vikram S. Adve [Thu, 22 Aug 2002 03:20:27 +0000 (03:20 +0000)]
Fix clean command to clean in /shared when that is used.

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

21 years agoAdd functions castbool and boolexpr.
Vikram S. Adve [Thu, 22 Aug 2002 03:05:13 +0000 (03:05 +0000)]
Add functions castbool and boolexpr.

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

21 years ago*** empty log message ***
Vikram S. Adve [Thu, 22 Aug 2002 03:04:14 +0000 (03:04 +0000)]
*** empty log message ***

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

21 years agoJust some extra comments.
Vikram S. Adve [Thu, 22 Aug 2002 03:03:10 +0000 (03:03 +0000)]
Just some extra comments.

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

21 years agoAdd method copyOperands().
Vikram S. Adve [Thu, 22 Aug 2002 03:01:44 +0000 (03:01 +0000)]
Add method copyOperands().

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

21 years agodumpNode() does not need to print MachineInstrs.
Vikram S. Adve [Thu, 22 Aug 2002 02:59:46 +0000 (02:59 +0000)]
dumpNode() does not need to print MachineInstrs.

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

21 years agoFix two resource names.
Vikram S. Adve [Thu, 22 Aug 2002 02:58:57 +0000 (02:58 +0000)]
Fix two resource names.

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

21 years agoAdd AsmPrinter::ConstantExprToString, which writes out a ConstantExpr
Vikram S. Adve [Thu, 22 Aug 2002 02:58:36 +0000 (02:58 +0000)]
Add AsmPrinter::ConstantExprToString, which writes out a ConstantExpr
as an expression.

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

21 years agoEliminate bool, boolreg and boolconst nonterminals, and just use
Vikram S. Adve [Thu, 22 Aug 2002 02:56:10 +0000 (02:56 +0000)]
Eliminate bool, boolreg and boolconst nonterminals, and just use
reg and Constant instead.

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

21 years agoChange rules for Not, since it is now implemented as Xor(reg,11..1).
Vikram S. Adve [Thu, 22 Aug 2002 02:55:21 +0000 (02:55 +0000)]
Change rules for Not, since it is now implemented as Xor(reg,11..1).
Eliminate bool, boolreg and boolconst nonterminals, and just use
reg and Constant instead.

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

21 years agoFix testcase to not use indexing in non-gep instructions
Chris Lattner [Wed, 21 Aug 2002 23:52:57 +0000 (23:52 +0000)]
Fix testcase to not use indexing in non-gep instructions

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

21 years agoTest the C backend on all of the feature tests as well.
Chris Lattner [Wed, 21 Aug 2002 23:52:15 +0000 (23:52 +0000)]
Test the C backend on all of the feature tests as well.

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

21 years ago - Fighting with linking problem due to removing the ::ID elements. Now the
Chris Lattner [Wed, 21 Aug 2002 23:51:51 +0000 (23:51 +0000)]
  - Fighting with linking problem due to removing the ::ID elements.  Now the
    implementation .cpp files for analyses are not being included into gccas
    and friends because it is linking to the .a file and there is no explicit
    symbol reference to bring in the .o file.  The new IncludeFile hack is the
    result.

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

21 years ago - Fix asmparser and bytecode reader to not generate loads/stores with idxs
Chris Lattner [Wed, 21 Aug 2002 23:51:21 +0000 (23:51 +0000)]
  - Fix asmparser and bytecode reader to not generate loads/stores with idxs

    Now an obnoxious warning is emitted to discourage usage.  Eventually
    support will be removed.

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

21 years agoAdd a class that is useful for hacking around linking problem due to
Chris Lattner [Wed, 21 Aug 2002 23:48:55 +0000 (23:48 +0000)]
Add a class that is useful for hacking around linking problem due to
pass implementations not being linked in when they are used if the
implementation is in a .a file.

  - Fighting with linking problem due to removing the ::ID elements.  Now the
    implementation .cpp files for analyses are not being included into gccas
    and friends because it is linking to the .a file and there is no explicit
    symbol reference to bring in the .o file.  The new IncludeFile hack is the
    result.

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

21 years agoFixed linking problems that wanted me to link to analyze.o instead of analyze.a
Chris Lattner [Wed, 21 Aug 2002 23:47:46 +0000 (23:47 +0000)]
Fixed linking problems that wanted me to link to analyze.o instead of analyze.a
so now we can link to analyze.a again.

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

21 years ago - Split Dominators.h into Dominators.h & PostDominators.h
Chris Lattner [Wed, 21 Aug 2002 23:43:50 +0000 (23:43 +0000)]
  - Split Dominators.h into Dominators.h & PostDominators.h

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

21 years agoEmit an obnoxious warning message for bytecode that includes load/store
Chris Lattner [Wed, 21 Aug 2002 22:55:27 +0000 (22:55 +0000)]
Emit an obnoxious warning message for bytecode that includes load/store
instructions that use indexing.  Convert them transparently into a pair
of instructions.

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

21 years agoRemove debugging code accidentally checked in.
Chris Lattner [Wed, 21 Aug 2002 22:49:31 +0000 (22:49 +0000)]
Remove debugging code accidentally checked in.

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

21 years agoFix store to not index
Chris Lattner [Wed, 21 Aug 2002 22:45:23 +0000 (22:45 +0000)]
Fix store to not index

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

21 years agoConvert testcase to not use indexing on loads & stores
Chris Lattner [Wed, 21 Aug 2002 22:44:39 +0000 (22:44 +0000)]
Convert testcase to not use indexing on loads & stores

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

21 years agoLink in all analyses so that we get pointer analysis support built in
Chris Lattner [Wed, 21 Aug 2002 22:17:28 +0000 (22:17 +0000)]
Link in all analyses so that we get pointer analysis support built in

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

21 years ago - Implement the new AnalysisGroup feature, neccesary for Value#ing and pointer analysis
Chris Lattner [Wed, 21 Aug 2002 22:17:09 +0000 (22:17 +0000)]
 - Implement the new AnalysisGroup feature, neccesary for Value#ing and pointer analysis

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

21 years ago - Implement the new AnalysisGroup feature, neccesary for Value#ing and pointer...
Chris Lattner [Wed, 21 Aug 2002 22:16:59 +0000 (22:16 +0000)]
  - Implement the new AnalysisGroup feature, neccesary for Value#ing and pointer analysis

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

21 years agoAdd assertion checks to nail bugs early.
Chris Lattner [Wed, 21 Aug 2002 22:14:28 +0000 (22:14 +0000)]
Add assertion checks to nail bugs early.

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

21 years ago - Make Pass::lookupPassInfo a public member
Chris Lattner [Wed, 21 Aug 2002 22:13:33 +0000 (22:13 +0000)]
  - Make Pass::lookupPassInfo a public member
  - Fix Pass::getAnalysis<AnalysisType>() to use dynamic_cast instead of a
    static cast to handle the case where the cast from & two classes are not
    related via inheritance.

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

21 years agoDo not generate loads/stores with indexing
Chris Lattner [Wed, 21 Aug 2002 22:11:33 +0000 (22:11 +0000)]
Do not generate loads/stores with indexing

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

21 years agoRemove extraneous #includes
Chris Lattner [Wed, 21 Aug 2002 22:11:14 +0000 (22:11 +0000)]
Remove extraneous #includes

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

21 years agoDo not create load/stores with indexes
Chris Lattner [Wed, 21 Aug 2002 22:10:52 +0000 (22:10 +0000)]
Do not create load/stores with indexes

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

21 years agoRemove an optimization that isn't.
Chris Lattner [Wed, 21 Aug 2002 22:10:06 +0000 (22:10 +0000)]
Remove an optimization that isn't.

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

21 years agoAdd testcase for the not (setcc A, B) case
Chris Lattner [Wed, 21 Aug 2002 17:11:18 +0000 (17:11 +0000)]
Add testcase for the not (setcc A, B) case

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

21 years ago- Do not expose ::ID from any of the analyses anymore.
Chris Lattner [Wed, 21 Aug 2002 17:09:49 +0000 (17:09 +0000)]
- Do not expose ::ID from any of the analyses anymore.

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

21 years ago- Do not expose ::ID from any of the analyses anymore.
Chris Lattner [Wed, 21 Aug 2002 17:09:45 +0000 (17:09 +0000)]
- Do not expose ::ID from any of the analyses anymore.

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

21 years ago - Do not expose ::ID from any of the analyses anymore.
Chris Lattner [Wed, 21 Aug 2002 17:09:15 +0000 (17:09 +0000)]
  - Do not expose ::ID from any of the analyses anymore.

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

21 years ago - Eliminate the need for analyses to expose an ::ID member.
Chris Lattner [Wed, 21 Aug 2002 17:08:37 +0000 (17:08 +0000)]
  - Eliminate the need for analyses to expose an ::ID member.

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

21 years agoAdd missing forward decl
Chris Lattner [Wed, 21 Aug 2002 15:38:45 +0000 (15:38 +0000)]
Add missing forward decl

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

21 years agofixed bug: test/Regression/Linker/2002-08-20-ConstantExpr.ll
Chris Lattner [Tue, 20 Aug 2002 19:35:11 +0000 (19:35 +0000)]
fixed bug: test/Regression/Linker/2002-08-20-ConstantExpr.ll

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

21 years agoCleanup testsuite
Chris Lattner [Tue, 20 Aug 2002 19:34:51 +0000 (19:34 +0000)]
Cleanup testsuite

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

21 years agoClean up testcases to make them proper
Chris Lattner [Tue, 20 Aug 2002 19:32:17 +0000 (19:32 +0000)]
Clean up testcases to make them proper

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

21 years agoNew testcase for constexpr problem.
Chris Lattner [Tue, 20 Aug 2002 19:29:20 +0000 (19:29 +0000)]
New testcase for constexpr problem.

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

21 years agoProvide a way to actually run tests
Chris Lattner [Tue, 20 Aug 2002 19:29:08 +0000 (19:29 +0000)]
Provide a way to actually run tests

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

21 years agoSort -time-passes report first by user+system, then by Wall clock time.
Chris Lattner [Tue, 20 Aug 2002 18:47:53 +0000 (18:47 +0000)]
Sort -time-passes report first by user+system, then by Wall clock time.

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

21 years ago - instcombine (~(a < b)) into (a >= b)
Chris Lattner [Tue, 20 Aug 2002 18:24:26 +0000 (18:24 +0000)]
  - instcombine (~(a < b)) into (a >= b)

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

21 years agoAdd new SetCondInst::getInverseCondition() method.
Chris Lattner [Tue, 20 Aug 2002 18:17:12 +0000 (18:17 +0000)]
Add new SetCondInst::getInverseCondition() method.

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

21 years agoAdd new SetCondInst::getInverseCondition() method.
Chris Lattner [Tue, 20 Aug 2002 18:17:09 +0000 (18:17 +0000)]
Add new SetCondInst::getInverseCondition() method.

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

21 years agoFix buggy testcase
Chris Lattner [Tue, 20 Aug 2002 17:07:02 +0000 (17:07 +0000)]
Fix buggy testcase

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

21 years agoThis case JUST handles constantpointer nulls, not all pointers.
Chris Lattner [Tue, 20 Aug 2002 17:02:48 +0000 (17:02 +0000)]
This case JUST handles constantpointer nulls, not all pointers.

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

21 years agoFix bug: 2002-08-20-UnnamedArgument.c
Chris Lattner [Tue, 20 Aug 2002 16:55:48 +0000 (16:55 +0000)]
Fix bug: 2002-08-20-UnnamedArgument.c

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

21 years agoDon't stop the testing process if dis segfaults
Chris Lattner [Tue, 20 Aug 2002 16:33:28 +0000 (16:33 +0000)]
Don't stop the testing process if dis segfaults

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

21 years agoNew testcase
Chris Lattner [Tue, 20 Aug 2002 16:01:23 +0000 (16:01 +0000)]
New testcase

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

21 years agoTestcase for anonymous recursive types
Chris Lattner [Tue, 20 Aug 2002 15:49:52 +0000 (15:49 +0000)]
Testcase for anonymous recursive types

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

21 years ago - implemented instcombine of phi (X, X, X) -> X
Chris Lattner [Tue, 20 Aug 2002 15:35:35 +0000 (15:35 +0000)]
  - implemented instcombine of phi (X, X, X) -> X

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

21 years agoNew testcase for instcombine
Chris Lattner [Tue, 20 Aug 2002 15:27:45 +0000 (15:27 +0000)]
New testcase for instcombine

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

21 years agoNew testcase
Chris Lattner [Mon, 19 Aug 2002 23:10:52 +0000 (23:10 +0000)]
New testcase

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

21 years agoImplement ConstantExprs in CWriter
Chris Lattner [Mon, 19 Aug 2002 23:09:46 +0000 (23:09 +0000)]
Implement ConstantExprs in CWriter

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

21 years ago* Build with warnings
Chris Lattner [Mon, 19 Aug 2002 23:09:30 +0000 (23:09 +0000)]
* Build with warnings
* Add a bunch of testcases.

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

21 years agoIncorporate calcTypeNameVar into CWriter class, fixing
Chris Lattner [Mon, 19 Aug 2002 22:17:53 +0000 (22:17 +0000)]
Incorporate calcTypeNameVar into CWriter class, fixing
test/Regression/CBackend/2002-08-19-FunctionPointer.c in the process

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

21 years agoOutput forward definitions of global vars to handle recursive intializers correctly.
Chris Lattner [Mon, 19 Aug 2002 21:48:40 +0000 (21:48 +0000)]
Output forward definitions of global vars to handle recursive intializers correctly.

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

21 years agoNew testcase
Chris Lattner [Mon, 19 Aug 2002 21:48:09 +0000 (21:48 +0000)]
New testcase

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

21 years ago - Change constant printing to be better integrated with the rest of the
Chris Lattner [Mon, 19 Aug 2002 21:32:41 +0000 (21:32 +0000)]
- Change constant printing to be better integrated with the rest of the
      CWriter class.  Write directly to stream instead of building a big
      string, then writing it out.
    - Implement printing of ConstantPointerRefs

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

21 years agoFix typeo noticed by Bryan
Chris Lattner [Mon, 19 Aug 2002 21:14:38 +0000 (21:14 +0000)]
Fix typeo noticed by Bryan

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

21 years agoAdd missing space
Chris Lattner [Mon, 19 Aug 2002 20:42:12 +0000 (20:42 +0000)]
Add missing space

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

21 years agoNew testcase
Chris Lattner [Mon, 19 Aug 2002 19:08:52 +0000 (19:08 +0000)]
New testcase

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

21 years agoFix bug: test/Regression/Assembler/2002-08-19-BytecodeReader.llx
Chris Lattner [Mon, 19 Aug 2002 16:48:21 +0000 (16:48 +0000)]
Fix bug: test/Regression/Assembler/2002-08-19-BytecodeReader.llx

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

21 years agoNew testcase
Chris Lattner [Mon, 19 Aug 2002 16:14:10 +0000 (16:14 +0000)]
New testcase

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

21 years agoFix the -time-passes option to not print NaN when there is zero execution time
Chris Lattner [Mon, 19 Aug 2002 15:43:33 +0000 (15:43 +0000)]
Fix the -time-passes option to not print NaN when there is zero execution time

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

21 years ago - Made GlobalDCE worklist driven, making it more successful. Now can handle
Chris Lattner [Sun, 18 Aug 2002 01:28:30 +0000 (01:28 +0000)]
  - Made GlobalDCE worklist driven, making it more successful.  Now can handle
    cases like: test/Regression/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll

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

21 years agoNew testcase.
Chris Lattner [Sun, 18 Aug 2002 01:27:10 +0000 (01:27 +0000)]
New testcase.

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

21 years ago- ConstantPointerRefs are now automatically removed from the module table
Chris Lattner [Sun, 18 Aug 2002 00:40:04 +0000 (00:40 +0000)]
- ConstantPointerRefs are now automatically removed from the module table
    when they are destroyed, which makes Constant::destroyConstant an actually
    useful external interface.  Expose these methods publicly.
  - Implement destroyConstant on ConstPointerNull so that destroyConstant can
    be used on any derived type constant safely.

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

21 years ago - ConstantPointerRefs are now automatically removed from the module table
Chris Lattner [Sun, 18 Aug 2002 00:39:59 +0000 (00:39 +0000)]
  - ConstantPointerRefs are now automatically removed from the module table
    when they are destroyed, which makes Constant::destroyConstant an actually
    useful external interface.  Expose these methods publicly.
  - Implement destroyConstant on ConstPointerNull so that destroyConstant can
    be used on any derived type constant safely.

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

21 years agoTurn off a debugging optimization that just slows bytecode reading down
Chris Lattner [Sun, 18 Aug 2002 00:38:32 +0000 (00:38 +0000)]
Turn off a debugging optimization that just slows bytecode reading down

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

21 years agoModule's do not subclass from Value, so this code caused a segfault.
Chris Lattner [Sun, 18 Aug 2002 00:37:14 +0000 (00:37 +0000)]
Module's do not subclass from Value, so this code caused a segfault.

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

21 years agoAdd Module::dump() method
Chris Lattner [Sat, 17 Aug 2002 23:32:47 +0000 (23:32 +0000)]
Add Module::dump() method

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

21 years agoAdd Module::dump() method
Chris Lattner [Sat, 17 Aug 2002 23:32:42 +0000 (23:32 +0000)]
Add Module::dump() method

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

21 years agoAdd a simple testcase that just uses a CPR instead of a CPR & ConstExpr
Chris Lattner [Sat, 17 Aug 2002 23:20:37 +0000 (23:20 +0000)]
Add a simple testcase that just uses a CPR instead of a CPR & ConstExpr

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

21 years agoNew testcase
Chris Lattner [Sat, 17 Aug 2002 22:57:52 +0000 (22:57 +0000)]
New testcase

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

21 years agoDo not leak memory for passes when using -stopAfterNPasses or -stopraise
Chris Lattner [Sat, 17 Aug 2002 22:40:03 +0000 (22:40 +0000)]
Do not leak memory for passes when using -stopAfterNPasses or -stopraise

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

21 years agoRun GlobalDCE before deadtypeelim so that we do not retain types for global
Chris Lattner [Sat, 17 Aug 2002 22:38:02 +0000 (22:38 +0000)]
Run GlobalDCE before deadtypeelim so that we do not retain types for global
variables that are obviously dead.  The most common case is %FILE

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

21 years agoInclude a basic simple test.
Chris Lattner [Sat, 17 Aug 2002 22:36:45 +0000 (22:36 +0000)]
Include a basic simple test.

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

21 years agoPromote getelementptr instructions to constexprs if we can.
Chris Lattner [Sat, 17 Aug 2002 22:21:59 +0000 (22:21 +0000)]
Promote getelementptr instructions to constexprs if we can.

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

21 years agoFix stupid oversight of missing #include.
Chris Lattner [Sat, 17 Aug 2002 22:02:41 +0000 (22:02 +0000)]
Fix stupid oversight of missing #include.

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

21 years ago - Finally nailed: test/Regression/Assembler/2002-08-16-ConstExprInlined.llx
Chris Lattner [Sat, 17 Aug 2002 22:01:27 +0000 (22:01 +0000)]
  - Finally nailed: test/Regression/Assembler/2002-08-16-ConstExprInlined.llx
    - ParseConstantPool was resolving reference to value using the function
      slot # instead of the global slot #.
  - Bytecode reader changes:
    - Remove the failure<> template from Bytecode Reader
    - Remove extraneous #includes
    - s/method/function/ a bit
    - Eliminate the fwdRefs class that just added abstraction where it was not
      needed, making things more complex.
    - Use a vector instead of a list for function signatures.

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

21 years agoThrow purify temporary files into /shared if we have it.
Chris Lattner [Sat, 17 Aug 2002 21:39:58 +0000 (21:39 +0000)]
Throw purify temporary files into /shared if we have it.

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

21 years agoAdd new testcase for gep instruction -> get constexpr promotion
Chris Lattner [Fri, 16 Aug 2002 21:18:21 +0000 (21:18 +0000)]
Add new testcase for gep instruction -> get constexpr promotion

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

21 years agoChanged parser to always use parenthesis on ConstExprs to be consistent
Chris Lattner [Fri, 16 Aug 2002 21:17:11 +0000 (21:17 +0000)]
Changed parser to always use parenthesis on ConstExprs to be consistent

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

21 years ago - Remove unused STRING token from lexer & parser
Chris Lattner [Fri, 16 Aug 2002 21:14:40 +0000 (21:14 +0000)]
 - Remove unused STRING token from lexer & parser
  - Changed parser to always use parenthesis on ConstExprs to be consistent
  - Parser now passes TRUE and FALSE tokens as a special case of the ConstExpr
    machinery instead of a special case of constant int stuff
  - Fix the AsmParser to use ValueRef ::= ConstExpr, and remove
    ResolvedVal ::= ConstExpr this allows constexprs to be used in PHI nodes

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

21 years agoFix typo
Chris Lattner [Fri, 16 Aug 2002 19:34:33 +0000 (19:34 +0000)]
Fix typo

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

21 years agoNew testcase distilled from much larger problem
Chris Lattner [Fri, 16 Aug 2002 16:54:52 +0000 (16:54 +0000)]
New testcase distilled from much larger problem

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

21 years agoConvert constexpr over to new syntax
Chris Lattner [Thu, 15 Aug 2002 21:14:39 +0000 (21:14 +0000)]
Convert constexpr over to new syntax

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

21 years agoNew testcase
Chris Lattner [Thu, 15 Aug 2002 21:08:38 +0000 (21:08 +0000)]
New testcase

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

21 years agoMake 'features' testsuite work with the /shared changes.
Chris Lattner [Thu, 15 Aug 2002 19:49:06 +0000 (19:49 +0000)]
Make 'features' testsuite work with the /shared changes.

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

21 years agoConvert testcase to use correct syntax
Chris Lattner [Thu, 15 Aug 2002 19:48:48 +0000 (19:48 +0000)]
Convert testcase to use correct syntax

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

21 years agoAdd another testcase
Chris Lattner [Thu, 15 Aug 2002 19:38:03 +0000 (19:38 +0000)]
Add another testcase

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

21 years agoWrite constexpr casts using the cast X to Y notation, not using the implicit
Chris Lattner [Thu, 15 Aug 2002 19:37:43 +0000 (19:37 +0000)]
Write constexpr casts using the cast X to Y notation, not using the implicit
type result

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

21 years agoParse const expr cast instruction the same way the instruction is formed
Chris Lattner [Thu, 15 Aug 2002 19:37:11 +0000 (19:37 +0000)]
Parse const expr cast instruction the same way the instruction is formed

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

21 years agoAdd a note mentioning that bools promote to 0 or 1
Chris Lattner [Thu, 15 Aug 2002 19:36:05 +0000 (19:36 +0000)]
Add a note mentioning that bools promote to 0 or 1

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

21 years agoMove ConstExpr production to unify ConstVal stuff
Chris Lattner [Thu, 15 Aug 2002 18:17:28 +0000 (18:17 +0000)]
Move ConstExpr production to unify ConstVal stuff

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

21 years agoFix bug: test/Regression/Assembler/2002-08-15-UnresolvedGlobalReference.ll
Chris Lattner [Thu, 15 Aug 2002 17:58:33 +0000 (17:58 +0000)]
Fix bug: test/Regression/Assembler/2002-08-15-UnresolvedGlobalReference.ll

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

21 years agoThere seem to be issues with constant exprs
Chris Lattner [Thu, 15 Aug 2002 17:04:40 +0000 (17:04 +0000)]
There seem to be issues with constant exprs

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

21 years agoSimplify the code
Chris Lattner [Thu, 15 Aug 2002 16:15:36 +0000 (16:15 +0000)]
Simplify the code

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