- Aug 25, 2014
-
-
Dylan Noblesmith authored
No functionality change. llvm-svn: 216367
-
Dylan Noblesmith authored
llvm-svn: 216366
-
Dylan Noblesmith authored
llvm-svn: 216365
-
Dylan Noblesmith authored
llvm-svn: 216364
-
Dylan Noblesmith authored
Also make members that are never accessed outside the class private. llvm-svn: 216363
-
Dylan Noblesmith authored
NFC. llvm-svn: 216362
-
Dylan Noblesmith authored
llvm-svn: 216361
-
Dylan Noblesmith authored
llvm-svn: 216360
-
Dylan Noblesmith authored
llvm-svn: 216359
-
Dylan Noblesmith authored
llvm-svn: 216358
-
Dylan Noblesmith authored
llvm-svn: 216357
-
Dylan Noblesmith authored
This parameter is never null. llvm-svn: 216356
-
Dylan Noblesmith authored
llvm-svn: 216355
-
Dylan Noblesmith authored
This was added in r134994, to fix a memory leak; three days later, r135248 switched ContainedTys from being new-allocated to being allocated via BumpPtrAllocator, and the earlier fix was never reverted. The destructor doesn't seem to ever actually be called on Types anyway, so it's harmless, but if it were, this'd be an invalid pointer. This reverts r134994. llvm-svn: 216354
-
Marshall Clow authored
Fix bug 20740 - std::set/std::map don't support heterogeneous lookup for count(). Thanks to Jim Porter for the bug report llvm-svn: 216353
-
Nikola Smiljanic authored
llvm-svn: 216352
-
Craig Topper authored
llvm-svn: 216351
-
Dylan Noblesmith authored
llvm-svn: 216350
-
Dylan Noblesmith authored
This does nothing but remove the Record from the map, and then re-add it, without actually changing it in between. The Record's Name used to be changed before re-adding it when the code was first committed in r137232, but the name-changing lines were removed in r142510, and since then this code seems to do nothing. This was also the only caller of removeClass or removeDef, so now RecordKeeper owns its Records unconditionally, and could be unique_ptr-ified. llvm-svn: 216349
-
Dylan Noblesmith authored
llvm-svn: 216348
-
Dylan Noblesmith authored
NFC. llvm-svn: 216347
-
- Aug 24, 2014
-
-
Aaron Ballman authored
The switch statement would never fire due to the preceding break statement. Also, the switch statement has a default label with no case labels. Simplified the code, and allow it to execute. llvm-svn: 216346
-
Elena Demikhovsky authored
The tables are initialized when X86TargetLowering object is created. llvm-svn: 216345
-
Patrik Hagglund authored
llvm-svn: 216344
-
David Majnemer authored
CFE, with -03, would turn: bool f(unsigned x) { bool a = x & 1; bool b = x & 2; return a | b; } into: %1 = lshr i32 %x, 1 %2 = or i32 %1, %x %3 = and i32 %2, 1 %4 = icmp ne i32 %3, 0 This sort of thing exposes a nasty pathology in GCC, ICC and LLVM. Instead, we would rather want: %1 = and i32 %x, 3 %2 = icmp ne i32 %1, 0 Things get a bit more interesting in the following case: %1 = lshr i32 %x, %y %2 = or i32 %1, %x %3 = and i32 %2, 1 %4 = icmp ne i32 %3, 0 Replacing it with the following sequence is better: %1 = shl nuw i32 1, %y %2 = or i32 %1, 1 %3 = and i32 %2, %x %4 = icmp ne i32 %3, 0 This sequence is preferable because %1 doesn't involve %x and could potentially be hoisted out of loops if it is invariant; only perform this transform in the non-constant case if we know we won't increase register pressure. llvm-svn: 216343 -
Hal Finkel authored
__vector long is deprecated, but __vector long long is not. As a result, we cannot check for __vector long (to issue the deprecation warning) as we parse the type because we need to know how many 'long's we have first. DeclSpec::Finish seems like a more-appropriate place to perform the check (which places it with several other similar Altivec vector checks). Fixes PR20720. llvm-svn: 216342
-
Hal Finkel authored
PowerPC uses the special PPC_FP128 type for long double on Linux, which is composed of two 64-bit doubles. The higher-order double (which contains the overall sign) comes first, and so the __builtin_signbitl implementation requires special handling to extract the sign bit. Fixes PR20691. llvm-svn: 216341
-
Hans Wennborg authored
We would previously assert (a decl cannot have two DLL attributes) on this code: template <typename T> struct __declspec(dllimport) S { T f() { return T(); } }; template struct __declspec(dllexport) S<int>; The problem was that when instantiating, we would take the attribute from the template even if the instantiation itself already had an attribute. Also, don't inherit DLL attributes from the template to its members before instantiation, as the attribute may change. I couldn't figure out what MinGW does here, so I'm leaving that open. At least we're not asserting anymore. llvm-svn: 216340 -
Hal Finkel authored
Adds code generation support for dcbtst (data cache prefetch for write) and icbt (instruction cache prefetch for read - Book E cores only). We still end up with a 'cannot select' error for the non-supported prefetch intrinsic forms. This will be fixed in a later commit. Fixes PR20692. llvm-svn: 216339
-
Dylan Noblesmith authored
Based on the STL class of the same name, it guards a mutex while also allowing it to be unlocked conditionally before destruction. This eliminates the last naked usages of mutexes in LLVM and clang. It also uncovered and fixed a bug in callExternalFunction() when compiled without USE_LIBFFI, where the mutex would never be unlocked if the end of the function was reached. llvm-svn: 216338
-
Hans Wennborg authored
llvm-svn: 216337
-
Dylan Noblesmith authored
Use lock/unlock() convention instead of acquire/release(). llvm-svn: 216336
-
Dylan Noblesmith authored
Only one function remains a bit too complicated for a simple mutex guard. No functionality change. llvm-svn: 216335
-
Hans Wennborg authored
llvm-svn: 216334
-
Hans Wennborg authored
llvm-svn: 216333
-
Keno Fischer authored
When building without XCode on sytems where these constants are not in the system header (or I presume with older versions of XCode), these are needed to make this file compile, since unlike most other uses of MachO specific constants, these use the system headers rather than the LLVM-defined ones. llvm-svn: 216332
-
Dylan Noblesmith authored
This test was testing nothing, as only -Werror was ever being added to the compiler flags. You can see the final nitty-gritty compiler invocation in CMakeFiles/CMakeOutput.log (for successful tests) and CMakeFiles/CMakeError.log (for failed tests). Before: Building C object CMakeFiles/cmTryCompileExec3385359576.dir/src.c.o /usr/bin/clang -fPIC -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -DC_WCOMMENT_ALLOWS_LINE_WRAP -Werror -o CMakeFiles/cmTryCompileExec3385359576.dir/src.c.o -c /home/nobled/code/llvm-b9/CMakeFiles/CMakeTmp/src.c After: Building C object CMakeFiles/cmTryCompileExec3385359576.dir/src.c.o /usr/bin/clang -fPIC -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -DC_WCOMMENT_ALLOWS_LINE_WRAP -Werror -Wcomment -o CMakeFiles/cmTryCompileExec3385359576.dir/src.c.o -c /home/nobled/code/llvm-b9/CMakeFiles/CMakeTmp/src.c llvm-svn: 216328
-
Dylan Noblesmith authored
clang has only been smart enough not to trigger -Wnon-virtual-dtor warnings on final classes since r208449 (in clang 3.5). Building with older versions is extremely noisy, so disable the warning on those compilers. llvm-svn: 216327
-
Hans Wennborg authored
The same dyn_cast was done earlier in the function. No functionality change. llvm-svn: 216326
-
Chad Rosier authored
This reverts commit r215862 due to nightly failures. Will work on getting a reduced test case, but I wanted to get our bots green in the meantime. llvm-svn: 216325
-