Chris Lattner
6822e695c1
eliminate an extraneous use of TRI::getAsmName in a comment.
...
llvm-svn: 81705
2009-09-13 19:48:37 +00:00
Chris Lattner
6ceb0faafd
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.
llvm-svn: 81704
2009-09-13 19:44:38 +00:00
Chris Lattner
1cbd3ded33
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).
llvm-svn: 81703
2009-09-13 19:30:11 +00:00
Chris Lattner
159db96ae1
reduce indentation with early exit.
...
llvm-svn: 81699
2009-09-13 19:10:08 +00:00
Chris Lattner
5156a00989
second part to r81695, I missed a directory.
...
llvm-svn: 81696
2009-09-13 19:03:08 +00:00
Chris Lattner
d940dd5801
remove MAI::JumpTableSpecialLabelPrefix now that MAI
...
has real information about linker private linkage.
llvm-svn: 81695
2009-09-13 19:02:16 +00:00
Daniel Dunbar
63f5a77822
Revert unittests build changes temporarily, the unit test build isn't -j safe.
...
llvm-svn: 81692
2009-09-13 18:58:14 +00:00
Chris Lattner
43f119c3da
delete the fixme too! :)
...
llvm-svn: 81689
2009-09-13 18:50:22 +00:00
Chris Lattner
033d31165d
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.
llvm-svn: 81688
2009-09-13 18:46:37 +00:00
Daniel Dunbar
37af2a9588
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.
llvm-svn: 81687
2009-09-13 18:43:46 +00:00
Nick Kledzik
0f312a09b2
fix typo in comment
...
llvm-svn: 81686
2009-09-13 18:34:39 +00:00
Chris Lattner
1c815bef6a
make X86ATTAsmPrinter::PrintPICBaseSymbol forward to X86MCInstLower.
...
llvm-svn: 81685
2009-09-13 18:33:59 +00:00
Chris Lattner
1d04aa78f3
replace printBasicBlockLabel with EmitBasicBlockStart,
...
now that printBasicBlockLabel is only used for starting
a MBB. This allows elimination of a bunch of arguments.
llvm-svn: 81684
2009-09-13 18:25:37 +00:00
Chris Lattner
de79e4fc2e
fix MCSymbol printing on darwin to exactly match the mangler (handling of \n and " in a symbol name).
...
llvm-svn: 81683
2009-09-13 18:11:09 +00:00
Chris Lattner
3d6c8ebb58
Make the MC symbol printer and llvm::Mangler exactly agree on mangling
...
for systems that don't support quoting (PR4966).
llvm-svn: 81682
2009-09-13 18:04:46 +00:00
Anders Carlsson
ccbabc9645
Fix another byref bug. This should hopefully get QuickLookPlugins building successfully.
...
llvm-svn: 81681
2009-09-13 17:55:13 +00:00
Chris Lattner
512e60ac35
remove two docs about the old Sparc backend which used Value*'s for vregs.
...
llvm-svn: 81680
2009-09-13 17:25:49 +00:00
Chris Lattner
48e262e369
move old clang readme here.
...
llvm-svn: 81679
2009-09-13 17:24:16 +00:00
Chris Lattner
22a0599816
rewrite readme.
...
llvm-svn: 81678
2009-09-13 17:23:57 +00:00
Chris Lattner
4cd449813a
convert some uses of printBasicBlockLabel to use GetMBBSymbol
...
instead.
llvm-svn: 81677
2009-09-13 17:14:04 +00:00
Eli Friedman
7d45c4884a
Add utility to evaluate lvalues which are an offset relative to a stack
...
location. Patch by Enea Zaffanella.
llvm-svn: 81672
2009-09-13 10:17:44 +00:00
Daniel Dunbar
626f1d8c3a
ARM/APCS: Only "integer like" aggregates should be returned in r0 (following
...
gcc's interpretation of APCS' somewhat loose specification).
llvm-svn: 81671
2009-09-13 08:03:58 +00:00
Douglas Gregor
299d76e901
Rework the way we determine whether an externally visible symbol is
...
generated for an inline function definition, taking into account C99
and GNU inline/extern inline semantics. This solution is simpler,
cleaner, and fixes PR4536.
llvm-svn: 81670
2009-09-13 07:46:26 +00:00
Daniel Dunbar
c2e87ad47a
Add LLVMGCCBINDIR to path, since LLVMC expects to find llvm-gcc in the path.
...
llvm-svn: 81669
2009-09-13 02:45:57 +00:00
Daniel Dunbar
5e2de9fe00
Some formatting tweaks to clang(1)
...
llvm-svn: 81668
2009-09-13 02:21:55 +00:00
Daniel Dunbar
c676d3c167
Add minimal INSTALL.txt
...
llvm-svn: 81667
2009-09-13 02:21:31 +00:00
Daniel Dunbar
42684d5af8
Force triple to avoid spurious differences due to runtime choice.
...
llvm-svn: 81666
2009-09-13 01:45:29 +00:00
Daniel Dunbar
9fffa15471
Switch Ocaml to use llvm_supports_binding.
...
llvm-svn: 81665
2009-09-13 01:41:47 +00:00
Daniel Dunbar
abc5153371
tests: Add llvm_supports_binding predicate.
...
llvm-svn: 81664
2009-09-13 01:41:18 +00:00
Daniel Dunbar
f8f547ab6d
tests: Use %abs_tmp instead of ./%t to make these tests portable to 'lit'.
...
llvm-svn: 81663
2009-09-13 01:40:48 +00:00
Daniel Dunbar
6805006d24
tests: Add a %abs_tmp substitution which is guaranteed to be a full path.
...
llvm-svn: 81662
2009-09-13 01:39:50 +00:00
Daniel Dunbar
1b71307d97
Sink llvm-gcc dependent tests into distinct subdirs.
...
llvm-svn: 81661
2009-09-13 01:39:08 +00:00
Daniel Dunbar
5be66ee27e
Rewrite tests to not use Tcl substitution.
...
llvm-svn: 81660
2009-09-13 01:37:07 +00:00
Daniel Dunbar
fa8c00a13c
Simplify LLVMC tests.
...
llvm-svn: 81659
2009-09-13 01:36:19 +00:00
Anton Korobeynikov
6b9b8c1471
Fix merge problem
...
llvm-svn: 81658
2009-09-13 01:12:15 +00:00
Anton Korobeynikov
6c89da7027
Define proper subreg sets for arm - this should fix bunch of subtle problems
...
with subreg - superreg mapping and also fix PR4965.
llvm-svn: 81657
2009-09-13 00:59:43 +00:00
Dan Gohman
f437e68058
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.
llvm-svn: 81656
2009-09-12 23:45:47 +00:00
Daniel Dunbar
a22637897a
Experimental fix for PR4960.
...
- Could we just always implement this as __clear_cache for __GNUC__?
llvm-svn: 81655
2009-09-12 23:29:02 +00:00
Daniel Dunbar
e9266a3ee1
Add RUN line.
...
llvm-svn: 81654
2009-09-12 23:06:30 +00:00
Daniel Dunbar
0482cfd790
Don't use the PredefinedExpr string as the global variable name, these don't
...
make very nice symbols, just use the function name.
llvm-svn: 81653
2009-09-12 23:06:21 +00:00
Chris Lattner
a602bebb61
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.
llvm-svn: 81652
2009-09-12 23:02:08 +00:00
Chris Lattner
95a312b2e9
we don't want people to override printBasicBlockLabel.
...
llvm-svn: 81651
2009-09-12 22:57:37 +00:00
Chris Lattner
46d90f7b32
rewrite the parsing code for -miphoneos-version-min and
...
-mmacosx-version-min to work on llvm::Triple. Simplify
it to use x-'0' to parse single digit integer strings.
llvm-svn: 81646
2009-09-12 22:45:58 +00:00
Chris Lattner
ee7bd3b204
whitespace fix
...
llvm-svn: 81644
2009-09-12 22:45:21 +00:00
Dan Gohman
648c836f6c
Remove unnecessary #include.
...
llvm-svn: 81636
2009-09-12 22:24:25 +00:00
Anton Korobeynikov
8d0fbebb9f
Add QPR_VFP2 regclass and add copy_to_regclass nodes, where needed to
...
constraint the register usage.
llvm-svn: 81635
2009-09-12 22:21:08 +00:00
Dan Gohman
f436e87813
Preserve the inbounds flag, so that the constant folder doesn't
...
recompute it.
llvm-svn: 81634
2009-09-12 22:02:17 +00:00
Dan Gohman
07b5c40ed8
Fix the build when DEBUG_SYMBOL_TABLE is set.
...
llvm-svn: 81633
2009-09-12 21:56:48 +00:00
Dan Gohman
3d2c91403c
Convert llvm-link to IRReader.
...
llvm-svn: 81632
2009-09-12 21:55:12 +00:00
Benjamin Kramer
2864584b14
Update CMake files.
...
llvm-svn: 81631
2009-09-12 21:18:26 +00:00