Daniel Dunbar [Mon, 14 Sep 2009 05:22:47 +0000 (05:22 +0000)]
Update CMake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81757
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 03:15:54 +0000 (03:15 +0000)]
PIC16 does allow colon after MBB labels, simplify EmitBasicBlockStart.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81755
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 03:02:37 +0000 (03:02 +0000)]
Change MCAsmStreamer to take an MCInstPrinter instead of a
full AsmPrinter, and change TargetRegistry to keep track
of registered MCInstPrinters.
llvm-mc is still linking in the entire
target foo to get the code emitter stuff, but this is an
important step in the right direction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81754
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 14 Sep 2009 02:39:01 +0000 (02:39 +0000)]
Teach 'make check-lit' to run unittests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81753
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 14 Sep 2009 02:38:53 +0000 (02:38 +0000)]
Attempt to fix some 4.0.0 build warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81752
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 14 Sep 2009 02:38:46 +0000 (02:38 +0000)]
lit: Give test formats control over test discovery.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81751
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 14 Sep 2009 02:25:34 +0000 (02:25 +0000)]
Fix a pair of comment typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81750
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 14 Sep 2009 02:25:19 +0000 (02:25 +0000)]
Fifth time's a charm! Remove ourselves as abstract type listeners once we've
been told that the type is no longer abstract.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81749
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 01:49:26 +0000 (01:49 +0000)]
Give MCInstPrinter a MCAsmInfo member, make X86ATTInstPrinter
be a MCInstPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81746
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 01:43:38 +0000 (01:43 +0000)]
add a new MCInstPrinter class, move the (trivial) MCDisassmbler ctor inline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81745
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 01:34:40 +0000 (01:34 +0000)]
tidy up a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81744
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 01:27:50 +0000 (01:27 +0000)]
slightly increase prettiness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81742
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 01:26:18 +0000 (01:26 +0000)]
emit the register table as a massive string to avoid relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81741
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 01:19:16 +0000 (01:19 +0000)]
move StringToOffsetTable out to its own header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81740
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 14 Sep 2009 01:16:36 +0000 (01:16 +0000)]
factor string table generation out to its own class. This changes
the encoding of the AsmStrs table saving a byte or two.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81739
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 14 Sep 2009 00:36:52 +0000 (00:36 +0000)]
Don't leak! Always remove oneself as a listener after adding oneself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81736
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 13 Sep 2009 23:45:39 +0000 (23:45 +0000)]
Actually remove old types from the set.
Also break the type verification stuff into its own TypeSet to keep the
Verifier pass from becoming an AbstractTypeUser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81729
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 22:45:04 +0000 (22:45 +0000)]
eliminate the TargetRegisterDesc::AsmName field, the asmprinters now have this table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81728
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 22:42:03 +0000 (22:42 +0000)]
kill off the last use of TRI::AsmName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81727
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 22:41:48 +0000 (22:41 +0000)]
add some special case handling for strangely named x86 registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81726
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 22:39:27 +0000 (22:39 +0000)]
Build (not test) the unittests as part of a normal build.
- 'make unittests' still builds and tests.
- 'make unitcheck' inside a unittest directory runs the tests in that directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81725
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 22:28:17 +0000 (22:28 +0000)]
unbreak this test by working around an asmparser bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81724
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 22:24:34 +0000 (22:24 +0000)]
'printMCInst' doesn't print newlines after instructions anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81723
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Sun, 13 Sep 2009 22:18:38 +0000 (22:18 +0000)]
CMake: New user-settable variable LLVM_TARGET_ARCH useful when
cross-compiling.
Patch by Xerxes RĂ„nby!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81722
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 13 Sep 2009 21:38:54 +0000 (21:38 +0000)]
Update the tutorial to match changes to examples/Kaleidoscope.
One change I'm not folding in is the removal of two unused variables that
caused warnings, because those were there for expository purposes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81721
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 21:31:21 +0000 (21:31 +0000)]
Move unittest driver to utils/unittest/UnitTestMain.
- This eliminates a race between building the unittests and linking the
UnitTestMain library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81719
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 21:31:07 +0000 (21:31 +0000)]
Remove unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81718
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 13 Sep 2009 21:07:59 +0000 (21:07 +0000)]
Storing a set of PATypeHolders is a bad idea because their sort order will
change as types are refined. Remove abstract types from CheckedTypes when they
we're informed that they have been refined. The only way types get refined in
the verifier is when later function passes start optimizing. Fixes PR4970.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81716
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 20:31:40 +0000 (20:31 +0000)]
remove all but one reference to TargetRegisterDesc::AsmName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81714
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 20:19:22 +0000 (20:19 +0000)]
the tblgen produced 'getRegisterName' method does not access
the object, make it static instead of const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81711
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 20:15:16 +0000 (20:15 +0000)]
switch the x86 asmprinters to use getRegisterName instead
of getting it from TRI, inst printing now is codegen context
free!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81710
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sun, 13 Sep 2009 20:14:57 +0000 (20:14 +0000)]
Fix a small issue with recent changes to this code.
The 'false.c' file wasn't being used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81709
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 20:08:00 +0000 (20:08 +0000)]
make tblgen produce a function that returns the name for a physreg.
Nothing is using this info yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81707
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 19:48:37 +0000 (19:48 +0000)]
eliminate an extraneous use of TRI::getAsmName in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81705
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 19:44:38 +0000 (19:44 +0000)]
make intel asmprinter use TRI::getAsmName instead of TRI::getName like
all the other targets. Add support for weak/linkonce linkage so it doesn't
crash on basically all nontrivial testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81704
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 19:30:11 +0000 (19:30 +0000)]
split MCInst printing out of the X86ATTInstPrinter
class into its own X86ATTInstPrinter class. The inst
printer now has just one dependence on the code generator
(TRI).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81703
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 19:10:08 +0000 (19:10 +0000)]
reduce indentation with early exit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81699
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 19:03:08 +0000 (19:03 +0000)]
second part to r81695, I missed a directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81696
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 19:02:16 +0000 (19:02 +0000)]
remove MAI::JumpTableSpecialLabelPrefix now that MAI
has real information about linker private linkage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81695
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 18:58:14 +0000 (18:58 +0000)]
Revert unittests build changes temporarily, the unit test build isn't -j safe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81692
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 18:50:22 +0000 (18:50 +0000)]
delete the fixme too! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81689
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 18:46:37 +0000 (18:46 +0000)]
merge the linux cpool/jtbl pic tests into pic.ll and convert to filecheck.
Change the picbase symbol on non-darwin systems from ".Lllvm$4.$piclabel" to
".L4$pb". The actual name doesn't matter and the darwin name is shorter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81688
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 18:43:46 +0000 (18:43 +0000)]
Build (not test) the unittests as part of a normal build.
- 'make unittests' still builds and tests.
- 'make unitcheck' inside a unittest directory runs the tests in that directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81687
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 18:33:59 +0000 (18:33 +0000)]
make X86ATTAsmPrinter::PrintPICBaseSymbol forward to X86MCInstLower.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81685
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 18:25:37 +0000 (18:25 +0000)]
replace printBasicBlockLabel with EmitBasicBlockStart,
now that printBasicBlockLabel is only used for starting
a MBB. This allows elimination of a bunch of arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81684
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 18:11:09 +0000 (18:11 +0000)]
fix MCSymbol printing on darwin to exactly match the mangler (handling of \n and " in a symbol name).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81683
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 18:04:46 +0000 (18:04 +0000)]
Make the MC symbol printer and llvm::Mangler exactly agree on mangling
for systems that don't support quoting (PR4966).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81682
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 17:25:49 +0000 (17:25 +0000)]
remove two docs about the old Sparc backend which used Value*'s for vregs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81680
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 17:24:16 +0000 (17:24 +0000)]
move old clang readme here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81679
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 13 Sep 2009 17:14:04 +0000 (17:14 +0000)]
convert some uses of printBasicBlockLabel to use GetMBBSymbol
instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81677
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 02:45:57 +0000 (02:45 +0000)]
Add LLVMGCCBINDIR to path, since LLVMC expects to find llvm-gcc in the path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81669
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 01:41:47 +0000 (01:41 +0000)]
Switch Ocaml to use llvm_supports_binding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81665
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 01:41:18 +0000 (01:41 +0000)]
tests: Add llvm_supports_binding predicate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81664
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 01:40:48 +0000 (01:40 +0000)]
tests: Use %abs_tmp instead of ./%t to make these tests portable to 'lit'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81663
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 01:39:50 +0000 (01:39 +0000)]
tests: Add a %abs_tmp substitution which is guaranteed to be a full path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81662
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 01:39:08 +0000 (01:39 +0000)]
Sink llvm-gcc dependent tests into distinct subdirs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81661
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 01:37:07 +0000 (01:37 +0000)]
Rewrite tests to not use Tcl substitution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81660
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sun, 13 Sep 2009 01:36:19 +0000 (01:36 +0000)]
Simplify LLVMC tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81659
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 13 Sep 2009 01:12:15 +0000 (01:12 +0000)]
Fix merge problem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81658
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 13 Sep 2009 00:59:43 +0000 (00:59 +0000)]
Define proper subreg sets for arm - this should fix bunch of subtle problems
with subreg - superreg mapping and also fix PR4965.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81657
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 12 Sep 2009 23:45:47 +0000 (23:45 +0000)]
Add -mattr=+sse2 to the -march=x86 version of this test. Without
sse, this code falls back to SelectionDAG isel which uses an x87
instruction, which is fine, but not what this test is testing for.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81656
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 12 Sep 2009 23:29:02 +0000 (23:29 +0000)]
Experimental fix for PR4960.
- Could we just always implement this as __clear_cache for __GNUC__?
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81655
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 23:02:08 +0000 (23:02 +0000)]
devirtualize AsmPrinter::printBasicBlockLabel since it is never overridden.
Move GetMBBSymbol up to AsmPrinter and make printBasicBlockLabel use it so that
we only have one place that decides what to name bb labels. Hopefully various
clients of printBasicBlockLabel can start using GetMBBSymbol instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81652
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 22:57:37 +0000 (22:57 +0000)]
we don't want people to override printBasicBlockLabel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81651
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 12 Sep 2009 22:24:25 +0000 (22:24 +0000)]
Remove unnecessary #include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81636
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sat, 12 Sep 2009 22:21:08 +0000 (22:21 +0000)]
Add QPR_VFP2 regclass and add copy_to_regclass nodes, where needed to
constraint the register usage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81635
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 12 Sep 2009 22:02:17 +0000 (22:02 +0000)]
Preserve the inbounds flag, so that the constant folder doesn't
recompute it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81634
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 12 Sep 2009 21:56:48 +0000 (21:56 +0000)]
Fix the build when DEBUG_SYMBOL_TABLE is set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81633
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 12 Sep 2009 21:55:12 +0000 (21:55 +0000)]
Convert llvm-link to IRReader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81632
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 21:06:08 +0000 (21:06 +0000)]
factor MBB label lowering better
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81630
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 21:01:20 +0000 (21:01 +0000)]
X86MCInstLower::Lower should only not emit anything to OutStreamer,
this means that it can only lower one MachineInstr to one MCInst. To
make this fly, we need to pull out handling of MO_GOT_ABSOLUTE_ADDRESS
(which generates an implicit label) out of X86MCInstLower.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81629
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 20:45:03 +0000 (20:45 +0000)]
eliminate the "MBBLabel" MCOperand type, and just use a MCSymbol for
MBB labels like everything else.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81628
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 20:34:57 +0000 (20:34 +0000)]
split MachineInstr -> MCInst lowering into its own class (not
being embedded into X86ATTAsmPrinter). This still depends heavily
on X86ATTAsmPrinter, but this is a step in the right direction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81627
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 20:01:36 +0000 (20:01 +0000)]
remove the "old" at&t style asmprinter. Unfortunately, most of the
operand printing crapola cannot be removed yet because it is used by
the inline asm print stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81626
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Sat, 12 Sep 2009 04:54:18 +0000 (04:54 +0000)]
Whoops. Committed the headers for r81605 - 'Moved some more index operations over to LiveIntervals.'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81609
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Sat, 12 Sep 2009 03:34:03 +0000 (03:34 +0000)]
Moved some more index operations over to LiveIntervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81605
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Sat, 12 Sep 2009 02:52:41 +0000 (02:52 +0000)]
Added the WAIT instruction to the Intel tables,
for the purposes of the disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81603
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Sat, 12 Sep 2009 02:25:20 +0000 (02:25 +0000)]
Added CMPS (string comparison) instructions for all
operand widths to the Intel instruction tables, for
the purposes of the disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81601
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 12 Sep 2009 02:14:41 +0000 (02:14 +0000)]
Remove -new-coalescer-heuristic. It's not useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81600
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 12 Sep 2009 02:01:07 +0000 (02:01 +0000)]
80 col violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81598
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 01:11:50 +0000 (01:11 +0000)]
fix another GCC bootstrap problem, which manifested as things
like:
foo.s:2412:non-relocatable subtraction expression, "_gomp_tls_key" minus "L1$pb"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81596
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 12 Sep 2009 00:49:00 +0000 (00:49 +0000)]
fix an embarassing typo that resulted in llvm-gcc bootstrap miscompare
because the sorting wasn't sorting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81592
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Sat, 12 Sep 2009 00:37:19 +0000 (00:37 +0000)]
Added SCAS instructions in their 8, 16, 32, and
64-bit variants for the disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81591
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 11 Sep 2009 22:07:31 +0000 (22:07 +0000)]
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81580
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 11 Sep 2009 21:49:45 +0000 (21:49 +0000)]
Update CMake files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81577
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Fri, 11 Sep 2009 21:26:24 +0000 (21:26 +0000)]
De-bork CMake build. llvm-extract depends on asmparser
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81574
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 11 Sep 2009 20:46:33 +0000 (20:46 +0000)]
Fix llvm-extract's "writing bitcode to a terminal" warning, which wasn't
working. To support this, add an is_displayed() function to raw_ostream,
and generalize Process::StandardOutIsDisplayed and friends in order to
support it.
Also, call RemoveFileOnSignal before creating a file instead of after, so
that the file isn't left behind if the program is interrupted between when
the file is created and RemoveFileOnSignal is called.
While here, add a -S to llvm-extract and port it to IRReader so that it
supports assembly input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81568
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 11 Sep 2009 20:13:17 +0000 (20:13 +0000)]
Revert array initialization regclass change so that the initialization stays static, not runtime.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81560
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Fri, 11 Sep 2009 19:49:06 +0000 (19:49 +0000)]
Update register class references to use the global constant ARM::*RegisterClass names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81556
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Fri, 11 Sep 2009 19:01:56 +0000 (19:01 +0000)]
Added ADC, SUB, SBB, and OR instructions that operate
on rAX and an immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81551
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Fri, 11 Sep 2009 18:42:18 +0000 (18:42 +0000)]
Fix pr4820: Don't run llvm-config during "make clean" since it may have
already been removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81547
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 11 Sep 2009 18:41:06 +0000 (18:41 +0000)]
Remove an unnecessary -f.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81546
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 11 Sep 2009 18:36:27 +0000 (18:36 +0000)]
Convert more tests to avoid llvm-as.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81545
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Sep 2009 18:33:44 +0000 (18:33 +0000)]
fix pasto
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81544
91177308-0d34-0410-b5e6-
96231b3b80d8
Caroline Tice [Fri, 11 Sep 2009 18:25:54 +0000 (18:25 +0000)]
Don't generate Dwarf line table entries for source line 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81542
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Sep 2009 18:20:26 +0000 (18:20 +0000)]
fix some fixmes: emit stubs in sorted order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81541
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 11 Sep 2009 18:17:12 +0000 (18:17 +0000)]
Eliminate more redundant llvm-as calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81540
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 11 Sep 2009 18:16:43 +0000 (18:16 +0000)]
Fix this test to test what it was originally intended to test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81539
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 11 Sep 2009 18:15:46 +0000 (18:15 +0000)]
give densemap iterators real iterator traits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81538
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 11 Sep 2009 18:01:28 +0000 (18:01 +0000)]
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537
91177308-0d34-0410-b5e6-
96231b3b80d8