oota-llvm.git
14 years agoAdd a JITEventListener interface that gets called back when a new function is
Jeffrey Yasskin [Thu, 25 Jun 2009 02:04:04 +0000 (02:04 +0000)]
Add a JITEventListener interface that gets called back when a new function is
emitted or the machine code for a function is freed.  Chris mentioned that we
may also want a notification when a stub is emitted, but that'll be a future
change.  I intend to use this to tell oprofile where functions are emitted and
what lines correspond to what addresses.

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

14 years agoAdd thumb2 add sp.
Evan Cheng [Thu, 25 Jun 2009 01:21:30 +0000 (01:21 +0000)]
Add thumb2 add sp.

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

14 years agoad MachineInstrBuilder support for target flags on operands.
Chris Lattner [Thu, 25 Jun 2009 01:16:22 +0000 (01:16 +0000)]
ad MachineInstrBuilder support for target flags on operands.

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

14 years agofix comments to be correct.
Chris Lattner [Thu, 25 Jun 2009 01:15:47 +0000 (01:15 +0000)]
fix comments to be correct.

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

14 years agoRemove duplication.
Mikhail Glushenkov [Thu, 25 Jun 2009 01:07:00 +0000 (01:07 +0000)]
Remove duplication.

Factor out common preprocessor-related bits to Makefile.rules.

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

14 years agoSome reorg and additional comments.
Evan Cheng [Thu, 25 Jun 2009 01:05:06 +0000 (01:05 +0000)]
Some reorg and additional comments.

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

14 years agoNo need to code gen MDNodes
Devang Patel [Thu, 25 Jun 2009 00:47:42 +0000 (00:47 +0000)]
No need to code gen MDNodes

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

14 years agoMy guess is that RegInfo should only call the Allocator.Deallocator if it's not
Bill Wendling [Thu, 25 Jun 2009 00:32:48 +0000 (00:32 +0000)]
My guess is that RegInfo should only call the Allocator.Deallocator if it's not
null.

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

14 years agoReword a few comments.
Dan Gohman [Thu, 25 Jun 2009 00:22:44 +0000 (00:22 +0000)]
Reword a few comments.

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

14 years agoAdd a getUniqueExitBlock utility function, similar to getExitBlock,
Dan Gohman [Thu, 25 Jun 2009 00:09:57 +0000 (00:09 +0000)]
Add a getUniqueExitBlock utility function, similar to getExitBlock,
but for getUniqueExitBlocks.

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

14 years agoNow with EVEN FEWER statics!
Owen Anderson [Thu, 25 Jun 2009 00:04:15 +0000 (00:04 +0000)]
Now with EVEN FEWER statics!

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

14 years agoAdd Thumb2 pc relative add.
Evan Cheng [Wed, 24 Jun 2009 23:47:58 +0000 (23:47 +0000)]
Add Thumb2 pc relative add.

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

14 years agoFewer static variables, part 3 of many.
Owen Anderson [Wed, 24 Jun 2009 23:41:44 +0000 (23:41 +0000)]
Fewer static variables, part 3 of many.

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

14 years agoBasic .s parsing for .asci[iz], .fill, .space, {.byte, .short, ... }
Daniel Dunbar [Wed, 24 Jun 2009 23:30:00 +0000 (23:30 +0000)]
Basic .s parsing for .asci[iz], .fill, .space, {.byte, .short, ... }
 - Includes some DG tests in test/MC/AsmParser, which are rather primitive since
   we don't have a -verify mode yet.

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

14 years ago80 col violation.
Evan Cheng [Wed, 24 Jun 2009 23:14:45 +0000 (23:14 +0000)]
80 col violation.

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

14 years agoDown with _even more_ statics!
Owen Anderson [Wed, 24 Jun 2009 23:13:56 +0000 (23:13 +0000)]
Down with _even more_ statics!

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

14 years agoDidn't mean to commit this part.
Owen Anderson [Wed, 24 Jun 2009 22:58:48 +0000 (22:58 +0000)]
Didn't mean to commit this part.

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

14 years agoDown with statics!
Owen Anderson [Wed, 24 Jun 2009 22:53:20 +0000 (22:53 +0000)]
Down with statics!

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

14 years agoAdd constructor to create MDString using std::string
Devang Patel [Wed, 24 Jun 2009 22:42:39 +0000 (22:42 +0000)]
Add constructor to create MDString using std::string

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

14 years agoMove local statics to per-instance variables.
Owen Anderson [Wed, 24 Jun 2009 22:28:12 +0000 (22:28 +0000)]
Move local statics to per-instance variables.

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

