oota-llvm.git
14 years ago80-columns.
Eric Christopher [Thu, 22 Jul 2010 00:26:08 +0000 (00:26 +0000)]
80-columns.

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

14 years agoMake fast isel win64-aware w.r.t. call-clobbered regs
Nate Begeman [Thu, 22 Jul 2010 00:09:39 +0000 (00:09 +0000)]
Make fast isel win64-aware w.r.t. call-clobbered regs

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

14 years agoMore register pressure aware scheduling work.
Evan Cheng [Wed, 21 Jul 2010 23:53:58 +0000 (23:53 +0000)]
More register pressure aware scheduling work.

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

14 years agoAdd more 256-bit forms for a bunch of regular AVX instructions
Bruno Cardoso Lopes [Wed, 21 Jul 2010 23:53:50 +0000 (23:53 +0000)]
Add more 256-bit forms for a bunch of regular AVX instructions
Add 64-bit (GR64) versions of some instructions (which are not
described in their SSE forms, but are described in AVX)

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

14 years agolit: Add support for 'REQUIRES: feature-one, feature-two, ...' in the
Daniel Dunbar [Wed, 21 Jul 2010 23:39:57 +0000 (23:39 +0000)]
lit: Add support for 'REQUIRES: feature-one, feature-two, ...' in the
integrated-test formats (sh and tcl style). The particular features which get
recognized are up to the test suite itself to define.

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

14 years agoMake NamedMDNode not be a subclass of Value, and simplify the interface
Dan Gohman [Wed, 21 Jul 2010 23:38:33 +0000 (23:38 +0000)]
Make NamedMDNode not be a subclass of Value, and simplify the interface
for creating and populating NamedMDNodes.

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

14 years agoFixes win64. It was broken by a previous patch where I missed the !isWin64
Rafael Espindola [Wed, 21 Jul 2010 23:19:57 +0000 (23:19 +0000)]
Fixes win64. It was broken by a previous patch where I missed the !isWin64
and then forced every register to be a vr128 on win64.

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

14 years agoAdd INSTANTIATE_AG_PASS, which combines RegisterPass<> with RegisterAnalysisGroup...
Owen Anderson [Wed, 21 Jul 2010 23:07:00 +0000 (23:07 +0000)]
Add INSTANTIATE_AG_PASS, which combines RegisterPass<> with RegisterAnalysisGroup<> for pass registration.

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

14 years agoFor ARM/Darwin, add a dwarf entry indicating whether a function is arm or thumb
Jim Grosbach [Wed, 21 Jul 2010 23:03:52 +0000 (23:03 +0000)]
For ARM/Darwin, add a dwarf entry indicating whether a function is arm or thumb
rdar://8202967

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

14 years agoadd some rough support for making mcinst lowering work without an
Chris Lattner [Wed, 21 Jul 2010 23:03:35 +0000 (23:03 +0000)]
add some rough support for making mcinst lowering work without an
asmprinter or mangler around.  This is option #B for killing off
X86InstrInfo::GetInstSizeInBytes.  Option #A (killing
"needsexactsize") was sent for consideration to llvmdev.

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

14 years agoFirst stab at updating the documentation for INITIALIZE_PASS().
Owen Anderson [Wed, 21 Jul 2010 22:58:07 +0000 (22:58 +0000)]
First stab at updating the documentation for INITIALIZE_PASS().

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

14 years agoBaby steps towards ARM fast-isel.
Eric Christopher [Wed, 21 Jul 2010 22:26:11 +0000 (22:26 +0000)]
Baby steps towards ARM fast-isel.

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

14 years agoFix batch of converting RegisterPass<> to INTIALIZE_PASS().
Owen Anderson [Wed, 21 Jul 2010 22:09:45 +0000 (22:09 +0000)]
Fix batch of converting RegisterPass<> to INTIALIZE_PASS().

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

14 years agoHack around extracts that aren't easy to process.
Eric Christopher [Wed, 21 Jul 2010 22:07:19 +0000 (22:07 +0000)]
Hack around extracts that aren't easy to process.

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

14 years agotidy up
Jim Grosbach [Wed, 21 Jul 2010 22:04:53 +0000 (22:04 +0000)]
tidy up

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

