oota-llvm.git
17 years agoImplement much expanded dumper support. We now print stuff like:
Chris Lattner [Sun, 29 Apr 2007 21:48:19 +0000 (21:48 +0000)]
Implement much expanded dumper support.  We now print stuff like:

<MODULE_BLOCK NumWords=27 BlockCodeSize=3>
  <TYPE_BLOCK NumWords=7 BlockCodeSize=4>
    <NUMENTRY op0=7>
    <POINTER op0=1>
    <FUNCTION op0=0 op1=2 op2=2 op3=2 op4=2>
    <VECTOR op0=2 op1=3>
    <INTEGER op0=64>
    <VECTOR op0=8 op1=5>
    <INTEGER op0=16>
    <VOID>
...

With work, the operands can be pretty printed symbolically.

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

17 years agoImplement visibility checking during linking. Also implement protected
Anton Korobeynikov [Sun, 29 Apr 2007 20:56:48 +0000 (20:56 +0000)]
Implement visibility checking during linking. Also implement protected
visibility support for bitcode.

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

17 years agoadd some simple per-block statistics
Chris Lattner [Sun, 29 Apr 2007 20:00:02 +0000 (20:00 +0000)]
add some simple per-block statistics

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

17 years agocompute this value correctly
Chris Lattner [Sun, 29 Apr 2007 19:49:58 +0000 (19:49 +0000)]
compute this value correctly

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

17 years agoRewrite of Thumb constant islands handling (exact allowance for padding
Dale Johannesen [Sun, 29 Apr 2007 19:19:30 +0000 (19:19 +0000)]
Rewrite of Thumb constant islands handling (exact allowance for padding
around islands and jump tables).

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

17 years agoMake ARM-specific version of getInlineAsmLength
Dale Johannesen [Sun, 29 Apr 2007 19:17:45 +0000 (19:17 +0000)]
Make ARM-specific version of getInlineAsmLength

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

17 years agoadd a method
Chris Lattner [Sun, 29 Apr 2007 19:17:32 +0000 (19:17 +0000)]
add a method

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

17 years agonot all targets want to return an i32. What really matters is whether llc accepts...
Chris Lattner [Sun, 29 Apr 2007 18:59:01 +0000 (18:59 +0000)]
not all targets want to return an i32.  What really matters is whether llc accepts the generated code.

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

17 years agogeneralize aggregate handling
Chris Lattner [Sun, 29 Apr 2007 18:58:03 +0000 (18:58 +0000)]
generalize aggregate handling

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

17 years agoRegenerate
Anton Korobeynikov [Sun, 29 Apr 2007 18:38:24 +0000 (18:38 +0000)]
Regenerate

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

17 years agoImplement protected visibility. This partly implements PR1363. Linker
Anton Korobeynikov [Sun, 29 Apr 2007 18:35:00 +0000 (18:35 +0000)]
Implement protected visibility. This partly implements PR1363. Linker
should be taught to deal with protected symbols.

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

17 years agoImplement review feedback
Anton Korobeynikov [Sun, 29 Apr 2007 18:02:48 +0000 (18:02 +0000)]
Implement review feedback

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

17 years agoJeff's fix was fine
Chris Lattner [Sun, 29 Apr 2007 17:44:10 +0000 (17:44 +0000)]
Jeff's fix was fine

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

17 years agoadd missing ctor
Chris Lattner [Sun, 29 Apr 2007 17:40:50 +0000 (17:40 +0000)]
add missing ctor

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

17 years agoFix MemoryBuffer breakage correctly.
Jeff Cohen [Sun, 29 Apr 2007 14:43:31 +0000 (14:43 +0000)]
Fix MemoryBuffer breakage correctly.

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

17 years agoUnbreak VC++ build.
Jeff Cohen [Sun, 29 Apr 2007 14:22:14 +0000 (14:22 +0000)]
Unbreak VC++ build.

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

17 years agoUnbreak build.
Jeff Cohen [Sun, 29 Apr 2007 14:21:44 +0000 (14:21 +0000)]
Unbreak build.

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

17 years agoUpdated aliases test
Anton Korobeynikov [Sun, 29 Apr 2007 10:34:42 +0000 (10:34 +0000)]
Updated aliases test

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

17 years agoImplement support to read an arbitrary bitcode file. Next up, dumping the
Chris Lattner [Sun, 29 Apr 2007 08:31:14 +0000 (08:31 +0000)]
Implement support to read an arbitrary bitcode file.  Next up, dumping the
file symbolically and actually computing statistics.

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

17 years agovery early support for analyzing a bitstream. This opens the file, starts
Chris Lattner [Sun, 29 Apr 2007 08:12:22 +0000 (08:12 +0000)]
very early support for analyzing a bitstream.  This opens the file, starts
reading the stream, and detects whether it is LLVM IR or not.

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

17 years agomake this file self-contained
Chris Lattner [Sun, 29 Apr 2007 08:05:07 +0000 (08:05 +0000)]
make this file self-contained

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

17 years agoSwitch the bitcode reader interface to take a MemoryBuffer instead of knowing
Chris Lattner [Sun, 29 Apr 2007 07:54:31 +0000 (07:54 +0000)]
Switch the bitcode reader interface to take a MemoryBuffer instead of knowing
anything about disk I/O itself.  This greatly simplifies its interface -
eliminating the need for the ReaderWrappers.cpp file.

This adds a new option to llvm-dis (-bitcode) which instructs it to read
the input file as bitcode.  Until/unless the bytecode reader is taught to
read from MemoryBuffer, there is no way to handle stdin reading without it.

I don't plan to switch the bytecode reader over, I'd rather delete it :),
so the option will stay around temporarily.

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