14 years agoIncrease limit for OpActions array
David Greene [Wed, 24 Jun 2009 22:22:02 +0000 (22:22 +0000)]
Increase limit for OpActions array

The OpActions array had a limit of 32 value types, so change it to use
MVT::MAX_ALLOWED_VALUETYPE in its declaration and change the accesses to
this array to work with a VT.getSimpleVT() that is larger than 32.

Also, add a comment to the place where MVT::MAX_ALLOWED_VALUETYPE is
defined indicating that it must be a multiple of 32.

This is part of the work allow MVT::LAST_VALUETYPE be greater than 32.

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

14 years agoMake this thread-safe.
Owen Anderson [Wed, 24 Jun 2009 22:16:52 +0000 (22:16 +0000)]
Make this thread-safe.

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

14 years agoGet rid of a static boolean.
Owen Anderson [Wed, 24 Jun 2009 22:08:59 +0000 (22:08 +0000)]
Get rid of a static boolean.

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

14 years agoWe should run these tests as well.
Evan Cheng [Wed, 24 Jun 2009 21:36:26 +0000 (21:36 +0000)]
We should run these tests as well.

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

14 years agoScaffolding for LDA pass.
Andreas Bolka [Wed, 24 Jun 2009 21:29:13 +0000 (21:29 +0000)]
Scaffolding for LDA pass.

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

14 years agoReleaseNotes.External Projects += Rubinius
Jeffrey Yasskin [Wed, 24 Jun 2009 21:26:42 +0000 (21:26 +0000)]
ReleaseNotes.External Projects += Rubinius

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

14 years agoFix the Ocaml bindings for the ExecutionEngine: with the change to build
Bob Wilson [Wed, 24 Jun 2009 21:09:18 +0000 (21:09 +0000)]
Fix the Ocaml bindings for the ExecutionEngine: with the change to build
libraries instead of relinked objects, the interpreter, JIT, and native
target libraries were not being linked in to an ocaml program using the
ExecutionEngine.

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

14 years agoReleaseNotes.External Projects += Unladen Swallow
Jeffrey Yasskin [Wed, 24 Jun 2009 21:09:13 +0000 (21:09 +0000)]
ReleaseNotes.External Projects += Unladen Swallow

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

14 years agoCompleted basic intra block split implementation.
Lang Hames [Wed, 24 Jun 2009 20:46:24 +0000 (20:46 +0000)]
Completed basic intra block split implementation.

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

14 years agoUpdate for DOTGraphTraits changes.
Owen Anderson [Wed, 24 Jun 2009 20:41:17 +0000 (20:41 +0000)]
Update for DOTGraphTraits changes.

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

14 years agounwind info not needed.
Chris Lattner [Wed, 24 Jun 2009 19:48:04 +0000 (19:48 +0000)]
unwind info not needed.

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

14 years agomove some functions, add a FIXME, use PrintPICBaseSymbol to print the
Chris Lattner [Wed, 24 Jun 2009 19:44:36 +0000 (19:44 +0000)]
move some functions, add a FIXME, use PrintPICBaseSymbol to print the
picbase instead of inlining it.

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

14 years agoThis increases the maximum for MVT::LAST_VALUETYPE
David Greene [Wed, 24 Jun 2009 19:41:55 +0000 (19:41 +0000)]
This increases the maximum for MVT::LAST_VALUETYPE

This change doubles the allowable value for MVT::LAST_VALUETYPE. It does
this by doing several things.

1. Introduces MVT::MAX_ALLOWED_LAST_VALUETYPE which in this change has a
value of 64.  This value contains the current maximum for the
MVT::LAST_VALUETYPE.

2. Instead of checking "MVT::LAST_VALUETYPE <= 32", all of those uses
now become "MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_LAST_VALUETYPE"

3. Changes the dimension of the ValueTypeActions from 2 elements to four
elements and adds comments ahead of the declaration indicating the it is
"(MVT::MAX_ALLOWED_LAST_VALUETYPE/32) * 2".  This at least lets us find
what is affected if and when MVT::MAX_ALLOWED_LAST_VALUETYPE gets
changed.

4. Adds initializers for the new elements of ValueTypeActions.

This does NOT add any types in MVT. That would be done separately.

This doubles the size of ValueTypeActions from 64 bits to 128 bits and
gives us the freedom to add more types for AVX.

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