14 years agoAdd missing AVX convert instructions. Those instructions are not described in their...
Bruno Cardoso Lopes [Wed, 21 Jul 2010 21:37:59 +0000 (21:37 +0000)]
Add missing AVX convert instructions. Those instructions are not described in their SSE forms (although they exist), but add the AVX forms anyway, so the assembler can benefit from it

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

14 years agotidy up.
Jim Grosbach [Wed, 21 Jul 2010 21:36:25 +0000 (21:36 +0000)]
tidy up.

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

14 years ago80 column and trailing whitespace cleanup
Jim Grosbach [Wed, 21 Jul 2010 21:21:52 +0000 (21:21 +0000)]
80 column and trailing whitespace cleanup

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

14 years agoAdd some debug output to help diagnose PR7689.
Dan Gohman [Wed, 21 Jul 2010 21:18:37 +0000 (21:18 +0000)]
Add some debug output to help diagnose PR7689.

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

14 years agoFix a couple issues with Win64 ABI
Nate Begeman [Wed, 21 Jul 2010 20:49:52 +0000 (20:49 +0000)]
Fix a couple issues with Win64 ABI

1) all registers were spilled as xmm, regardless of actual size
2) win64 abi doesn't do the varargs-size-in-%al thing

Still to look into:

xmm6-15 are marked as clobbered by call instructions on win64 even though they aren't.

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

14 years agoAdd the INITIALIZE_PASS macro.
Owen Anderson [Wed, 21 Jul 2010 20:46:41 +0000 (20:46 +0000)]
Add the INITIALIZE_PASS macro.

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

14 years agoAvoid AVX instructions to be selected instead of its SSE form
Bruno Cardoso Lopes [Wed, 21 Jul 2010 20:38:42 +0000 (20:38 +0000)]
Avoid AVX instructions to be selected instead of its SSE form

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

14 years agoNamedMDNode is never an operand.
Dan Gohman [Wed, 21 Jul 2010 20:25:43 +0000 (20:25 +0000)]
NamedMDNode is never an operand.

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

14 years agoDisallow null as a named metadata operand.
Dan Gohman [Wed, 21 Jul 2010 18:54:18 +0000 (18:54 +0000)]
Disallow null as a named metadata operand.
Make MDNode::destroy private.
Fix the one thing that used MDNode::destroy, outside of MDNode itself.

One should never delete or destroy an MDNode explicitly. MDNodes
implicitly go away when there are no references to them (implementation
details aside).

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

14 years agoUse System/DataTypes.h instead of stdint.h, which isn't portable.
Daniel Dunbar [Wed, 21 Jul 2010 18:48:59 +0000 (18:48 +0000)]
Use System/DataTypes.h instead of stdint.h, which isn't portable.

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

14 years agoUse TrackingVH instead of WeakVH for NamedMDNode's operands, since nodes
Dan Gohman [Wed, 21 Jul 2010 18:01:42 +0000 (18:01 +0000)]
Use TrackingVH instead of WeakVH for NamedMDNode's operands, since nodes
referenced by NamedMDNodes shouldn't be deleted.

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

14 years agoTidy.
Dan Gohman [Wed, 21 Jul 2010 17:53:53 +0000 (17:53 +0000)]
Tidy.

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

14 years agoMove the smarts of AnalysisGroup registration into PassRegistry.
Owen Anderson [Wed, 21 Jul 2010 17:52:45 +0000 (17:52 +0000)]
Move the smarts of AnalysisGroup registration into PassRegistry.

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

14 years agoDelete an obsolete comment.
Dan Gohman [Wed, 21 Jul 2010 17:21:27 +0000 (17:21 +0000)]
Delete an obsolete comment.

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

14 years agostrip out the 2.7 release notes, this really is the 2.8 release notes
Chris Lattner [Wed, 21 Jul 2010 15:57:40 +0000 (15:57 +0000)]
strip out the 2.7 release notes, this really is the 2.8 release notes
now. Add a few items like the fpstackifier improvements.

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

14 years agoFix calling convention on ARM if vfp2+ is enabled.
Rafael Espindola [Wed, 21 Jul 2010 11:38:30 +0000 (11:38 +0000)]
Fix calling convention on ARM if vfp2+ is enabled.

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

