Johnny Chen
882b28b7bf
Rename the parameter for the end-of-list test function from end_of_list to end_of_list_test.
...
llvm-svn: 136016
2011-07-25 23:44:48 +00:00
Johnny Chen
a4bc3a7091
Add cross references between the docstrings for regular SBValue iteration:
...
for child in value:
# do something with the child value
and SBValue.linked_list_iter():
for task in task_head.linked_list_iter('next', eol_test):
# visit each item in the linked list
llvm-svn: 136015
2011-07-25 23:41:08 +00:00
Jim Grosbach
9becc53e32
ARM assembly parsing and encoding for SSAX, SSUB16 and SSUB8.
...
llvm-svn: 136013
2011-07-25 23:32:14 +00:00
Evan Cheng
215b3fd42e
TargetAsmBackend has been renamed to MCAsmBackend.
...
llvm-svn: 136012
2011-07-25 23:28:36 +00:00
Evan Cheng
4b89983662
Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend.
...
llvm-svn: 136011
2011-07-25 23:25:09 +00:00
Evan Cheng
5928e69d20
Rename TargetAsmBackend to MCAsmBackend; rename createAsmBackend to createMCAsmBackend.
...
llvm-svn: 136010
2011-07-25 23:24:55 +00:00
Eli Friedman
fee02c6c13
Initial implementation of 'fence' instruction, the new C++0x-style replacement for llvm.memory.barrier.
...
This is just a LangRef entry and reading/writing/memory representation; optimizer+codegen support coming soon.
llvm-svn: 136009
2011-07-25 23:16:38 +00:00
Nick Lewycky
15e2d90746
Finish adding support for lifetime intrinsics to SROA. Fixes PR10121!
...
llvm-svn: 136008
2011-07-25 23:14:22 +00:00
Benjamin Kramer
9ea35e470c
I will save before I commit.
...
I will save before I commit.
I will save before I commit.
I will save before I commit.
llvm-svn: 136007
2011-07-25 23:10:23 +00:00
Jim Grosbach
475c6dbef6
ARM assembly parsing and encoding for SSAT16 instruction.
...
llvm-svn: 136006
2011-07-25 23:09:14 +00:00
Bruno Cardoso Lopes
9212bf275d
Codegen allonesvector better while using AVX: vpcmpeqd + vinsertf128
...
This also fixes PR10452
llvm-svn: 136004
2011-07-25 23:05:32 +00:00
Bruno Cardoso Lopes
ec21941de0
Add remaining 256-bit vector bitcasts. This also fixes PR10451
...
llvm-svn: 136003
2011-07-25 23:05:28 +00:00
Bruno Cardoso Lopes
123dff0f58
- Handle special scalar_to_vector case: splats. Using a native 128-bit
...
shuffle before inserting on a 256-bit vector.
- Add AVX versions of movd/movq instructions
- Introduce a few COPY patterns to match insert_subvector instructions.
This turns a trivial insert_subvector instruction into a register copy,
coalescing the xmm into a ymm and avoid emiting on more instruction.
llvm-svn: 136002
2011-07-25 23:05:25 +00:00
Bruno Cardoso Lopes
276eb8debf
Reintroduce r135730, this is indeed the right approach, there is no
...
native 256-bit vector instruction to do scalar_to_vector.
llvm-svn: 136001
2011-07-25 23:05:16 +00:00
Benjamin Kramer
bf11531492
llvm-objdump: Ignore unreachable blocks when printing the CFG.
...
llvm-svn: 136000
2011-07-25 23:04:36 +00:00
Evan Cheng
1740a97734
Fix include guards.
...
llvm-svn: 135998
2011-07-25 22:52:04 +00:00
Johnny Chen
bb034f9f5d
Add an example type summary -- for lldb::ConnectionStatus.
...
llvm-svn: 135997
2011-07-25 22:47:54 +00:00
Benjamin Kramer
c956033947
Add a note about efficient codegen for binary log.
...
llvm-svn: 135996
2011-07-25 22:30:00 +00:00
Eli Friedman
442d1b199f
Attempt to fix test failure reported on llvm-commits.
...
llvm-svn: 135995
2011-07-25 22:28:51 +00:00
Jakub Staszak
e92d047b51
BranchProbability::print returns void now.
...
llvm-svn: 135994
2011-07-25 22:27:42 +00:00
Eli Friedman
cbd3ba91b7
Make sure this DAGCombine actually returns an UNDEF of the correct type; PR10476.
...
llvm-svn: 135993
2011-07-25 22:25:42 +00:00
Jakub Staszak
49993f26bf
Add BlockFrequency class.
...
llvm-svn: 135992
2011-07-25 22:24:51 +00:00
Jim Grosbach
3a9cbeed73
ARM assembly parsing and encoding for SSAT instruction.
...
Fix the Rn register encoding for both SSAT and USAT. Update the parsing of the
shift operand to correctly handle the allowed shift types and immediate ranges
and issue meaningful diagnostics when an illegal value or shift type is
specified. Add aliases to parse an ommitted shift operand (default value of
'lsl #0').
Add tests for diagnostics and proper encoding.
llvm-svn: 135990
2011-07-25 22:20:28 +00:00
Enrico Granata
77d24d374a
bug fix in ClangASTType when trying to get size of a non-complete type
...
llvm-svn: 135989
2011-07-25 22:19:19 +00:00
Andrew Trick
990f771a9a
Add clarifying comments for the new arguments to UnrollLoop.
...
llvm-svn: 135988
2011-07-25 22:17:47 +00:00
Evan Cheng
55c8a78716
Refactoring fail.
...
llvm-svn: 135986
2011-07-25 22:16:37 +00:00
Francois Pichet
ece689f336
Fix the MSVC build. 2 problems:
...
- buildPieces was return a C++ object from inside an extern "C". (MSVC didn't like that)
- clang_getCursorReferenceNameRange was missing a CINDEX_LINKAGE causing a link error.
llvm-svn: 135983
2011-07-25 22:00:44 +00:00
Evan Cheng
6099cf16e5
Move CBackend and CppBackend MC initialization to TargetInfo.
...
llvm-svn: 135982
2011-07-25 21:44:12 +00:00
Eli Friedman
ea8c66fea5
Get rid of an incorrect optimization for shuffles with PALIGNR and simplify isPALIGNRMask.
...
Addresses PR10466, although the crash from that PR only triggers in cases where DAGCombine misses optimizing a shuffle.
llvm-svn: 135980
2011-07-25 21:36:45 +00:00
Evan Cheng
9eec764c15
Fix more MC layering violations.
...
llvm-svn: 135979
2011-07-25 21:32:49 +00:00
Evan Cheng
21b42e2498
More MC layering violations.
...
llvm-svn: 135978
2011-07-25 21:29:26 +00:00
Chandler Carruth
e0e91c6d30
Check in updated CMake dependencies after Evan's latest round of
...
refactorings. Several places that shouldn't have dependend on Target no
longer do. Also almost all of the CodeGen dependencies have gone away
for the MCDisassembler. Others add reasonable dependencies within the
target-specific layers.
llvm-svn: 135977
2011-07-25 21:25:07 +00:00
Chandler Carruth
b2561029b1
Add a missing enumerator to this switch. Currently its in the
...
assert-path code, as previously we would have fallen off the end of the
function, but please review and let me know if this should go somewhere
else.
This fixes a Clang warning:
lib/MC/MCMachOStreamer.cpp:201:11: error: enumeration value 'MCSA_IndirectSymbol' not handled in switch [-Werror,-Wswitch-enum]
switch (Attribute) {
^
1 error generated.
llvm-svn: 135976
2011-07-25 21:21:08 +00:00
Rafael Espindola
e96fd5a4fe
Add LLVMAddTargetLibraryInfo to the C API.
...
llvm-svn: 135975
2011-07-25 21:20:54 +00:00
Evan Cheng
61faa55b74
Separate MCInstPrinter registration from AsmPrinter registration.
...
llvm-svn: 135974
2011-07-25 21:20:24 +00:00
Nick Lewycky
77cb8e681f
Add missing space (this line is no longer pushing the 80-column limit).
...
llvm-svn: 135973
2011-07-25 21:16:04 +00:00
Nick Lewycky
f6e3711674
80 columns.
...
llvm-svn: 135972
2011-07-25 21:13:23 +00:00
Nick Lewycky
85a19aa333
Fix typo.
...
llvm-svn: 135971
2011-07-25 21:12:44 +00:00
Fariborz Jahanian
9a14c21cfd
objective-c: Provide a 'fixit' when class was used
...
to declare a static object. // rdar://9603056
llvm-svn: 135970
2011-07-25 21:12:27 +00:00
Chandler Carruth
d48db2115a
Rename getInstantiationLineNumber to getExpansionLineNumber in both
...
SourceManager and FullSourceLoc.
llvm-svn: 135969
2011-07-25 21:09:52 +00:00
Jim Grosbach
3ddf6aa503
Simply ARM so_reg MIOperandInfo definitions.
...
The shift immediate encoding, printing, etc. is handled directly by the
enclosing operand definition, so it should be a vanilla immediate, not a
nested complex operand (shift_imm).
llvm-svn: 135968
2011-07-25 21:04:58 +00:00
Chandler Carruth
ae67e0828a
Repair some indentation I missed in my previous commit.
...
llvm-svn: 135967
2011-07-25 20:59:15 +00:00
Rafael Espindola
7281395c8c
Add LLVMAddLowerExpectIntrinsicPass to the C API.
...
llvm-svn: 135966
2011-07-25 20:57:59 +00:00
Chandler Carruth
42f35f9cd2
Rename getInstantiationColumnNumber to getExpansionColumnNumber in both
...
SourceManager and FullSourceLoc.
llvm-svn: 135965
2011-07-25 20:57:57 +00:00
Evan Cheng
c2d8c6be92
Assembler doesn't need to initialize TargetMachine's anymore.
...
llvm-svn: 135964
2011-07-25 20:53:26 +00:00
Evan Cheng
f60768a14e
Fix last bits of MC layer issues. llvm-mc doesn't need to initialize TargetMachine's anymore.
...
llvm-svn: 135963
2011-07-25 20:53:02 +00:00
Chandler Carruth
c7ca5218b6
Rename getDecomposedInstantiationLoc to getDecomposedExpansionLoc.
...
llvm-svn: 135962
2011-07-25 20:52:32 +00:00
Chandler Carruth
c84d769c68
getInstantiationLocSlowCase -> getExpansionLocSlowCase
...
llvm-svn: 135961
2011-07-25 20:52:26 +00:00
Chandler Carruth
ca757587a3
Rename SourceManager::getImmediateInstantiationRange to
...
getImmediateExpansionRange.
llvm-svn: 135960
2011-07-25 20:52:21 +00:00
Jim Grosbach
ac798e1533
ARM asm operand renaming. Make things a bit more explicit.
...
llvm-svn: 135959
2011-07-25 20:49:51 +00:00