14 years agoSketch streamer support for .align, .org functionality.
Daniel Dunbar [Wed, 24 Jun 2009 19:25:34 +0000 (19:25 +0000)]
Sketch streamer support for .align, .org functionality.

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

14 years agoreimplement getPICLabelString as PrintPICBaseSymbol to eliminate std::string heap...
Chris Lattner [Wed, 24 Jun 2009 19:19:16 +0000 (19:19 +0000)]
reimplement getPICLabelString as PrintPICBaseSymbol to eliminate std::string heap thrashing.

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

14 years agosink management of DwarfWriter & MachineModuleInfo into the AsmPrinter base class.
Chris Lattner [Wed, 24 Jun 2009 19:09:55 +0000 (19:09 +0000)]
sink management of DwarfWriter & MachineModuleInfo into the AsmPrinter base class.

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

14 years agosink dwarf finalization out of each target into AsmPrinter::doFinalization
Chris Lattner [Wed, 24 Jun 2009 18:54:37 +0000 (18:54 +0000)]
sink dwarf finalization out of each target into AsmPrinter::doFinalization

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

14 years agoeliminate the ExtWeakSymbols set from AsmPrinter. This eliminates
Chris Lattner [Wed, 24 Jun 2009 18:52:01 +0000 (18:52 +0000)]
eliminate the ExtWeakSymbols set from AsmPrinter.  This eliminates
a bunch of code from all the targets, and eliminates nondeterministic
ordering of directives being emitted in the output.

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

14 years agoonly emit one .align for all the hidden gv stubs instead of one for each.
Chris Lattner [Wed, 24 Jun 2009 18:24:42 +0000 (18:24 +0000)]
only emit one .align for all the hidden gv stubs instead of one for each.

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

14 years agoinline print*Stub and rearrange function stub printing to more closely match
Chris Lattner [Wed, 24 Jun 2009 18:24:09 +0000 (18:24 +0000)]
inline print*Stub and rearrange function stub printing to more closely match
gv and hiddengv stub printing.

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

14 years agoremove dead code now that personality functions don't print stubs directly.
Chris Lattner [Wed, 24 Jun 2009 18:19:01 +0000 (18:19 +0000)]
remove dead code now that personality functions don't print stubs directly.

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

14 years agoremove now-dead argument.
Chris Lattner [Wed, 24 Jun 2009 18:17:56 +0000 (18:17 +0000)]
remove now-dead argument.

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

14 years agosimplify personality function stub printing to use the mangler and
Chris Lattner [Wed, 24 Jun 2009 18:17:00 +0000 (18:17 +0000)]
simplify personality function stub printing to use the mangler and
decorateName like other stuff instead of special casing _.  Also, stick
it into GVStubs and let the normal stub printer print the stub instead
of doing it manually.

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

14 years agoremove dead argument
Chris Lattner [Wed, 24 Jun 2009 18:00:11 +0000 (18:00 +0000)]
remove dead argument

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

14 years agoRearrange some stuff in MachineOperand and add a new TargetFlags field.
Chris Lattner [Wed, 24 Jun 2009 17:54:48 +0000 (17:54 +0000)]
Rearrange some stuff in MachineOperand and add a new TargetFlags field.

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

14 years agoGet rid of the global CFGOnly flag by threading a ShortNames parameters through the...
Owen Anderson [Wed, 24 Jun 2009 17:37:09 +0000 (17:37 +0000)]
Get rid of the global CFGOnly flag by threading a ShortNames parameters through the GraphViz rendering code.
Update other uses in the codebase for this change.

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

14 years agoRewrite 73900 per Duncan's suggestion.
Dale Johannesen [Wed, 24 Jun 2009 17:11:31 +0000 (17:11 +0000)]
Rewrite 73900 per Duncan's suggestion.

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

14 years agoWe decided to not worry about Atoms for now, it should be straightforward to
Daniel Dunbar [Wed, 24 Jun 2009 17:00:42 +0000 (17:00 +0000)]
We decided to not worry about Atoms for now, it should be straightforward to
reintroduce them later.

Also, don't require MCSection* when creating a symbol.

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

14 years agoMCStreamer: Add a few more "symbol attributes".
Daniel Dunbar [Wed, 24 Jun 2009 16:36:52 +0000 (16:36 +0000)]
MCStreamer: Add a few more "symbol attributes".

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

14 years agoMCStreamer: Test printing values.
Daniel Dunbar [Wed, 24 Jun 2009 16:05:35 +0000 (16:05 +0000)]
MCStreamer: Test printing values.

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