14 years agoappease Validator
Gabor Greif [Wed, 21 Jul 2010 10:22:41 +0000 (10:22 +0000)]
appease Validator

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

14 years agoadd info on operand rotation
Gabor Greif [Wed, 21 Jul 2010 10:20:08 +0000 (10:20 +0000)]
add info on operand rotation

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

14 years agoPulling out previous patch, must've run the tests in
Eric Christopher [Wed, 21 Jul 2010 09:23:56 +0000 (09:23 +0000)]
Pulling out previous patch, must've run the tests in
the wrong directory.

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

14 years agoLower MEMBARRIER on x86 and support processors without SSE2.
Eric Christopher [Wed, 21 Jul 2010 09:05:23 +0000 (09:05 +0000)]
Lower MEMBARRIER on x86 and support processors without SSE2.

Fixes a pile of libgomp failures in the llvm-gcc testsuite due
to the libcall not existing.

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

14 years agoChanged OStream templates to functions on raw_ostream, removed the unused "renderWarn...
Lang Hames [Wed, 21 Jul 2010 09:02:06 +0000 (09:02 +0000)]
Changed OStream templates to functions on raw_ostream, removed the unused "renderWarnings" function.

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

14 years agoAdd AVX only vzeroall and vzeroupper instructions
Bruno Cardoso Lopes [Wed, 21 Jul 2010 08:56:24 +0000 (08:56 +0000)]
Add AVX only vzeroall and vzeroupper instructions

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

14 years agorestore aesthetics
Gabor Greif [Wed, 21 Jul 2010 08:25:55 +0000 (08:25 +0000)]
restore aesthetics

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

14 years agoTeach bottom up pre-ra scheduler to track register pressure. Work in progress.
Evan Cheng [Wed, 21 Jul 2010 06:09:07 +0000 (06:09 +0000)]
Teach bottom up pre-ra scheduler to track register pressure. Work in progress.

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

14 years agoTurn this test on again after the llvm-gcc change in r108986.
Eric Christopher [Wed, 21 Jul 2010 04:54:06 +0000 (04:54 +0000)]
Turn this test on again after the llvm-gcc change in r108986.

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

14 years agoUpdate this to use a "valid" alignment.
Eric Christopher [Wed, 21 Jul 2010 04:51:24 +0000 (04:51 +0000)]
Update this to use a "valid" alignment.

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

14 years agoAdd new AVX vpermilps, vpermilpd and vperm2f128 instructions
Bruno Cardoso Lopes [Wed, 21 Jul 2010 03:07:42 +0000 (03:07 +0000)]
Add new AVX vpermilps, vpermilpd and vperm2f128 instructions

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

14 years agoAdd new AVX vmaskmov instructions, and also fix the VEX encoding bits to support it
Bruno Cardoso Lopes [Wed, 21 Jul 2010 02:46:58 +0000 (02:46 +0000)]
Add new AVX vmaskmov instructions, and also fix the VEX encoding bits to support it

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

14 years agoGive MDNode printing has access to the current Module in more
Dan Gohman [Tue, 20 Jul 2010 23:55:01 +0000 (23:55 +0000)]
Give MDNode printing has access to the current Module in more
cases. This will be needed when function-local metadata can
appear in places that aren't intrinsic function arguments.

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

14 years agoChange the createSpiller interface to take a MachineFunctionPass argument.
Jakob Stoklund Olesen [Tue, 20 Jul 2010 23:50:15 +0000 (23:50 +0000)]
Change the createSpiller interface to take a MachineFunctionPass argument.

The spillers can pluck the analyses they need from the pass reference.

Switch some never-null pointers to references.

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

14 years agoMake this code a little more readable.
Dan Gohman [Tue, 20 Jul 2010 23:49:44 +0000 (23:49 +0000)]
Make this code a little more readable.

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

14 years agoUse DebugLocs instead of MDNodes.
Dan Gohman [Tue, 20 Jul 2010 23:49:05 +0000 (23:49 +0000)]
Use DebugLocs instead of MDNodes.

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