17 years agoAdd a new memorybuffer class, to unify all the file reading code in the system
Chris Lattner [Sun, 29 Apr 2007 06:58:52 +0000 (06:58 +0000)]
Add a new memorybuffer class, to unify all the file reading code in the system

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

17 years agonew method for creating a path, which does not create a temporary string.
Chris Lattner [Sun, 29 Apr 2007 06:16:32 +0000 (06:16 +0000)]
new method for creating a path, which does not create a temporary string.

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

17 years agofit in 80 cols
Chris Lattner [Sun, 29 Apr 2007 05:51:00 +0000 (05:51 +0000)]
fit in 80 cols

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

17 years agoFix this to use the right block ID
Chris Lattner [Sun, 29 Apr 2007 05:49:09 +0000 (05:49 +0000)]
Fix this to use the right block ID

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

17 years agomoved Writer.cpp -> BitcodeWriter.cpp to make it more unique in the tree.
Chris Lattner [Sun, 29 Apr 2007 05:31:57 +0000 (05:31 +0000)]
moved Writer.cpp -> BitcodeWriter.cpp to make it more unique in the tree.

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

17 years agoMinor corrections.
Jeff Cohen [Sun, 29 Apr 2007 01:07:00 +0000 (01:07 +0000)]
Minor corrections.

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

17 years agomemory operands that have a direct operand should have their stores created
Chris Lattner [Sat, 28 Apr 2007 21:12:06 +0000 (21:12 +0000)]
memory operands that have a direct operand should have their stores created
before the copies into physregs are done.  This avoids having flag operands
skip the store, causing cycles in the dag at sched time.  This fixes infinite
loops on these tests:

test/CodeGen/Generic/2007-04-08-MultipleFrameIndices.ll for PR1308
test/CodeGen/PowerPC/2007-01-29-lbrx-asm.ll
test/CodeGen/PowerPC/2007-01-31-InlineAsmAddrMode.ll
test/CodeGen/X86/2006-07-12-InlineAsmQConstraint.ll for PR828

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

17 years agoeliminate more redundant constraint type analysis
Chris Lattner [Sat, 28 Apr 2007 21:03:16 +0000 (21:03 +0000)]
eliminate more redundant constraint type analysis

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