14 years agoMinor whitespace cleanups.
Dan Gohman [Wed, 24 Jun 2009 14:49:00 +0000 (14:49 +0000)]
Minor whitespace cleanups.

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

14 years agoSimplify [su]max(MAX, n) to MAX. This comes up in loop tripcount
Dan Gohman [Wed, 24 Jun 2009 14:46:22 +0000 (14:46 +0000)]
Simplify [su]max(MAX, n) to MAX. This comes up in loop tripcount
computations in loops with multiple exits.

Adjust the testcase for PR4436 so that the relevant portion isn't
optimized away.

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

14 years agoWhen inserting code into a loop preheader, insert it before the
Dan Gohman [Wed, 24 Jun 2009 14:31:06 +0000 (14:31 +0000)]
When inserting code into a loop preheader, insert it before the
terminator, instead of after the last phi. This fixes a bug
exposed by ScalarEvolution analyzing more kinds of loops.
This fixes PR4436.

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

14 years agoAdd new files to cmake list.
Duncan Sands [Wed, 24 Jun 2009 10:03:44 +0000 (10:03 +0000)]
Add new files to cmake list.

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

14 years agoStart sketching 2.6 release notes. This provides a
Duncan Sands [Wed, 24 Jun 2009 08:38:48 +0000 (08:38 +0000)]
Start sketching 2.6 release notes.  This provides a
place to note major API changes (I've noted the
getABITypeSize -> getAllocSize change).

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

14 years agoMove thumb and thumb2 tests into separate directories.
Evan Cheng [Wed, 24 Jun 2009 06:36:07 +0000 (06:36 +0000)]
Move thumb and thumb2 tests into separate directories.

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

14 years agofactor some code better.
Chris Lattner [Wed, 24 Jun 2009 05:47:59 +0000 (05:47 +0000)]
factor some code better.

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

14 years agowire up support for MCContext/MCStreamer in -experimental-asm-printer mode.
Chris Lattner [Wed, 24 Jun 2009 05:46:28 +0000 (05:46 +0000)]
wire up support for MCContext/MCStreamer in -experimental-asm-printer mode.

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

14 years agoremove dead makefile flags.
Chris Lattner [Wed, 24 Jun 2009 05:29:56 +0000 (05:29 +0000)]
remove dead makefile flags.

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

14 years agoremove dead makefile flags.
Chris Lattner [Wed, 24 Jun 2009 05:28:55 +0000 (05:28 +0000)]
remove dead makefile flags.

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

14 years agoimplement a bunch of synonyms for section switching.
Chris Lattner [Wed, 24 Jun 2009 05:13:15 +0000 (05:13 +0000)]
implement a bunch of synonyms for section switching.

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

14 years agoDelete some orphaned comments, fix some 80-column violations,
Dan Gohman [Wed, 24 Jun 2009 04:48:43 +0000 (04:48 +0000)]
Delete some orphaned comments, fix some 80-column violations,
and tidy up a few other formatting issues.

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

14 years agoRemove an obsolete comment and fix some 80-column violations.
Dan Gohman [Wed, 24 Jun 2009 04:47:54 +0000 (04:47 +0000)]
Remove an obsolete comment and fix some 80-column violations.

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

14 years agoadd support for parsing and emitting .section directives. We can now parse
Chris Lattner [Wed, 24 Jun 2009 04:43:34 +0000 (04:43 +0000)]
add support for parsing and emitting .section directives.  We can now parse
things like:
.section __TEXT,__cstring,cstring_literals

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

14 years agoadd trivial support for passing label definitions through the MCStreamer.
Chris Lattner [Wed, 24 Jun 2009 04:31:49 +0000 (04:31 +0000)]
add trivial support for passing label definitions through the MCStreamer.

This is suboptimal in several aspects, see the commented out assertion.
I need to talk to Daniel about this.

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

14 years agoFixed a bug in LiveInterval scaling (failure to scale VNI defs correctly), removed...
Lang Hames [Wed, 24 Jun 2009 02:17:32 +0000 (02:17 +0000)]
Fixed a bug in LiveInterval scaling (failure to scale VNI defs correctly), removed old TODO comments.

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

14 years agoFix support for inline asm input / output operand tying when operand spans across...
Evan Cheng [Wed, 24 Jun 2009 02:05:51 +0000 (02:05 +0000)]
Fix support for inline asm input / output operand tying when operand spans across multiple registers (e.g. two i64 operands in 32-bit mode).

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