14 years agoMove the handling of PassRegistrationListener's to PassRegistry.
Owen Anderson [Tue, 20 Jul 2010 23:41:56 +0000 (23:41 +0000)]
Move the handling of PassRegistrationListener's to PassRegistry.

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

14 years agoAdd new AVX vextractf128 instructions
Bruno Cardoso Lopes [Tue, 20 Jul 2010 23:19:02 +0000 (23:19 +0000)]
Add new AVX vextractf128 instructions

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

14 years agoFix a typo.
Dan Gohman [Tue, 20 Jul 2010 23:10:36 +0000 (23:10 +0000)]
Fix a typo.

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

14 years agoDon't look up the "dbg" metadata kind by name.
Dan Gohman [Tue, 20 Jul 2010 23:09:34 +0000 (23:09 +0000)]
Don't look up the "dbg" metadata kind by name.

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

14 years agomake asmprinter optional, even though passing in null will cause things to explode...
Chris Lattner [Tue, 20 Jul 2010 22:45:33 +0000 (22:45 +0000)]
make asmprinter optional, even though passing in null will cause things to explode right now.

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

14 years agoAdded support to MachO.h for many defines and structures that are needed
Greg Clayton [Tue, 20 Jul 2010 22:36:00 +0000 (22:36 +0000)]
Added support to MachO.h for many defines and structures that are needed
to Parse mach-o files. All defines have been renamed to not conflict with
#defines in mach header files, all structures were left named the same but
are in the llvm::MachO namespace.

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

14 years agocontinue pushing dependencies around.
Chris Lattner [Tue, 20 Jul 2010 22:35:40 +0000 (22:35 +0000)]
continue pushing dependencies around.

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

14 years agoreduce X86MCInstLower dependencies on asmprinter.
Chris Lattner [Tue, 20 Jul 2010 22:30:53 +0000 (22:30 +0000)]
reduce X86MCInstLower dependencies on asmprinter.

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

14 years agopass around MF, not MMI.
Chris Lattner [Tue, 20 Jul 2010 22:26:07 +0000 (22:26 +0000)]
pass around MF, not MMI.

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

14 years agoRename removeAllMetadata to clearMetadataHashEntries and simplify
Dan Gohman [Tue, 20 Jul 2010 22:25:04 +0000 (22:25 +0000)]
Rename removeAllMetadata to clearMetadataHashEntries and simplify
it to just do the things that need to be done when an instruction
is deleted.

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

14 years agocleanups.
Chris Lattner [Tue, 20 Jul 2010 22:23:57 +0000 (22:23 +0000)]
cleanups.

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

14 years agomove two asmprinter methods into the asmprinter .cpp file.
Chris Lattner [Tue, 20 Jul 2010 22:18:19 +0000 (22:18 +0000)]
move two asmprinter methods into the asmprinter .cpp file.

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

14 years agoImplement loop splitting analysis.
Jakob Stoklund Olesen [Tue, 20 Jul 2010 21:46:58 +0000 (21:46 +0000)]
Implement loop splitting analysis.
Determine which loop exit blocks need a 'pre-exit' block inserted.
Recognize when this would be impossible.

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

14 years agoRemove an obsolete comment.
Dan Gohman [Tue, 20 Jul 2010 21:45:17 +0000 (21:45 +0000)]
Remove an obsolete comment.

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

14 years agoAdd support for remapping metadata kind IDs when reading in a
Dan Gohman [Tue, 20 Jul 2010 21:42:28 +0000 (21:42 +0000)]
Add support for remapping metadata kind IDs when reading in a
bitcode file, so that two bitcode files where the same metadata kind
name happens to have been assigned a different ID can still be
linked together.

Eliminate the restriction that metadata kind IDs can't be 0.

Change MD_dbg from 1 to 0, because we can now, and because it's
less mysterious that way.

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

14 years agoInclude some tests for the recently committed ELF section directive
Matt Fleming [Tue, 20 Jul 2010 21:37:30 +0000 (21:37 +0000)]
Include some tests for the recently committed ELF section directive
handlers.

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

14 years agoFix test for switch statements and increase
Dale Johannesen [Tue, 20 Jul 2010 21:29:12 +0000 (21:29 +0000)]
Fix test for switch statements and increase
threshold a bit per experimentation.

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

