oota-llvm.git
15 years agoNewNightlyTest: Pull most VERBOSE handling into RunLoggedCommand function.
Daniel Dunbar [Fri, 26 Jun 2009 02:30:49 +0000 (02:30 +0000)]
NewNightlyTest: Pull most VERBOSE handling into RunLoggedCommand function.

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

15 years agoLet's ignore MDStrings also!
Devang Patel [Fri, 26 Jun 2009 02:26:12 +0000 (02:26 +0000)]
Let's ignore MDStrings also!

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

15 years agoRemove unnecessary includes.
Devang Patel [Fri, 26 Jun 2009 02:25:46 +0000 (02:25 +0000)]
Remove unnecessary includes.

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

15 years agoFix may-be-used-uninitialized warning.
Daniel Dunbar [Fri, 26 Jun 2009 02:03:52 +0000 (02:03 +0000)]
Fix may-be-used-uninitialized warning.

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

15 years agoNewNightlyTest: Factor out LLVM{Src,Obj,Test} variables.
Daniel Dunbar [Fri, 26 Jun 2009 01:53:05 +0000 (01:53 +0000)]
NewNightlyTest: Factor out LLVM{Src,Obj,Test} variables.
 - They can be overriden on the command line as well.

Add -teelogs option, which will also print the various logs on stdout.

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

15 years agoRemove debug info anchors - llvm.dbg.compile_units, llvm.dbg.subprograms
Devang Patel [Fri, 26 Jun 2009 01:49:18 +0000 (01:49 +0000)]
Remove debug info anchors - llvm.dbg.compile_units, llvm.dbg.subprograms
and llvm.dbg.global_variables.

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

15 years agoFix unused variable warnings.
Daniel Dunbar [Fri, 26 Jun 2009 01:34:35 +0000 (01:34 +0000)]
Fix unused variable warnings.

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

15 years agoFix spelling of 'count'
Daniel Dunbar [Fri, 26 Jun 2009 01:33:02 +0000 (01:33 +0000)]
Fix spelling of 'count'

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

15 years agoFix error in the Win32 implementation pointed out by Howard Su.
Owen Anderson [Fri, 26 Jun 2009 00:51:20 +0000 (00:51 +0000)]
Fix error in the Win32 implementation pointed out by Howard Su.

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

15 years agostart adding logic in isel to determine asm printer semantics, step N of M.
Chris Lattner [Fri, 26 Jun 2009 00:43:52 +0000 (00:43 +0000)]
start adding logic in isel to determine asm printer semantics, step N of M.

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

15 years agoChange this code to a form about which VC++ reportedly isn't unhappy.
Dan Gohman [Fri, 26 Jun 2009 00:35:12 +0000 (00:35 +0000)]
Change this code to a form about which VC++ reportedly isn't unhappy.

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

15 years agoFix LCSSA to avoid emitting a PHI node for the unwind destination of
Dan Gohman [Fri, 26 Jun 2009 00:31:13 +0000 (00:31 +0000)]
Fix LCSSA to avoid emitting a PHI node for the unwind destination of
an invoke instruction, since the value isn't really live across that
edge.

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

15 years agoAdd a note about commuting conditional move.
Evan Cheng [Fri, 26 Jun 2009 00:28:48 +0000 (00:28 +0000)]
Add a note about commuting conditional move.

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

15 years agoMinor code simplification.
Dan Gohman [Fri, 26 Jun 2009 00:26:03 +0000 (00:26 +0000)]
Minor code simplification.

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

15 years agoThese are done / no longer applicable.
Evan Cheng [Fri, 26 Jun 2009 00:25:27 +0000 (00:25 +0000)]
These are done / no longer applicable.

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

15 years agoMark a bunch of instructions commutable.
Evan Cheng [Fri, 26 Jun 2009 00:19:44 +0000 (00:19 +0000)]
Mark a bunch of instructions commutable.

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

15 years agotst is also commutable.
Evan Cheng [Fri, 26 Jun 2009 00:19:07 +0000 (00:19 +0000)]
tst is also commutable.

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

15 years agoCommitted the wrong version in my last commit.
Owen Anderson [Fri, 26 Jun 2009 00:17:05 +0000 (00:17 +0000)]
Committed the wrong version in my last commit.

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

15 years agoPrivatize a static variable.
Owen Anderson [Fri, 26 Jun 2009 00:15:27 +0000 (00:15 +0000)]
Privatize a static variable.

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

15 years agoGuards for the compiler driver plugin list.
Owen Anderson [Fri, 26 Jun 2009 00:06:28 +0000 (00:06 +0000)]
Guards for the compiler driver plugin list.

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

15 years agoSelect ADC, SBC, and RSC instead of the ADCS, SBCS, and RSCS when the carry bit def...
Evan Cheng [Thu, 25 Jun 2009 23:34:10 +0000 (23:34 +0000)]
Select ADC, SBC, and RSC instead of the ADCS, SBCS, and RSCS when the carry bit def is not used.

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

