- Sep 10, 2015
-
-
Philip Reames authored
The assertion was weaker than it should be and gave the impression we're growing the number of base defining values being considered during the fixed point interation. That's not true. The tighter form of the assert is useful documentation. llvm-svn: 247221
-
Philip Reames authored
llvm-svn: 247220
-
Reid Kleckner authored
All of the complexity is in cleanupret, and it mostly follows the same codepaths as catchret, except it doesn't take a return value in RAX. This small example now compiles and executes successfully on win32: extern "C" int printf(const char *, ...) noexcept; struct Dtor { ~Dtor() { printf("~Dtor\n"); } }; void has_cleanup() { Dtor o; throw 42; } int main() { try { has_cleanup(); } catch (int) { printf("caught it\n"); } } Don't try to put the cleanup in the same function as the catch, or Bad Things will happen. llvm-svn: 247219
-
Hans Wennborg authored
Patch by Eugene Zelenko! Differential Revision: http://reviews.llvm.org/D12741 llvm-svn: 247218
-
Philip Reames authored
llvm-svn: 247217
-
Hans Wennborg authored
Patch by Eugene Zelenko! Differential Revision: http://reviews.llvm.org/D12740 llvm-svn: 247216
-
Mehdi Amini authored
This reapply commit r247178 after post-commit review from D.Blaikie in a way that makes it compatible with the existing API. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 247215
-
Mehdi Amini authored
The purpose is to allow templated wrapper to work with either ArrayRef or any convertible operation: template<typename Container> void wrapper(const Container &Arr) { impl(makeArrayRef(Arr)); } with Container being a std::vector, a SmallVector, or an ArrayRef. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 247214
-
Philip Reames authored
llvm-svn: 247213
-
Philip Reames authored
Factor out common code related to naming values, fix a small style issue. More to follow in separate changes. llvm-svn: 247211
-
Philip Reames authored
This change is simply enhancing the existing inference algorithm to handle insertelement instructions by conservatively inserting a new instruction to propagate the vector of associated base pointers. In the process, I'm ripping out the peephole optimizations which mostly helped cover the fact this hadn't been done. Note that most of the newly inserted nodes will be nearly immediately removed by the post insertion optimization pass introduced in 246718. Arguably, we should be trying harder to avoid the malloc traffic here, but I'd rather get the code correct, then worry about compile time. Unlike previous extensions of the algorithm to handle more case, I discovered the existing code was causing miscompiles in some cases. In particular, we had an implicit assumption that the peephole covered *all* insert element instructions, so if we had a value directly based on a insert element the peephole didn't cover, we proceeded as if it were a base anyways. Not good. I believe we had the same issue with shufflevector which is why I adjusted the predicate for them as well. Differential Revision: http://reviews.llvm.org/D12583 llvm-svn: 247210
-
John McCall authored
receiver extension for message sends via property syntax. rdar://22172983 llvm-svn: 247209
-
Philip Reames authored
Previously, the base pointer algorithm wasn't deterministic. The core fixed point was (of course), but we were inserting new nodes and optimizing them in an order which was unspecified and variable. We'd somewhat hacked around this for testing by sorting by value name, but that doesn't solve the general determinism problem. Instead, we can use the order of traversal over the def/use graph to give us a single consistent ordering. Today, this is a DFS order, but the exact order doesn't mater provided it's deterministic for a given input. (Q: It is safe to rely on a deterministic order of operands right?) Note that this only fixes the determinism within a single inference step. The inference step is currently invoked many times in a non-deterministic order. That's a future change in the sequence. :) Differential Revision: http://reviews.llvm.org/D12640 llvm-svn: 247208
-
John McCall authored
rdar://22464808 llvm-svn: 247207
-
Stephane Sezer authored
llvm-svn: 247206
-
Rafael Espindola authored
With this simple static programs run again. llvm-svn: 247205
-
NAKAMURA Takumi authored
llvm-svn: 247204
-
Sanjay Patel authored
llvm-svn: 247203
-
Greg Clayton authored
Fix the build-llvm.pl to not create one monster .a file from all of the llvm and clang .a files. We now just make a file list which we pass to the linker. llvm-svn: 247202
-
Peter Collingbourne authored
Visit disjoint sets in a deterministic order based on the maximum BitSetNM index, otherwise the order in which we visit them will depend on pointer comparisons. This was being exposed by MSan. llvm-svn: 247201
-
Enrico Granata authored
Introduce the notion of an escape helper. Different languages have different notion of what to print in a string and how to escape non-printable things. The escape helper is where this notion is provided to LLDB This is NFC, other than a code re-org llvm-svn: 247200
-
Piotr Padlewski authored
Generating call assume(icmp %vtable, %global_vtable) after constructor call for devirtualization purposes. For more info go to: http://lists.llvm.org/pipermail/cfe-dev/2015-July/044227.html Edit: Fixed version because of PR24479. After this patch got reverted because of ScalarEvolution bug (D12719) Merged after John McCall big patch (Added Address). http://reviews.llvm.org/D11859 llvm-svn: 247199
-
Chandler Carruth authored
llvm-svn: 247198
-
Greg Clayton authored
llvm-svn: 247197
-
Greg Clayton authored
Now that CompilerType uses a "TypeSystem *" and a "void *" instead of a "clang::ASTContext *" and a "void *", we need to know if anyone is trying to create a CompilerType from a clang::ASTContext that has no backing ClangASTContext. This assert will fire if this is the case and we will need to fix the offending code. llvm-svn: 247196
-
Enrico Granata authored
I was experimenting with it briefly, and then settled on Target::GetTypeSystem + TypeSystem::GetBasicType, so this API is not necessary to have Thanks to Ryan Brown for bringing it to my attention llvm-svn: 247195
-
- Sep 09, 2015
-
-
Nathan Wilson authored
Summary: Diagnose variable and function concept declarations when an invalid specifier appears Reviewers: rsmith, aaron.ballman, faisalv, fraggamuffin, hubert.reinterpretcast Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12435 llvm-svn: 247194
-
Greg Clayton authored
llvm-svn: 247193
-
Reid Kleckner authored
The 32-bit tables don't actually contain PC range data, so emitting them is incredibly simple. The 64-bit tables, on the other hand, use the same table for state numbering as well as label ranges. This makes things more difficult, so it will be implemented later. llvm-svn: 247192
-
Ed Maste authored
It often hangs or times out, and obscures issues with other tests. Just skip it for now (until the FreeBSD test suite is producing consistent results) so that we can get a buildbot back. Previous investigation (for failures) in llvm.org/pr18522 llvm-svn: 247190
-
Enrico Granata authored
Preparatory work for letting language plugins help the StringPrinter with formatting special characters llvm-svn: 247189
-
David Majnemer authored
We know that a reference can always be dereferenced. However, we don't always know the number of bytes if the reference's pointee type is incomplete. This case was correctly handled but we didn't consider the case where the type is complete but we cannot calculate its size for ABI specific reasons. In this specific case, a member pointer's size is available only under certain conditions. This fixes PR24703. llvm-svn: 247188
-
Dan Gohman authored
llvm-svn: 247187
-
Teresa Johnson authored
This change enables EmitRecord to pass the supplied record Code to EmitRecordWithAbbrevImpl, rather than insert it into the Vals array. It is an enabler for changing EmitRecord to take an ArrayRef<uintty> instead of a SmallVectorImpl<uintty>& Patch suggested by Duncan P. N. Exon Smith, modified by myself a bit to get correct assertion checking. llvm-svn: 247186
-
Michael J. Spencer authored
This is a minimal implementation to produce legal output. Future patches will combine multiple compatible PT_LOADs. llvm-svn: 247185
-
Piotr Padlewski authored
http://reviews.llvm.org/D12719 llvm-svn: 247184
-
Mehdi Amini authored
This reverts commit r247179. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 247183
-
Mehdi Amini authored
This reverts commit r247178. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 247182
-
Rafael Espindola authored
llvm-svn: 247181
-
David Majnemer authored
This reverts commit r246997, it introduced a regression (PR24763). llvm-svn: 247180
-