17 years agomerge constraint type analysis stuff together.
Chris Lattner [Sat, 28 Apr 2007 21:01:43 +0000 (21:01 +0000)]
merge constraint type analysis stuff together.

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

17 years agoSignificant refactoring of the inline asm stuff, to support future changes.
Chris Lattner [Sat, 28 Apr 2007 20:49:53 +0000 (20:49 +0000)]
Significant refactoring of the inline asm stuff, to support future changes.
No functionality change.

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

17 years agoRegenerate.
Reid Spencer [Sat, 28 Apr 2007 16:07:31 +0000 (16:07 +0000)]
Regenerate.

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

17 years agoRevert the premature portion of the last commit.
Reid Spencer [Sat, 28 Apr 2007 16:06:50 +0000 (16:06 +0000)]
Revert the premature portion of the last commit.

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

17 years agoThis is not "FIXME" anymore
Anton Korobeynikov [Sat, 28 Apr 2007 14:57:59 +0000 (14:57 +0000)]
This is not "FIXME" anymore

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

17 years agoLet Verifier check aliasees
Anton Korobeynikov [Sat, 28 Apr 2007 14:35:41 +0000 (14:35 +0000)]
Let Verifier check aliasees

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

17 years agoFix a compilation error (jump to case label).
Reid Spencer [Sat, 28 Apr 2007 14:13:42 +0000 (14:13 +0000)]
Fix a compilation error (jump to case label).

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

17 years agoRegenerate
Anton Korobeynikov [Sat, 28 Apr 2007 13:48:45 +0000 (13:48 +0000)]
Regenerate

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

17 years agoImplement review feedback. Aliasees can be either GlobalValue's or
Anton Korobeynikov [Sat, 28 Apr 2007 13:45:00 +0000 (13:45 +0000)]
Implement review feedback. Aliasees can be either GlobalValue's or
bitcasts of them.

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

17 years agomemory inputs to an inline asm are required to have an address available.
Chris Lattner [Sat, 28 Apr 2007 06:42:38 +0000 (06:42 +0000)]
memory inputs to an inline asm are required to have an address available.
If the operand is not already an indirect operand, spill it to a constant
pool entry or a stack slot.

This fixes PR1356 and CodeGen/X86/2007-04-27-InlineAsm-IntMemInput.ll

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

17 years agonew testcase for PR1356
Chris Lattner [Sat, 28 Apr 2007 06:41:13 +0000 (06:41 +0000)]
new testcase for PR1356

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

17 years agoFix CodeGen/Generic/2007-04-27-LargeMemObject.ll and
Chris Lattner [Sat, 28 Apr 2007 06:08:13 +0000 (06:08 +0000)]
Fix CodeGen/Generic/2007-04-27-LargeMemObject.ll and
    CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll

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

17 years agoensure the operand prints.
Chris Lattner [Sat, 28 Apr 2007 06:07:55 +0000 (06:07 +0000)]
ensure the operand prints.

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

17 years agonew testcase
Chris Lattner [Sat, 28 Apr 2007 06:05:59 +0000 (06:05 +0000)]
new testcase

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

17 years agoupdate syntax
Chris Lattner [Sat, 28 Apr 2007 06:03:12 +0000 (06:03 +0000)]
update syntax

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

17 years agonot fully implemented yet.
Chris Lattner [Sat, 28 Apr 2007 06:02:13 +0000 (06:02 +0000)]
not fully implemented yet.

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

17 years agoadd a default parameter
Chris Lattner [Sat, 28 Apr 2007 05:42:38 +0000 (05:42 +0000)]
add a default parameter

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

17 years agoadd a way to make this less brittle
Chris Lattner [Sat, 28 Apr 2007 05:38:52 +0000 (05:38 +0000)]
add a way to make this less brittle

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

17 years agofix a bug triggered by 403.gcc
Chris Lattner [Sat, 28 Apr 2007 05:27:36 +0000 (05:27 +0000)]
fix a bug triggered by 403.gcc

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