15 years agoSupport thread-local pretty stack traces.
Owen Anderson [Thu, 25 Jun 2009 23:31:33 +0000 (23:31 +0000)]
Support thread-local pretty stack traces.

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

15 years agoAdd support for const thread locals.
Owen Anderson [Thu, 25 Jun 2009 23:31:18 +0000 (23:31 +0000)]
Add support for const thread locals.

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

15 years agoFix typo in assertion.
Owen Anderson [Thu, 25 Jun 2009 23:28:28 +0000 (23:28 +0000)]
Fix typo in assertion.

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

15 years agoUse MVN for ~t2_so_imm immediates.
David Goodwin [Thu, 25 Jun 2009 23:11:21 +0000 (23:11 +0000)]
Use MVN for ~t2_so_imm immediates.

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

15 years agoAdd a configure test for pthread_getspecific, and use it when building ThreadLocal.
Owen Anderson [Thu, 25 Jun 2009 23:10:26 +0000 (23:10 +0000)]
Add a configure test for pthread_getspecific, and use it when building ThreadLocal.

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

15 years agoAdd Def/Use of CPSR for Thumb-1 instructions.
David Goodwin [Thu, 25 Jun 2009 22:49:55 +0000 (22:49 +0000)]
Add Def/Use of CPSR for Thumb-1 instructions.

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

15 years agoMC: Parse .org directives.
Daniel Dunbar [Thu, 25 Jun 2009 22:44:51 +0000 (22:44 +0000)]
MC: Parse .org directives.

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

15 years agoSimplify.
Devang Patel [Thu, 25 Jun 2009 22:36:02 +0000 (22:36 +0000)]
Simplify.

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

15 years agoUnbreak mingw build. Patch by Viktor Kutuzov.
Evan Cheng [Thu, 25 Jun 2009 22:04:44 +0000 (22:04 +0000)]
Unbreak mingw build. Patch by Viktor Kutuzov.

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

15 years agoDon't grep the -debug output. This isn't the way to test changes.
Bill Wendling [Thu, 25 Jun 2009 21:59:32 +0000 (21:59 +0000)]
Don't grep the -debug output. This isn't the way to test changes.

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

15 years agoUpdate cmake build files.
Owen Anderson [Thu, 25 Jun 2009 21:58:34 +0000 (21:58 +0000)]
Update cmake build files.

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

15 years agoAdd a class for supporting platform independent thread-local storage.
Owen Anderson [Thu, 25 Jun 2009 21:58:01 +0000 (21:58 +0000)]
Add a class for supporting platform independent thread-local storage.

Windows people, please double-check/patch this.

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

15 years agoMC: Parse .set and assignments.
Daniel Dunbar [Thu, 25 Jun 2009 21:56:11 +0000 (21:56 +0000)]
MC: Parse .set and assignments.

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

15 years agodown with unwind info :)
Chris Lattner [Thu, 25 Jun 2009 21:48:17 +0000 (21:48 +0000)]
down with unwind info :)

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

15 years agoadd targetflags to jump tables and constant pool entries.
Chris Lattner [Thu, 25 Jun 2009 21:35:31 +0000 (21:35 +0000)]
add targetflags to jump tables and constant pool entries.

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

15 years agoallow setting target operand flags on TargetGlobalAddress nodes.
Chris Lattner [Thu, 25 Jun 2009 21:21:14 +0000 (21:21 +0000)]
allow setting target operand flags on TargetGlobalAddress nodes.

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

15 years agoMC: Truncate values when printing, to keep 'as' happy.
Daniel Dunbar [Thu, 25 Jun 2009 21:03:18 +0000 (21:03 +0000)]
MC: Truncate values when printing, to keep 'as' happy.

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

15 years agoISD::ADDE / ISD::SUBE updates the carry bit so they should isle to ADCS and SBCS...
Evan Cheng [Thu, 25 Jun 2009 20:59:23 +0000 (20:59 +0000)]
ISD::ADDE / ISD::SUBE updates the carry bit so they should isle to ADCS and SBCS / RSCS.

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

15 years agostart bringing targetoperand flags into isel, first up, ExternalSymbol.
Chris Lattner [Thu, 25 Jun 2009 18:45:50 +0000 (18:45 +0000)]
start bringing targetoperand flags into isel, first up, ExternalSymbol.

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

15 years agoBetter error message.
Mikhail Glushenkov [Thu, 25 Jun 2009 18:21:34 +0000 (18:21 +0000)]
Better error message.

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

15 years agoRegenerate.
Mikhail Glushenkov [Thu, 25 Jun 2009 18:21:10 +0000 (18:21 +0000)]
Regenerate.

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

