- Apr 24, 2014
-
-
Chandler Carruth authored
an issue. This way you see that the number of nodes was wrong before a crash due to accessing too many nodes. llvm-svn: 207094
-
Daniel Sanders authored
Summary: Correct size_t to be unsigned int and ptrdiff_t to be signed long. The types were the correct size before this change but the exact type matters for name mangling and exception handling in C++. Reviewers: atanasyan Reviewed By: atanasyan Differential Revision: http://reviews.llvm.org/D3470 llvm-svn: 207093
-
Evgeniy Stepanov authored
Patch by Yuri Gorshenin. llvm-svn: 207092
-
Chandler Carruth authored
a SmallPtrSet. Currently, there is no need for stable iteration in this dimension, and I now thing there won't need to be going forward. If this is ever re-introduced in any form, it needs to not be a SetVector based solution because removal cannot be linear. There will be many SCCs with large numbers of parents. When encountering these, the incremental SCC update for intra-SCC edge removal was quadratic due to linear removal (kind of). I'm really hoping we can avoid having an ordering property here at all though... llvm-svn: 207091
-
Chandler Carruth authored
can use the node -> SCC mapping in the top-level graph to test this on the rare occasions we need it. llvm-svn: 207090
-
Zinovy Nis authored
llvm-svn: 207089
-
Benjamin Kramer authored
This allows us to compile return (mask & 0x8 ? a : b); into testb $8, %dil cmovnel %edx, %esi instead of andl $8, %edi shrl $3, %edi cmovnel %edx, %esi which we formed previously because dag combiner canonicalizes setcc of and into shift. llvm-svn: 207088
-
Dmitri Gribenko authored
llvm-svn: 207087
-
Chandler Carruth authored
than pointer iterators. llvm-svn: 207086
-
Karthik Bhat authored
Allow vectorization of few missed llvm intrinsic calls in BBVectorizor by handling them in isVectorizableIntrinsic function. llvm-svn: 207085
-
Chandler Carruth authored
class name usage into a context we can put typename on it. llvm-svn: 207084
-
Craig Topper authored
llvm-svn: 207083
-
Chandler Carruth authored
template argument to a default argument to the constructor. llvm-svn: 207082
-
Argyrios Kyrtzidis authored
llvm-svn: 207081
-
Stepan Dyatkovskiy authored
Added support for bytes replication feature, so it could be GAS compatible. E.g. instructions below: "vmov.i32 d0, 0xffffffff" "vmvn.i32 d0, 0xabababab" "vmov.i32 d0, 0xabababab" "vmov.i16 d0, 0xabab" are incorrect, but we could deal with such cases. For first one we should emit: "vmov.i8 d0, 0xff" For second one ("vmvn"): "vmov.i8 d0, 0x54" For last two instructions it should emit: "vmov.i8 d0, 0xab" P.S.: In ARMAsmParser.cpp I have also fixed few nearby style issues in old code. Just for keeping method bodies in harmony with themselves. llvm-svn: 207080 -
Nico Weber authored
llvm-svn: 207079
-
Chandler Carruth authored
value_op_iterator. llvm-svn: 207078
-
Nico Weber authored
llvm-svn: 207077
-
Nico Weber authored
A CursorPlatformAvailability can have several "unavailable" attributes, don't leak all but the first. I'm not sure if there can be several "deprecate"ds too, but add the same logic there to keep the two code paths looking the same. llvm-svn: 207076
-
Nico Weber authored
The result of llvm::MemoryBuffer::getMemBuffer() needs to be freed. Don't pass "don't free" flag to overrideFileContents() to fix. llvm-svn: 207075
-
Nico Weber authored
The result of getBufferForFile() must be freed. (Should we change functions that expect the caller to assume ownership so that they return unique_ptrs instead? Then the type system makes sure we get this right.) llvm-svn: 207074
-
Nico Weber authored
The result of clang_getCursorSpelling() needs to be clang_getCursorSpelling()ed. llvm-svn: 207073
-
Chandler Carruth authored
own CRTP base class for more general purpose use. Add some clarifying comments for the exact way in which the adaptor uses it. Hopefully this will help us write increasingly full featured iterators. This is becoming important as they start to be used heavily inside of ranges. llvm-svn: 207072
-
Nico Weber authored
Tool::run() doesn't take ownership of the passed action. llvm-svn: 207071
-
Nico Weber authored
http://bb.pgr.jp/builders/cmake-clang-x86_64-linux/builds/22506 llvm-svn: 207070
-
Chandler Carruth authored
Boost's iterator_adaptor, and a specific adaptor which iterates over pointees when wrapped around an iterator over pointers. This is the result of a long discussion on IRC with Duncan Smith, Dave Blaikie, Richard Smith, and myself. Essentially, I could use some subset of the iterator facade facilities often used from Boost, and everyone seemed interested in having the functionality in a reasonably generic form. I've tried to strike a balance between the pragmatism and the established Boost design. The primary differences are: 1) Delegating to the standard iterator interface names rather than special names that then make up a second iterator-like API. 2) Using the name 'pointee_iterator' which seems more clear than 'indirect_iterator'. The whole business of calling the '*p' operation 'pointer indirection' in the standard is ... quite confusing. And 'dereference' is no better of a term for moving from a pointer to a reference. Hoping Duncan, and others continue to provide comments on this until we've got a nice, minimal abstraction. llvm-svn: 207069
-
Nico Weber authored
llvm-svn: 207068
-
Nico Weber authored
llvm-svn: 207067
-
Nico Weber authored
llvm-svn: 207066
-
Nico Weber authored
Also update a comment to match a code change that was done in r110978. llvm-svn: 207065
-
Nick Kledzik authored
llvm-svn: 207064
-
Richard Smith authored
together. This is extremely hairy, because in general we need to have loaded both the template and the pattern before we can determine whether either should be merged, so we temporarily violate the rule that all merging happens before reading a decl ends, but *only* in the case where a template's pattern is being loaded while loading the template itself. In order to accomodate this for class templates, delay loading the injected class name type for the pattern of the template until after we've loaded the template itself, if we happen to load the template first. llvm-svn: 207063
-
Michael J. Spencer authored
llvm-svn: 207062
-
David Blaikie authored
llvm-svn: 207061
-
David Blaikie authored
llvm-svn: 207060
-
David Blaikie authored
llvm-svn: 207059
-
Michael J. Spencer authored
This excludes avx512 as I don't have hardware to verify. It excludes _dq variants because they are represented in the IR as <{2,4} x i64> when it's actually a byte shift of the entire i{128,265}. This also excludes _dq_bs as they aren't at all supported by the backend. There are also no corresponding instructions in the ISA. I have no idea why they exist... llvm-svn: 207058 -
David Blaikie authored
llvm-svn: 207057
-
Nico Weber authored
Should suppress several LSan reports. llvm-svn: 207056
-
Filipe Cabecinhas authored
Summary: Since the upper 64 bits of the destination register are undefined when performing this operation, we can substitute it and let the optimizer figure out that only a copy is needed. Also added range merging, if an instruction copies a range that can be merged with a previous copied range. Added test cases for both optimizations. Reviewers: grosbach, nadav CC: llvm-commits Differential Revision: http://reviews.llvm.org/D3357 llvm-svn: 207055
-