14 years agoAdd a testcase demoing some of ScalarEvolution's new trip count logic.
Dan Gohman [Wed, 24 Jun 2009 01:22:30 +0000 (01:22 +0000)]
Add a testcase demoing some of ScalarEvolution's new trip count logic.

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

14 years agoExtend ScalarEvolution's multiple-exit support to compute exact
Dan Gohman [Wed, 24 Jun 2009 01:18:18 +0000 (01:18 +0000)]
Extend ScalarEvolution's multiple-exit support to compute exact
trip counts in more cases.

Generalize ScalarEvolution's isLoopGuardedByCond code to recognize
And and Or conditions, splitting the code out into an
isNecessaryCond helper function so that it can evaluate Ands and Ors
recursively, and make SCEVExpander be much more aggressive about
hoisting instructions out of loops.

test/CodeGen/X86/pr3495.ll has an additional instruction now, but
it appears to be due to an arbitrary register allocation difference.

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

14 years agoUnbreak build on Linux by removing Darwinism.
Nick Lewycky [Wed, 24 Jun 2009 01:08:42 +0000 (01:08 +0000)]
Unbreak build on Linux by removing Darwinism.

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

14 years agoTeach GetMinSignBits about SCEVAddExprs.
Dan Gohman [Wed, 24 Jun 2009 01:05:09 +0000 (01:05 +0000)]
Teach GetMinSignBits about SCEVAddExprs.

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

14 years agoStart MCAsmStreamer implementation.
Daniel Dunbar [Wed, 24 Jun 2009 01:03:06 +0000 (01:03 +0000)]
Start MCAsmStreamer implementation.

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

14 years agoRevert this accidental commit.
Dan Gohman [Wed, 24 Jun 2009 00:55:55 +0000 (00:55 +0000)]
Revert this accidental commit.

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

14 years agoMove the special cases for constants out of getUnknown and into
Dan Gohman [Wed, 24 Jun 2009 00:54:57 +0000 (00:54 +0000)]
Move the special cases for constants out of getUnknown and into
createSCEV. Also, recognize UndefValue in createSCEV.

Change getIntegerSCEV's comment to avoid mentioning FP types,
and re-implement it in terms of getConstant instead of getUnknown.

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

14 years agocreate an MCStreamer and provide it to AsmParser.
Chris Lattner [Wed, 24 Jun 2009 00:52:40 +0000 (00:52 +0000)]
create an MCStreamer and provide it to AsmParser.

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

14 years agostub out a trivial constructor method.
Chris Lattner [Wed, 24 Jun 2009 00:51:35 +0000 (00:51 +0000)]
stub out a trivial constructor method.

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

14 years agoUse ScalarEvolution::getConstant instead of getUnknown to create
Dan Gohman [Wed, 24 Jun 2009 00:38:39 +0000 (00:38 +0000)]
Use ScalarEvolution::getConstant instead of getUnknown to create
SCEVConstants. This cleanup is a step toward letting getUnknown
be simpler.

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

14 years agomake the lexer unique strings it lexes instead of passing them back as
Chris Lattner [Wed, 24 Jun 2009 00:33:19 +0000 (00:33 +0000)]
make the lexer unique strings it lexes instead of passing them back as
std::strings.

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

14 years agoInclude the maximum trip count expression in ScalarEvolution's print output.
Dan Gohman [Wed, 24 Jun 2009 00:33:16 +0000 (00:33 +0000)]
Include the maximum trip count expression in ScalarEvolution's print output.

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

14 years agoAdd an isAllOnesValue utility function, similar to isZero and isOne.
Dan Gohman [Wed, 24 Jun 2009 00:30:26 +0000 (00:30 +0000)]
Add an isAllOnesValue utility function, similar to isZero and isOne.

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

14 years agoDon't emit a redundant BitCastInst if the value to be defined in the
Dan Gohman [Wed, 24 Jun 2009 00:28:59 +0000 (00:28 +0000)]
Don't emit a redundant BitCastInst if the value to be defined in the
preheader is already an instruction.

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

14 years agoGuard the listeners list. Unfortunately, this requires a real static rather
Owen Anderson [Wed, 24 Jun 2009 00:25:42 +0000 (00:25 +0000)]
Guard the listeners list.  Unfortunately, this requires a real static rather
than a managed static because other managed statics can (and do) access this
list in their destructors.  Yes, I know it's horrible.

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

14 years agoProvide InitializeAllTargets and InitializeNativeTarget functions in the
Bob Wilson [Tue, 23 Jun 2009 23:59:40 +0000 (23:59 +0000)]
Provide InitializeAllTargets and InitializeNativeTarget functions in the
C bindings.  Change all the backend "Initialize" functions to have C linkage.
Change the "llvm/Config/Targets.def" header to use C-style comments to avoid
compile warnings.

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