14 years agothere is now no reason to link in TARGETS_TO_BUILD since we list
Chris Lattner [Tue, 20 Jul 2010 21:26:27 +0000 (21:26 +0000)]
there is now no reason to link in TARGETS_TO_BUILD since we list
arm explicitly.  X86 and ARM are the only two targets that support
disassembly, so our explicit list is enough.  These other targets
weren't getting pulled in anyway though, since there were no
references to their symbols.

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

14 years agofix edis to only try to link in the x86 parts if the x86 backend is
Chris Lattner [Tue, 20 Jul 2010 21:23:57 +0000 (21:23 +0000)]
fix edis to only try to link in the x86 parts if the x86 backend is
enabled.  Add direct ARM support.

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

14 years agoMove more functionality from Pass.cpp to PassRegistry.cpp. This global will go away...
Owen Anderson [Tue, 20 Jul 2010 21:22:24 +0000 (21:22 +0000)]
Move more functionality from Pass.cpp to PassRegistry.cpp.  This global will go away eventually, but for now we still need it around.

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

14 years agoFix edis makefile
Douglas Gregor [Tue, 20 Jul 2010 21:21:27 +0000 (21:21 +0000)]
Fix edis makefile

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

14 years agoprune #includes a little.
Chris Lattner [Tue, 20 Jul 2010 21:17:29 +0000 (21:17 +0000)]
prune #includes a little.

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

14 years agoAdd some more handlers for ELF section directives.
Matt Fleming [Tue, 20 Jul 2010 21:12:46 +0000 (21:12 +0000)]
Add some more handlers for ELF section directives.

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

14 years agoFormatting.
Eric Christopher [Tue, 20 Jul 2010 21:05:58 +0000 (21:05 +0000)]
Formatting.

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

14 years agofix DISABLE_EDIS
Chris Lattner [Tue, 20 Jul 2010 20:55:57 +0000 (20:55 +0000)]
fix DISABLE_EDIS

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

14 years agoAdd the rest of the SHT_* values as defined in the System V ABI
Matt Fleming [Tue, 20 Jul 2010 20:52:18 +0000 (20:52 +0000)]
Add the rest of the SHT_* values as defined in the System V ABI
ELF specification.

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

14 years agoAdd support for a new Apple-style build target, EmbeddedSim, that builds
Bob Wilson [Tue, 20 Jul 2010 20:44:02 +0000 (20:44 +0000)]
Add support for a new Apple-style build target, EmbeddedSim, that builds
llvmCore for the iOS Simulator.

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

14 years agothis logic is handled by tools/makefile.
Chris Lattner [Tue, 20 Jul 2010 20:33:59 +0000 (20:33 +0000)]
this logic is handled by tools/makefile.

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

14 years agoTestcase for llvm-gcc commit r108910.
Eric Christopher [Tue, 20 Jul 2010 20:32:47 +0000 (20:32 +0000)]
Testcase for llvm-gcc commit r108910.

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

14 years agoRemove setDbgMetadata and getDbgMetadata; their users have been
Dan Gohman [Tue, 20 Jul 2010 20:18:21 +0000 (20:18 +0000)]
Remove setDbgMetadata and getDbgMetadata; their users have been
replaced with setDebugLoc and getDebugLoc.

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

14 years agoLet's get those buildbots green: #include is needed in the header, not just the imple...
Owen Anderson [Tue, 20 Jul 2010 20:16:11 +0000 (20:16 +0000)]
Let's get those buildbots green: #include is needed in the header, not just the implementation.

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

14 years agoUse getDebugLoc and setDebugLoc instead of getDbgMetadata and setDbgMetadata,
Dan Gohman [Tue, 20 Jul 2010 20:09:07 +0000 (20:09 +0000)]
Use getDebugLoc and setDebugLoc instead of getDbgMetadata and setDbgMetadata,
avoiding MDNode overhead.

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

14 years agoapparently also missing an include.
Chris Lattner [Tue, 20 Jul 2010 20:06:19 +0000 (20:06 +0000)]
apparently also missing an include.

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

14 years agothis is in System
Chris Lattner [Tue, 20 Jul 2010 19:54:01 +0000 (19:54 +0000)]
this is in System

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

