Jakub Staszak
44860314d2
Use MachineBranchProbabilityInfo instead of MachineLoopInfo in IfConversion.
...
llvm-svn: 135724
2011-07-21 23:48:55 +00:00
Rafael Espindola
a7431924ab
Avoid warning on "clang -c -Dfoo test.i". Lines like these are created
...
when using ccache and libtool.m4 assumes that the compiler cannot print
warnings about options it knows about.
llvm-svn: 135723
2011-07-21 23:40:37 +00:00
Owen Anderson
0491270f99
Get rid of the extraneous GPR operand on so_reg_imm operands, which in turn necessitates a lot of changes to related bits.
...
llvm-svn: 135722
2011-07-21 23:38:37 +00:00
Dan Gohman
e106aee6f5
Fix MergeInVectorType to check for vector types with the same alloc
...
size but different element types, so that it filters out the cases
that CreateShuffleVectorCast doesn't handle. This fixes rdar://9786827.
llvm-svn: 135721
2011-07-21 23:30:09 +00:00
Douglas Gregor
f224ae06d2
Clean up the rest of the local -> global declaration ID mappings
...
within the ASTReader (I hope).
llvm-svn: 135720
2011-07-21 23:29:11 +00:00
Jim Grosbach
72e7c4f9ac
ARM Asm parser range checking for [0,31] immediates.
...
llvm-svn: 135719
2011-07-21 23:26:25 +00:00
Jim Grosbach
3354674b48
ARM parsing and encoding tests for SBC instruction.
...
llvm-svn: 135718
2011-07-21 23:03:59 +00:00
Benjamin Kramer
737a3dac02
Initialize DenseSets lazily.
...
llvm-svn: 135717
2011-07-21 23:03:59 +00:00
Johnny Chen
6cbb8d684f
Add test scenario of SBValue APIs for the 'days_of_week' global variable.
...
llvm-svn: 135716
2011-07-21 23:02:00 +00:00
Jim Grosbach
8dbf59d041
ARM testcases for SADD/SASX parsing and encoding.
...
llvm-svn: 135715
2011-07-21 23:00:49 +00:00
Jakub Staszak
cb7c0a4927
Add missing getAnalysisUsage in MachineBlockFrequency.
...
llvm-svn: 135714
2011-07-21 22:59:09 +00:00
Jim Grosbach
2a0320c877
ARM assembly parsing support for RSC instruction.
...
Add two-operand instruction aliases. Add parsing and encoding tests for
variants of the instruction.
llvm-svn: 135713
2011-07-21 22:56:30 +00:00
Jim Grosbach
17806e6636
ARM assembly parsing support for RSB instruction.
...
Add two-operand instruction aliases. Add parsing and encoding tests for
variants of the instruction.
llvm-svn: 135712
2011-07-21 22:37:43 +00:00
Douglas Gregor
7fb091977d
In the ASTReader, factor out the loading of (local) declaration IDs,
...
such that every declaration ID loaded from an AST file will go through
a central local -> global mapping function. At present, this change
does nothing, since the local -> global mapping function is the
identity function.
This is the mechanical part of the refactoring; a follow-up patch will
address a few remaining areas where it's not obvious whether we're
dealing with local or global IDs.
llvm-svn: 135711
2011-07-21 22:35:25 +00:00
Jim Grosbach
2a22c06267
ARM parsing and encoding tests for RBIT, REV, REV16 and REVSH.
...
llvm-svn: 135710
2011-07-21 22:29:23 +00:00
Jim Grosbach
b31e60b7c6
ARM parsing and encodings tests for saturating arithmetic insns.
...
llvm-svn: 135709
2011-07-21 22:18:28 +00:00
Alexis Hunt
82bb089e87
Add a missing test for the limits on wchar
...
llvm-svn: 135708
2011-07-21 22:01:12 +00:00
Argyrios Kyrtzidis
4145732818
Fix diagnostic when loading a PCH which has different enabled/disabled state of -fobjc-arc. rdar://9818341
...
llvm-svn: 135707
2011-07-21 21:56:04 +00:00
Jim Grosbach
4aaae18d73
Tidy up.
...
llvm-svn: 135706
2011-07-21 21:26:05 +00:00
Jonathan D. Turner
3766fdb654
Cleaning up more of the ID situation in the AST reader. This patch relaxes and generalizes how CXX base specifiers are identified and loaded by using a ContinuousRangeMap. This also adds a global bit offset (or base) to the PerFileData.
...
llvm-svn: 135705
2011-07-21 21:15:19 +00:00
Nicolas Geoffray
6820c1e0d3
Update generated CPP code with the new API on CallInst::Create and ConstantExpr::getGetElementPtr.
...
llvm-svn: 135704
2011-07-21 20:59:21 +00:00
Jim Grosbach
0a8d89242f
ARM assembly parsing POP/PUSH mnemonics.
...
Aliases for LDM/STM. The single-register versions should encode to LDR/STR
with writeback, but we don't (yet) get that correct. Neither does Darwin's
system assembler, though, so that's not a deal-breaker of a limitation.
llvm-svn: 135702
2011-07-21 19:57:11 +00:00
Douglas Gregor
204b8717d4
Add some debugging output to the AST reader, so we can see the global remappings we generate
...
llvm-svn: 135701
2011-07-21 19:50:14 +00:00
Johnny Chen
6853cf66d1
Add test scenario for exercising SBValue API: TypeIsPointerType() and GetByteSize().
...
llvm-svn: 135699
2011-07-21 19:31:59 +00:00
Oscar Fuentes
378f59d4cd
Fix CMake build
...
llvm-svn: 135698
2011-07-21 19:10:57 +00:00
Jim Grosbach
b2aa2c4a24
Add tests for ARM PKH assembly parsing.
...
llvm-svn: 135696
2011-07-21 19:02:03 +00:00
Johnny Chen
becabe0e81
Initialize the all important automatic variable 'lldb::ConnectionStatus status' before
...
invoking the Read(...) method to read in bytes. Similar to r135461.
llvm-svn: 135695
2011-07-21 19:00:59 +00:00
Owen Anderson
b595ed0085
Split up the ARM so_reg ComplexPattern into so_reg_reg and so_reg_imm, allowing us to distinguish the encodings that use shifted registers from those that use shifted immediates. This is necessary to allow the fixed-length decoder to distinguish things like BICS vs LDRH.
...
llvm-svn: 135693
2011-07-21 18:54:16 +00:00
Douglas Gregor
49bf76bab3
In the AST reader, keep track of the total number of source locations
...
entries incrementally, rather than iterating over the chain when
loading a single AST file.
llvm-svn: 135692
2011-07-21 18:46:38 +00:00
Argyrios Kyrtzidis
55e7557481
For ASTUnit::Save, write the AST to a temporary and then rename it to the actual filename.
...
Should avoid race conditions. Addresses rdar://9788943.
llvm-svn: 135691
2011-07-21 18:44:49 +00:00
Argyrios Kyrtzidis
ff9a5506c9
Cut down one open/close pair of system calls by using Path's makeUnique instead of createTemporaryFileOnDisk.
...
llvm-svn: 135690
2011-07-21 18:44:46 +00:00
Richard Smith
42a4996b5a
Update cxx_status page on www: clang has had full support for in-class initializers since r132890.
...
llvm-svn: 135689
2011-07-21 18:02:57 +00:00
Douglas Gregor
17aa45d431
Clean up the C++ status page by eliminating the utterly unnecessary set of projects. C++98/03 is sooooo yesterday
...
llvm-svn: 135687
2011-07-21 17:46:15 +00:00
Douglas Gregor
80d6322c00
Update C++0x nullptr status, from Jonathan Sauer
...
llvm-svn: 135686
2011-07-21 17:41:00 +00:00
Fariborz Jahanian
b21138fc25
Add FixIt hint for missing 'id' type.
...
// rdar://9615045
llvm-svn: 135685
2011-07-21 17:38:14 +00:00
Andrew Trick
cd3e8cb882
Cleanup: make std::pair usage slightly less indecipherable without actually naming variables!
...
llvm-svn: 135684
2011-07-21 17:37:39 +00:00
Benjamin Kramer
5fb7737513
Sink parts of TargetRegisterClass into MCRegisterClass.
...
llvm-svn: 135683
2011-07-21 17:26:50 +00:00
Jim Grosbach
27c1e2560c
ARM assembly parsing and encoding for PKHBT and PKHTB instructions.
...
llvm-svn: 135682
2011-07-21 17:23:04 +00:00
Fariborz Jahanian
b5a52ca0c9
objc - Diagnose missing method return type specifier under
...
a warning flag. // rdar://9615045
llvm-svn: 135681
2011-07-21 17:00:47 +00:00
Douglas Gregor
f676fdc8ea
One last RandomAccessIterator operator for PreprocessingRecord::iterator
...
llvm-svn: 135680
2011-07-21 16:37:44 +00:00
Douglas Gregor
cbd50c3201
Add the remaining RandomAccessIterator operations to
...
PreprocessingRecord::iterator. Where's concept_map when I need it?
llvm-svn: 135679
2011-07-21 16:35:41 +00:00
Bruno Cardoso Lopes
d1d9c78650
Added the infrastructute necessary for MIPS JIT support. Patch by Vladimir
...
Stefanovic. I removed the part that actually emits the instructions cause
I want that to get in better shape first and in incremental steps. This
also makes it easier to review the upcoming parts.
llvm-svn: 135678
2011-07-21 16:28:51 +00:00
Jay Foad
2f5fc8c67d
Make better use of ConstantExpr::getGetElementPtr's InBounds parameter.
...
llvm-svn: 135676
2011-07-21 15:15:37 +00:00
Bruno Cardoso Lopes
3aa2f0a064
Define the _MIPS_SIM builtin macro on MIPS platforms. Patch by Robert Millan!
...
llvm-svn: 135675
2011-07-21 15:10:57 +00:00
Jay Foad
857a48a8d7
Sort case-insensitively.
...
llvm-svn: 135674
2011-07-21 14:42:51 +00:00
Jay Foad
ed8db7d9df
Convert ConstantExpr::getGetElementPtr and
...
ConstantExpr::getInBoundsGetElementPtr to use ArrayRef.
llvm-svn: 135673
2011-07-21 14:31:17 +00:00
Jay Foad
95f1ebd41b
Update llvm-gcc-4.2 and dragonegg after converting ConstantFolder APIs
...
to use ArrayRef.
llvm-svn: 135672
2011-07-21 09:19:11 +00:00
Jay Foad
32351fa820
Convert ConstantFolder APIs to use ArrayRef.
...
llvm-svn: 135671
2011-07-21 07:52:17 +00:00
Francois Pichet
14c7ed4b0b
For some reason I don't fully comprehend, the MSVC debug build will fail with a huge 50+ lines template error message if PreprocessingRecord::iterator has no operator<()
...
llvm-svn: 135670
2011-07-21 06:26:00 +00:00
Chris Lattner
5cf753c95e
move tier out of an anonymous namespace, it doesn't make sense
...
to for it to be an an anon namespace and be in a header.
Eliminate some extraenous uses of tie.
llvm-svn: 135669
2011-07-21 06:21:31 +00:00