14 years agoUpdate for MCImm -> MCValue rename.
Daniel Dunbar [Tue, 23 Jun 2009 23:39:15 +0000 (23:39 +0000)]
Update for MCImm -> MCValue rename.

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

14 years agorename MCImm ->MCValue.
Chris Lattner [Tue, 23 Jun 2009 23:31:52 +0000 (23:31 +0000)]
rename MCImm ->MCValue.

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

14 years agoTest commit: fixed spacing.
Sean Callanan [Tue, 23 Jun 2009 23:25:37 +0000 (23:25 +0000)]
Test commit: fixed spacing.

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

14 years agoAdd comments for the MCStreamer interface.
Daniel Dunbar [Tue, 23 Jun 2009 23:02:31 +0000 (23:02 +0000)]
Add comments for the MCStreamer interface.

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

14 years agoIt is not a good idea to have data member's name match argument's name. In fact,...
Devang Patel [Tue, 23 Jun 2009 22:25:41 +0000 (22:25 +0000)]
It is not a good idea to have data member's name match argument's name. In fact, it is a simple receipe to waste an hour or so.

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

14 years agoUse getReturnTypeName() to print return type.
Devang Patel [Tue, 23 Jun 2009 22:23:13 +0000 (22:23 +0000)]
Use getReturnTypeName() to print return type.

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

14 years agoupgrade
Devang Patel [Tue, 23 Jun 2009 22:11:37 +0000 (22:11 +0000)]
upgrade

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

14 years agoAdd DISubprogram::getReturnTypeName()
Devang Patel [Tue, 23 Jun 2009 22:07:48 +0000 (22:07 +0000)]
Add DISubprogram::getReturnTypeName()

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

14 years agoStart flushing out MCContext.
Daniel Dunbar [Tue, 23 Jun 2009 22:01:43 +0000 (22:01 +0000)]
Start flushing out MCContext.
 - Lives inside new library lib/MC (LLVMMC.a)

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

14 years agoSet svn:ignore for {llvm/Config/AsmPrinters,Targets}.def
Daniel Dunbar [Tue, 23 Jun 2009 21:55:46 +0000 (21:55 +0000)]
Set svn:ignore for {llvm/Config/AsmPrinters,Targets}.def

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

14 years agoUse atomic operations when accessing statistics, and make the lazy initialization...
Owen Anderson [Tue, 23 Jun 2009 21:19:38 +0000 (21:19 +0000)]
Use atomic operations when accessing statistics, and make the lazy initialization of statistics actually threadsafe.

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

14 years agoAdd atomic multiply and divide operations, built on top of CompareAndSwap.
Owen Anderson [Tue, 23 Jun 2009 21:19:04 +0000 (21:19 +0000)]
Add atomic multiply and divide operations, built on top of CompareAndSwap.

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

14 years agoReinstate target dependencies on Table_gen targets in CMake
Douglas Gregor [Tue, 23 Jun 2009 21:05:21 +0000 (21:05 +0000)]
Reinstate target dependencies on Table_gen targets in CMake

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

14 years agoMake timers threadsafe again. This isn't quite as nice as I'd hoped (it uses locking...
Owen Anderson [Tue, 23 Jun 2009 20:52:29 +0000 (20:52 +0000)]
Make timers threadsafe again.  This isn't quite as nice as I'd hoped (it uses locking rather than atomic arithmetic),
but should work on all the platforms we care about.

I might revisit this if a totally awesome way to do it occurs to me.

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

14 years agoTemporary copy-pasto to make examples compile.
Mikhail Glushenkov [Tue, 23 Jun 2009 20:47:24 +0000 (20:47 +0000)]
Temporary copy-pasto to make examples compile.

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

14 years agoMake llvmc work again.
Mikhail Glushenkov [Tue, 23 Jun 2009 20:46:48 +0000 (20:46 +0000)]
Make llvmc work again.

Chris recently broke llvmc with his Makefile changes (r75379). That patch made
the global change .o -> .a, which caused built-in llvmc plugins to stop working
since plugin initialization in llvmc is based on static variables not referenced
from the main executable. This patch implements auto-generated forced references
to the plugin libraries.

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

14 years agoTypo.
Mikhail Glushenkov [Tue, 23 Jun 2009 20:46:00 +0000 (20:46 +0000)]
Typo.

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