- Mar 04, 2015
-
-
Frederic Riss authored
llvm-svn: 231209
-
Rui Ueyama authored
This reverts accidental commit r231205. llvm-svn: 231208
-
Filipe Cabecinhas authored
llvm-svn: 231207
-
Rui Ueyama authored
This patch moves local variable definitions so that their scope get narrower. Also uses range-based loop. Both are for readability. llvm-svn: 231206
-
Rui Ueyama authored
llvm-svn: 231205
-
David Blaikie authored
llvm-svn: 231204
-
Rui Ueyama authored
Also define operator* for symbol iterator just like Archive children iterator. llvm-svn: 231203
-
Zachary Turner authored
llvm-svn: 231202
-
Mehdi Amini authored
Suggestion by Andrea Di Biagio From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 231201
-
David Blaikie authored
llvm-svn: 231200
-
David Blaikie authored
LLParser: Avoid copying ValIDs, the copy ctor is deprecated in C++11 due to the presence of a user-declared dtor llvm-svn: 231199
-
Rafael Espindola authored
No need to create yet another temp symbol. llvm-svn: 231198
-
Ed Maste authored
llvm-svn: 231197
-
Rui Ueyama authored
llvm-svn: 231196
-
Pete Cooper authored
llvm-svn: 231195
-
Pete Cooper authored
llvm-svn: 231194
-
Pete Cooper authored
llvm-svn: 231193
-
David Blaikie authored
GCC 4.7's libstdc++ doesn't have std::map::emplace, but it does have std::unordered_map::emplace, and the use case here doesn't appear to need ordering. The container has been changed in a separate/precursor patch, and now this patch should hopefully build cleanly even with GCC 4.7. & then I realized the order of the container did matter, so extra handling of ordering was added in r231189. Original commit message: This makes LiveRange non-copyable, and LiveInterval is already non-movable (due to the explicit dtor), so now it's non-copyable and non-movable. Fix the one case where we were relying on the (deprecated in C++11) implicit copy ctor of LiveInterval (which happened to work because the ctor created an object with a null segmentSet, so double-deleting the null pointer was fine). llvm-svn: 231192
-
Eric Christopher authored
test - we only care that there are two moves in the loop and not which part is relative to which register anyhow. llvm-svn: 231191
-
Eric Fiselier authored
llvm-svn: 231190
-
David Blaikie authored
The order of this container was needed at one point - so, at that point create a temporary array of pointers, sort those, then iterate them. This keeps lookup efficient (& the lesser issue, of allowing the use of emplace... ), object identity preserved, and ordered iteration in the one place that requires it. While this has no functional change, I realize it does mean allocating an extra data structure and performing a sort - so if this looks suspect to anyone regarding perf characteristics, I'm all ears. llvm-svn: 231189
-
Ed Maste authored
llvm-svn: 231188
-
Filipe Cabecinhas authored
llvm-svn: 231187
-
Matthias Braun authored
There is a known bug where the register coalescer fails to merge subranges when multiple ranges end up in the "overflow" bit 32 of the lanemasks. A proper fix for this is complicated so for now this is a workaround which lets the register coalescer drop the subregister liveness information (we just loose some precision by that) and continue. llvm-svn: 231186
-
Rafael Espindola authored
They will be used for more than eh tables. llvm-svn: 231185
-
David Blaikie authored
Apparently something does care about ordering of LiveIntervals... so revert all that stuff (r231175, r231176, r231177) & take some time to re-evaluate. llvm-svn: 231184
-
Philip Reames authored
RewriteStatepointsForGC pass emits an alloca for each GC pointer which will be relocated. It then inserts stores after def and all relocations, and inserts loads before each use as well. In the end, mem2reg is used to update IR with relocations in SSA form. However, there is a problem with inserting stores for values defined by invoke instructions. The code didn't expect a def was a terminator instruction, and inserting instructions after these terminators resulted in malformed IR. This patch fixes this problem by handling invoke instructions as a special case. If the def is an invoke instruction, the store will be inserted at the beginning of the normal destination block. Since return value from invoke instruction does not dominate the unwind destination block, no action is needed there. Patch by: Chen Li Differential Revision: http://reviews.llvm.org/D7923 llvm-svn: 231183
-
Juergen Ributzka authored
The intrinsic is no longer generated by the front-end. Remove the intrinsic and auto-upgrade it to a vector shuffle. Reviewed by Nadav This is related to rdar://problem/18742778. llvm-svn: 231182
-
Reid Kleckner authored
llvm-svn: 231181
-
Ed Maste authored
llvm-svn: 231180
-
Jacques Pienaar authored
restrict is a keyword in C99 but not in C++ while clang accepts __restrict for C++ code. Modify the TypePrinter to print __restrict when not processing C99 code. Printing restrict in C++ was problematic as printing the argument of int f(int * __restrict a) { ... } resulted in int *restrict a which is incorrect. http://reviews.llvm.org/D8048 llvm-svn: 231179 -
Eric Christopher authored
a) Default relocation model differences, b) Different numbers of # in comments llvm-svn: 231178
-
David Blaikie authored
llvm-svn: 231177
-
David Blaikie authored
GCC 4.7's libstdc++ doesn't have std::map::emplace, but it does have std::unordered_map::emplace, and the use case here doesn't appear to need ordering. The container has been changed in a separate/precursor patch, and now this patch should hopefully build cleanly even with GCC 4.7. Original commit message: This makes LiveRange non-copyable, and LiveInterval is already non-movable (due to the explicit dtor), so now it's non-copyable and non-movable. Fix the one case where we were relying on the (deprecated in C++11) implicit copy ctor of LiveInterval (which happened to work because the ctor created an object with a null segmentSet, so double-deleting the null pointer was fine). llvm-svn: 231176
-
David Blaikie authored
This use case doesn't appear to benefit from ordering, and std::unordered_map has the advantage that it supports emplace (the LiveInterval values really shouldn't be copyable or movable & they won't be in a near-future patch). llvm-svn: 231175
-
Kostya Serebryany authored
llvm-svn: 231174
-
David Blaikie authored
GCC 4.7 *shakes fist* (doesn't have std::map::emplace... ) This reverts commit r231168. llvm-svn: 231173
-
Jan Wen Voung authored
Summary: This makes it more obvious that the enum definition and the "StandardName" array is in sync. Mechanically refactored w/ a python script. Test Plan: still compiles Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7845 llvm-svn: 231172
-
Kostya Serebryany authored
llvm-svn: 231171
-
Filipe Cabecinhas authored
llvm-svn: 231170
-