14 years agoremove option from tablegen for building static header.
Chris Lattner [Tue, 20 Jul 2010 19:45:21 +0000 (19:45 +0000)]
remove option from tablegen for building static header.

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

14 years agoAdd new AVX instruction vinsertf128
Bruno Cardoso Lopes [Tue, 20 Jul 2010 19:44:51 +0000 (19:44 +0000)]
Add new AVX instruction vinsertf128

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

14 years agoturn this into a normal header.
Chris Lattner [Tue, 20 Jul 2010 19:43:19 +0000 (19:43 +0000)]
turn this into a normal header.

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

14 years agohopefully heal the linux builders
Chris Lattner [Tue, 20 Jul 2010 19:40:51 +0000 (19:40 +0000)]
hopefully heal the linux builders

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

14 years agotidy up
Gabor Greif [Tue, 20 Jul 2010 19:35:55 +0000 (19:35 +0000)]
tidy up

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

14 years agoI just fail with SVN today.
Owen Anderson [Tue, 20 Jul 2010 19:23:55 +0000 (19:23 +0000)]
I just fail with SVN today.

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

14 years agothere is no reason to dynamically generate a static header.
Chris Lattner [Tue, 20 Jul 2010 18:59:58 +0000 (18:59 +0000)]
there is no reason to dynamically generate a static header.

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

14 years agodrop edinfo.inc into the objdir for src!=objdir builds.
Chris Lattner [Tue, 20 Jul 2010 18:53:27 +0000 (18:53 +0000)]
drop edinfo.inc into the objdir for src!=objdir builds.

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

14 years agoOops.
Owen Anderson [Tue, 20 Jul 2010 18:53:25 +0000 (18:53 +0000)]
Oops.

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

14 years agoUpdate header.
Eric Christopher [Tue, 20 Jul 2010 18:46:43 +0000 (18:46 +0000)]
Update header.

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

14 years agoConvert the internal PassRegistrar class into a new, external PassRegistry class...
Owen Anderson [Tue, 20 Jul 2010 18:39:06 +0000 (18:39 +0000)]
Convert the internal PassRegistrar class into a new, external PassRegistry class.  No intended functionality change at this point.

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

14 years agoedis needs to link in mcdisassembler.
Chris Lattner [Tue, 20 Jul 2010 18:35:23 +0000 (18:35 +0000)]
edis needs to link in mcdisassembler.

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

14 years agoupdate cmake.
Chris Lattner [Tue, 20 Jul 2010 18:33:29 +0000 (18:33 +0000)]
update cmake.

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

14 years agohopefully teach cmake to build the .inc file.
Chris Lattner [Tue, 20 Jul 2010 18:33:21 +0000 (18:33 +0000)]
hopefully teach cmake to build the .inc file.

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

14 years agoedinfo doesn't need to be built here.
Chris Lattner [Tue, 20 Jul 2010 18:31:54 +0000 (18:31 +0000)]
edinfo doesn't need to be built here.

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

14 years agocmake too
Chris Lattner [Tue, 20 Jul 2010 18:30:37 +0000 (18:30 +0000)]
cmake too

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

14 years agoforgot to add a file
Chris Lattner [Tue, 20 Jul 2010 18:29:50 +0000 (18:29 +0000)]
forgot to add a file

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

14 years agostart straightening out libedis's dependencies and make it fit
Chris Lattner [Tue, 20 Jul 2010 18:25:19 +0000 (18:25 +0000)]
start straightening out libedis's dependencies and make it fit
better in the llvm world.  Among other things, this changes:

1. The guts of libedis are now moved into lib/MC/MCDisassembler
2. llvm-mc now depends on lib/MC/MCDisassembler, not tools/edis,
   so edis and mc don't have to be built in series.
3. lib/MC/MCDisassembler no longer depends on the C api, the C
   API depends on it.
4. Various code cleanup changes.

There is still a lot to be done to make edis fit with the llvm
design, but this is an incremental step in the right direction.

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

14 years agoremove testing cruft, this can be found in unittests/Support/Casting.cpp now
Gabor Greif [Tue, 20 Jul 2010 17:20:25 +0000 (17:20 +0000)]
remove testing cruft, this can be found in unittests/Support/Casting.cpp now

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