15 years agoUpdate documentation.
Mikhail Glushenkov [Thu, 25 Jun 2009 18:20:44 +0000 (18:20 +0000)]
Update documentation.

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

15 years agoMake -save-temps behave like in GCC 4.5.
Mikhail Glushenkov [Thu, 25 Jun 2009 18:20:10 +0000 (18:20 +0000)]
Make -save-temps behave like in GCC 4.5.

The -save-temps option now behaves like described in GCC 4.5 release notes
(you can specify output directory for temporary files with -save-temps=obj
-o $DIRNAME). I do not have GCC 4.5 installed, so if there are any
inconsistencies between llvmc and GCC in the implementation of this
feature, please let me know.

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

15 years agoPrivatize this map.
Owen Anderson [Thu, 25 Jun 2009 18:13:04 +0000 (18:13 +0000)]
Privatize this map.

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

15 years agoGuard dynamic library loading.
Owen Anderson [Thu, 25 Jun 2009 18:12:44 +0000 (18:12 +0000)]
Guard dynamic library loading.
I did my best at implementing this for Win32, but I don't have a way to test it.
Can someone with access to a Win32 machine test/fix this?

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

15 years agoAdded floating point conditional operations support via libcalls.
Sanjiv Gupta [Thu, 25 Jun 2009 18:12:06 +0000 (18:12 +0000)]
Added floating point conditional operations support via libcalls.

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

15 years agosimplify shouldPrintPLT
Chris Lattner [Thu, 25 Jun 2009 17:58:52 +0000 (17:58 +0000)]
simplify shouldPrintPLT

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

15 years agoTest commit
David Goodwin [Thu, 25 Jun 2009 17:52:32 +0000 (17:52 +0000)]
Test commit

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

15 years agoUse target-specific machine operand flags to eliminate a gross hack
Chris Lattner [Thu, 25 Jun 2009 17:38:33 +0000 (17:38 +0000)]
Use target-specific machine operand flags to eliminate a gross hack
from the asmprinter.

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

15 years agojust eliminate the code entirely!
Chris Lattner [Thu, 25 Jun 2009 17:28:07 +0000 (17:28 +0000)]
just eliminate the code entirely!

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

15 years agoClone target flags when copying mbb operands.
Chris Lattner [Thu, 25 Jun 2009 17:21:32 +0000 (17:21 +0000)]
Clone target flags when copying mbb operands.

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

15 years agoProvide guards for this shared structure. I'm not sure this actually needs
Owen Anderson [Thu, 25 Jun 2009 17:09:00 +0000 (17:09 +0000)]
Provide guards for this shared structure.  I'm not sure this actually needs
to be shared, but how/where to privatize it is not immediately clear to me.

If any SelectionDAG experts see a better solution, please share!

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

15 years agoPrivatize some more debug-related static data.
Owen Anderson [Thu, 25 Jun 2009 16:55:32 +0000 (16:55 +0000)]
Privatize some more debug-related static data.

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

15 years agoUse a more correct atomic increment style. This isn't really necessary in
Owen Anderson [Thu, 25 Jun 2009 16:32:45 +0000 (16:32 +0000)]
Use a more correct atomic increment style.  This isn't really necessary in
this case, but it should help avoid issues in the future.

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

15 years agoRevert 74164. We'll want to use this method later.
Bob Wilson [Thu, 25 Jun 2009 16:03:07 +0000 (16:03 +0000)]
Revert 74164.  We'll want to use this method later.

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

15 years agoIdentify unconditional gotos and generate a page sel instructions before them.
Sanjiv Gupta [Thu, 25 Jun 2009 11:03:14 +0000 (11:03 +0000)]
Identify unconditional gotos and generate a page sel instructions before them.

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

15 years agoSupport Constant Pool Sections
Bruno Cardoso Lopes [Thu, 25 Jun 2009 07:36:24 +0000 (07:36 +0000)]
Support Constant Pool Sections
Add section symbols to the symbol table

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

15 years agoRemove unused hasV6T2Ops method. We already have a separate feature to
Bob Wilson [Thu, 25 Jun 2009 05:20:31 +0000 (05:20 +0000)]
Remove unused hasV6T2Ops method.  We already have a separate feature to
identify Thumb2.

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

15 years agoAdd missing dependencies to the CMake build system.
Douglas Gregor [Thu, 25 Jun 2009 05:03:06 +0000 (05:03 +0000)]
Add missing dependencies to the CMake build system.

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

15 years agoadd file to cmake
Chris Lattner [Thu, 25 Jun 2009 04:29:08 +0000 (04:29 +0000)]
add file to cmake

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

15 years agoChange thumb2 instruction definitions so if-converter so add predicate operands and...
Evan Cheng [Thu, 25 Jun 2009 02:08:06 +0000 (02:08 +0000)]
Change thumb2 instruction definitions so if-converter so add predicate operands and / or flip the 's' bit to set the condition flag.

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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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