17 years agoupdate for new inline asm syntax
Chris Lattner [Sat, 28 Apr 2007 05:20:26 +0000 (05:20 +0000)]
update for new inline asm syntax

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

17 years agoFix several latent bugs in EmitGEPOffset that didn't manifest with its
Chris Lattner [Sat, 28 Apr 2007 04:52:43 +0000 (04:52 +0000)]
Fix several latent bugs in EmitGEPOffset that didn't manifest with its
previous clients.  This fixes MallocBench/gs

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

17 years agoFix this to match change to InlineAsm class.
Chris Lattner [Sat, 28 Apr 2007 04:05:59 +0000 (04:05 +0000)]
Fix this to match change to InlineAsm class.

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

17 years agouhn zap cvs
Chris Lattner [Sat, 28 Apr 2007 03:50:56 +0000 (03:50 +0000)]
uhn zap cvs

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

17 years agorepresent indirect operands explicitly in inline asm strings.
Chris Lattner [Sat, 28 Apr 2007 01:02:58 +0000 (01:02 +0000)]
represent indirect operands explicitly in inline asm strings.

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

17 years agoImplement PR1345 and Transforms/InstCombine/bitcast-gep.ll
Chris Lattner [Sat, 28 Apr 2007 00:57:34 +0000 (00:57 +0000)]
Implement PR1345 and Transforms/InstCombine/bitcast-gep.ll

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

17 years agonew testcase
Chris Lattner [Sat, 28 Apr 2007 00:54:45 +0000 (00:54 +0000)]
new testcase

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

17 years agochange per review
Dale Johannesen [Sat, 28 Apr 2007 00:36:37 +0000 (00:36 +0000)]
change per review

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

17 years agoPrevent Thumb code from generating ARM instructions
Dale Johannesen [Fri, 27 Apr 2007 22:17:18 +0000 (22:17 +0000)]
Prevent Thumb code from generating ARM instructions

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

17 years agofix the test tls1.
Lauro Ramos Venancio [Fri, 27 Apr 2007 21:23:17 +0000 (21:23 +0000)]
fix the test tls1.

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

17 years agoadd TLS tests.
Lauro Ramos Venancio [Fri, 27 Apr 2007 21:08:48 +0000 (21:08 +0000)]
add TLS tests.

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

17 years agoadd a GEP helper function
Chris Lattner [Fri, 27 Apr 2007 20:35:56 +0000 (20:35 +0000)]
add a GEP helper function

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

17 years agoadd parenthesis.
Lauro Ramos Venancio [Fri, 27 Apr 2007 20:10:08 +0000 (20:10 +0000)]
add parenthesis.

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

17 years agoDoh. ARM::LEApcrel is a single instruction MI.
Evan Cheng [Fri, 27 Apr 2007 18:27:13 +0000 (18:27 +0000)]
Doh. ARM::LEApcrel is a single instruction MI.

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

17 years agoIn Thumb mode, the frame register must be R7.
Lauro Ramos Venancio [Fri, 27 Apr 2007 17:58:03 +0000 (17:58 +0000)]
In Thumb mode, the frame register must be R7.

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

17 years agorefactor some code relating to pointer cast xforms, pulling it out of the codepath
Chris Lattner [Fri, 27 Apr 2007 17:44:50 +0000 (17:44 +0000)]
refactor some code relating to pointer cast xforms, pulling it out of the codepath
for unrelated casts.

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

17 years agoFix incorrect legalization of EHSELECTOR. This fixes
Chris Lattner [Fri, 27 Apr 2007 17:12:52 +0000 (17:12 +0000)]
Fix incorrect legalization of EHSELECTOR.  This fixes
CodeGen/Generic/2007-04-14-EHSelectorCrash.ll and PR1326

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

17 years agomake this testcase harder, to cover PR1326
Chris Lattner [Fri, 27 Apr 2007 17:12:23 +0000 (17:12 +0000)]
make this testcase harder, to cover PR1326

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

