- Mar 29, 2013
-
-
Sean Silva authored
std::lower_bound is the canonical "binary search" in the STL (std::binary_search generally is not what you want). The name actually makes a lot of sense (and also has a beautiful symmetry with the std::upper_bound algorithm). The name is nonetheless non-obvious. Also, remove mention of "radix search". It's not even clear how that would work in the context of a sorted vector. AFAIK "radix search" only makes sense when you have a trie-like data structure. llvm-svn: 178376
-
Timur Iskhodzhanov authored
llvm-svn: 178375
-
Argyrios Kyrtzidis authored
When using modules we should not ignore overridden methods from categories that are hidden because the module is not visible. This will give more consistent results (when imports change) and it's more correct since the methods are indeed overridden even if they are not "visible" for lookup purposes. rdar://13350796 llvm-svn: 178374
-
Argyrios Kyrtzidis authored
[libclang] If libclang logging is enabled, print all compiler diagnostics to stderr instead of capturing them. llvm-svn: 178373
-
Argyrios Kyrtzidis authored
for the IDE case, also create a symlink inside the libclang.dylib directory. llvm-svn: 178372
-
Benjamin Kramer authored
The array will decay into a pointer, creating an unexpected result. sizeof(array + int) is an easy to make typo for sizeof(array) + int. This was motivated by a NetBSD security bug, used sizeof(key - r) instead of sizeof(key) - r, reducing entropy in a random number generator. http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/subr_cprng.c.diff?r1=1.14&r2=1.15&only_with_tag=MAIN&f=h Differential Revision: http://llvm-reviews.chandlerc.com/D571 llvm-svn: 178371
-
Howard Hinnant authored
llvm-svn: 178370
-
Michael Gottesman authored
clang.arc.used is an interesting call for ARC since ObjCARCContract needs to run to remove said intrinsic to avoid a linker error (since the call does not exist). llvm-svn: 178369
-
Jyotsna Verma authored
llvm-svn: 178368
-
Jim Ingham authored
rdar://problem/13536544 llvm-svn: 178367
-
Eric Christopher authored
die values. A lot of DIEs have 10 attributes in C++ code (example clang), none had more than 12. Seems like a good default. llvm-svn: 178366
-
Eric Christopher authored
entire original compile unit has been constructed. llvm-svn: 178365
-
Adrian Prantl authored
llvm-svn: 178364
-
Sean Callanan authored
wasn't loaded into the underlying process or couldn't be found. <rdar://problem/13533671> llvm-svn: 178363
-
Hal Finkel authored
Like nearbyint, rint can be implemented on PPC using the frin instruction. The complication comes from the fact that rint needs to set the FE_INEXACT flag when the result does not equal the input value (and frin does not do that). As a result, we use a custom inserter which, after the rounding, compares the rounded value with the original, and if they differ, explicitly sets the XX bit in the FPSCR register (which corresponds to FE_INEXACT). Once LLVM has better modeling of the floating-point environment we should be able to (often) eliminate this extra complexity. llvm-svn: 178362
-
Adrian Prantl authored
* Store the .block_descriptor (instead of self) in the alloca so we can guarantee that all captured variables are available at -O0. * Add the missing OpDeref for the alloca. rdar://problem/12767564 llvm-svn: 178361
-
Adrian Prantl authored
* Let DIType for block-captured self to point to the completed cached interface type. rdar://problem/12767564 llvm-svn: 178360
-
Akira Hatanaka authored
llvm-svn: 178359
-
Jyotsna Verma authored
llvm-svn: 178358
-
Andrew Trick authored
A9 uses itinerary classes, Swift uses RW lists. This tripped some verification when we're expanding variants. I had to refine the verification a bit. llvm-svn: 178357
-
Matt Arsenault authored
llvm-svn: 178356
-
Matt Arsenault authored
llvm-svn: 178355
-
-
Adrian Prantl authored
rdar://problem/12767564 llvm-svn: 178353
-
Greg Clayton authored
llvm-svn: 178352
-
Benjamin Kramer authored
llvm-svn: 178351
-
Howard Hinnant authored
The 3rd test in shrink_to_fit.pass.cpp can't possibly pass if exceptions are disabled, so #ifdef'ing out the test. llvm-svn: 178350
-
Benjamin Kramer authored
It was superseded by MachineBlockPlacement and disabled by default since LLVM 3.1. llvm-svn: 178349
-
rdar://problem/12022060Greg Clayton authored
Enable tab completion for regular expression commands. llvm-svn: 178348
-
Nadav Rotem authored
llvm-svn: 178346
-
Jyotsna Verma authored
llvm-svn: 178345
-
Kostya Serebryany authored
[tsan] restore performance critical inlining in tsan: remove static from ALWAYS_INLINE, use ALWAYS_INLINE USED for critical functions. llvm-svn: 178341
-
Alexander Potapenko authored
This removes all register spills from the performance-critical __tsan_{read,write}{1,2,4,8} functions when the host compiler is GCC. llvm-svn: 178340
-
Alexander Potapenko authored
[libsanitizer] Put COMMON_CFLAGS/COMMON_CXXFLAGS before Tmp.CFLAGS to let the config-specific flags override common flags. llvm-svn: 178339
-
Hal Finkel authored
These instructions are available on the P5x (and later) and on the A2. They implement the standard floating-point rounding operations (floor, trunc, etc.). One caveat: frin (round to nearest) does not implement "ties to even", and so is only enabled in fast-math mode. llvm-svn: 178337
-
Alexey Samsonov authored
llvm-svn: 178336
-
Rafael Espindola authored
llvm-svn: 178335
-
Rafael Espindola authored
This reverts commit 617330909f0c26a3f2ab8601a029b9bdca48aa61. It broke the bots: /home/clangbuild2/clang-ppc64-2/llvm.src/unittests/ADT/SmallVectorTest.cpp:150: PushPopTest /home/clangbuild2/clang-ppc64-2/llvm.src/unittests/ADT/SmallVectorTest.cpp:118: Failure Value of: v[i].getValue() Actual: 0 Expected: value Which is: 2 llvm-svn: 178334
-
Rafael Espindola authored
We already avoided warning for extern "C" const char *Version_string = "2.9"; now we also don't produce any warnings for extern "C" { extern const char *Version_string2 = "2.9"; } llvm-svn: 178333
-
Jean-Luc Duprat authored
being power-of-two sized. llvm-svn: 178332
-