17 years agoreset errno to zero on entry to the application's main function. This fixes
Chris Lattner [Fri, 27 Apr 2007 17:02:33 +0000 (17:02 +0000)]
reset errno to zero on entry to the application's main function.  This fixes
MultiSource/Applications/minisat in the JIT.

Note that the libsystem stuff should ideally never modify errno.  :(

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

17 years agoFix prolific source of 'possible loss of data' warnings.
Jeff Cohen [Fri, 27 Apr 2007 14:43:05 +0000 (14:43 +0000)]
Fix prolific source of 'possible loss of data' warnings.

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

17 years agoARM TLS: implement "general dynamic", "initial exec" and "local exec" models.
Lauro Ramos Venancio [Fri, 27 Apr 2007 13:54:47 +0000 (13:54 +0000)]
ARM TLS: implement "general dynamic", "initial exec" and "local exec" models.

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

17 years agoDarwin runtime library does not have these.
Evan Cheng [Fri, 27 Apr 2007 08:15:43 +0000 (08:15 +0000)]
Darwin runtime library does not have these.

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

17 years agoSpecial handling of LEApcrel and tLEApcrel.
Evan Cheng [Fri, 27 Apr 2007 08:14:15 +0000 (08:14 +0000)]
Special handling of LEApcrel and tLEApcrel.

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

17 years agoBack out previous check-in. Incorrect.
Evan Cheng [Fri, 27 Apr 2007 07:50:02 +0000 (07:50 +0000)]
Back out previous check-in. Incorrect.

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

17 years agotLEApcrel is a AddrModeTs, i.e. pc relative.
Evan Cheng [Fri, 27 Apr 2007 07:37:22 +0000 (07:37 +0000)]
tLEApcrel is a AddrModeTs, i.e. pc relative.

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

17 years agoExpand UINT_TO_FP in turns of SINT_TO_FP when UINTTOFP_* libcalls are not available.
Evan Cheng [Fri, 27 Apr 2007 07:33:31 +0000 (07:33 +0000)]
Expand UINT_TO_FP in turns of SINT_TO_FP when UINTTOFP_* libcalls are not available.

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

17 years agoTest that eh_selector lowering accepts global variables as well as bitcasts
Duncan Sands [Fri, 27 Apr 2007 06:56:53 +0000 (06:56 +0000)]
Test that eh_selector lowering accepts global variables as well as bitcasts
of global variables.

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

17 years agoimprove EH global handling, patch by Duncan Sands.
Chris Lattner [Fri, 27 Apr 2007 01:20:11 +0000 (01:20 +0000)]
improve EH global handling, patch by Duncan Sands.

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

17 years agoMove ~Pass() from Pass.h into Pass.cpp
Devang Patel [Thu, 26 Apr 2007 21:33:42 +0000 (21:33 +0000)]
Move ~Pass() from Pass.h into Pass.cpp

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

17 years agoUnxfail tests
Anton Korobeynikov [Thu, 26 Apr 2007 21:20:04 +0000 (21:20 +0000)]
Unxfail tests

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

17 years agoenable Anton's shift/and switch lowering stuff! It now passes ppc bootstrap
Chris Lattner [Thu, 26 Apr 2007 21:09:43 +0000 (21:09 +0000)]
enable Anton's shift/and switch lowering stuff!  It now passes ppc bootstrap
successfully! woohoo...

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

17 years agoFix PR1339 and CodeGen/X86/dollar-name.ll
Dan Gohman [Thu, 26 Apr 2007 21:07:05 +0000 (21:07 +0000)]
Fix PR1339 and CodeGen/X86/dollar-name.ll

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

17 years agoHave MMX registers clobbered in x86-64 too.
Bill Wendling [Thu, 26 Apr 2007 21:06:48 +0000 (21:06 +0000)]
Have MMX registers clobbered in x86-64 too.

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

17 years agoDelete Analysis Resolver.
Devang Patel [Thu, 26 Apr 2007 21:06:41 +0000 (21:06 +0000)]
Delete Analysis Resolver.

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

17 years agotestcase for PR1339: http://llvm.org/PR1339
Dan Gohman [Thu, 26 Apr 2007 21:04:39 +0000 (21:04 +0000)]
testcase for PR1339: http://llvm.org/PR1339

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

17 years agoAdd test to proper place. Also, XFAIL until ppc bootstrap will be ok.
Anton Korobeynikov [Thu, 26 Apr 2007 20:49:05 +0000 (20:49 +0000)]
Add test to proper place. Also, XFAIL until ppc bootstrap will be ok.

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

17 years agoFixx off-by-one bug, which prevents llvm-gcc bootstrap on ppc32
Anton Korobeynikov [Thu, 26 Apr 2007 20:44:04 +0000 (20:44 +0000)]
Fixx off-by-one bug, which prevents llvm-gcc bootstrap on ppc32

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

17 years agoUpdate a comment to reflect recent changes in the type system.
Dan Gohman [Thu, 26 Apr 2007 19:43:14 +0000 (19:43 +0000)]
Update a comment to reflect recent changes in the type system.

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

17 years agoFix a typo in a comment.
Dan Gohman [Thu, 26 Apr 2007 19:40:56 +0000 (19:40 +0000)]
Fix a typo in a comment.

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

17 years agoAn example for PR1362
Andrew Lenharth [Thu, 26 Apr 2007 19:28:33 +0000 (19:28 +0000)]
An example for PR1362

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

17 years agoRename findRegisterUseOperand to findRegisterUseOperandIdx to avoid confusion.
Evan Cheng [Thu, 26 Apr 2007 19:00:32 +0000 (19:00 +0000)]
Rename findRegisterUseOperand to findRegisterUseOperandIdx to avoid confusion.

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

17 years ago1. Don't swap byte order in scanf. It isn't necessary and leads to
Reid Spencer [Thu, 26 Apr 2007 18:19:35 +0000 (18:19 +0000)]
1. Don't swap byte order in scanf. It isn't necessary and leads to
   incorrect results (canonicalization was dropped several commits ago).
2. Add support for fscanf.
3. Suppress a warning about cast to pointer from non-pointer-sized integer.

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

17 years agoUse toplevel function pass manager as OnTheFly manager.
Devang Patel [Thu, 26 Apr 2007 17:50:19 +0000 (17:50 +0000)]
Use toplevel function pass manager as OnTheFly manager.

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

17 years agobugfix: remember that ResNode was declared.
Lauro Ramos Venancio [Thu, 26 Apr 2007 17:03:22 +0000 (17:03 +0000)]
bugfix: remember that ResNode was declared.

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

17 years agoAdd two test cases to cover apintification change.
Zhou Sheng [Thu, 26 Apr 2007 16:44:48 +0000 (16:44 +0000)]
Add two test cases to cover apintification change.

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

17 years agoUsing APInt more efficiently.
Zhou Sheng [Thu, 26 Apr 2007 16:42:07 +0000 (16:42 +0000)]
Using APInt more efficiently.

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

17 years agoRename identifier that GCC uses as a macro, breaking llvm-gcc build.
Jeff Cohen [Thu, 26 Apr 2007 15:07:47 +0000 (15:07 +0000)]
Rename identifier that GCC uses as a macro, breaking llvm-gcc build.

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

17 years agoMinor bug.
Evan Cheng [Thu, 26 Apr 2007 08:24:22 +0000 (08:24 +0000)]
Minor bug.

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

17 years agostart code for writing out instructions. Separate BB#s from normal value
Chris Lattner [Thu, 26 Apr 2007 05:53:54 +0000 (05:53 +0000)]
start code for writing out instructions.  Separate BB#s from normal value
#'s.

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

17 years agostart defining codes for instructions
Chris Lattner [Thu, 26 Apr 2007 05:53:04 +0000 (05:53 +0000)]
start defining codes for instructions

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

17 years agoregen
Chris Lattner [Thu, 26 Apr 2007 05:31:05 +0000 (05:31 +0000)]
regen

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