summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Removing unused function declaration with no definition; NFC.Aaron Ballman2015-07-271-1/+0
| | | | llvm-svn: 243311
* [AArch64] Unconditionally pass subtarget feature reserve-x18 on Darwin.Akira Hatanaka2015-07-272-3/+10
| | | | | | | After r243308, the front-end is responsible for checking the target OS and passing reserve-x18 if the target is Darwin. llvm-svn: 243310
* [X86] Add missing _m_prefetch intrinsicSimon Pilgrim2015-07-272-2/+14
| | | | | | | | | | | | The 3DNOW/PRFCHW cpu targets define both the PREFETCHW (set cache line modified) and PREFETCH (set cache line exclusive) instructions but only the _m_prefetchw (PREFETCHW) intrinsic is included in the header. This patch adds the missing _m_prefetch intrinsic. I'm basing this off AMD documentation - the intel docs on the support for PREFETCHW isn't clear whether Silvermont/Broadwell properly support PREFETCH but given that the intrinsic implementation is a default __builtin_prefetch call, it is safe whatever. Fix for PR23648 Differential Revision: http://reviews.llvm.org/D11338 llvm-svn: 243305
* Correcting a typo in a comment; NFC.Aaron Ballman2015-07-271-1/+1
| | | | llvm-svn: 243292
* [OpenMP] Fix copyin codegen test regression in order used in compareSamuel Antao2015-07-271-3/+3
| | | | | | instruction. llvm-svn: 243289
* [OpenMP] Fix copyin clause codegen regression caused by r243277. Samuel Antao2015-07-271-13/+13
| | | | llvm-svn: 243285
* [OpenMP] Add TLS requirement for the copyin clause codegen test. This is anSamuel Antao2015-07-271-1/+1
| | | | | | attempt to fix regressions triggered by r243277. llvm-svn: 243280
* Rename {Hexagon,NaCl}_TC to {Hexagon,NaCl}ToolChain respectively. NFCDouglas Katzman2015-07-274-93/+98
| | | | | | | | | Also rename XCore (the toolchain) to XCoreToolChain since XCore is also a namespace for its tools. Differential Revision: http://reviews.llvm.org/D10609 llvm-svn: 243279
* [OpenMP] Add capture for threadprivate variables used in copyin clauseSamuel Antao2015-07-273-9/+287
| | | | | | if TLS is enabled in OpenMP code generation. llvm-svn: 243277
* Analysis: Fix example usage comment in CFG.cpp. NFCJonathan Roelofs2015-07-271-1/+1
| | | | | | Patch by Vedant Kumar! llvm-svn: 243275
* Setting ARM dynamic linker name from commandlineRenato Golin2015-07-272-2/+11
| | | | | | | | | | Currently trigger to select hard-float linker is only based of -gnueabihf appearing in target triplet, but we should also select it when hardfloat is requested via cmdline. Patch by Khem Raj. llvm-svn: 243262
* [clang-cl] Handle -O correctlyDavid Majnemer2015-07-276-15/+145
| | | | | | | | | | | | | | | We had multiple bugs here: - We didn't support multiple optimization options in one argument. e.g. -O2y- - We didn't correctly expand -O[12dx] to their respective options. - We treated -O1 as clang -O1 instead of clang -Os. - We treated -Ox as clang -O3 instead of clang -O2. In fact, cl's -Ox option is *less* powerful than cl's -O2 option despite -Ox described as "Full Optimization". This fixes PR24003. llvm-svn: 243261
* Rename highly-confusing isWhitespace that returns false on \n toYaron Keren2015-07-271-17/+13
| | | | | | | | | isWhitespaceExceptNL. If that's wasn't bad enough, we have an identically named function in Basic/CharInfo.h. While at it, remove unnecessary includes, .str() calls and #ifdef. llvm-svn: 243260
* [modules] Add an assert for redeclarations that we never added to their redeclRichard Smith2015-07-278-71/+74
| | | | | | | | | | | | | | | chain and fix the cases where it fires. * Handle the __va_list_tag as a predefined decl. Previously we failed to merge sometimes it because it's not visible to name lookup. (In passing, remove redundant __va_list_tag typedefs that we were creating for some ABIs. These didn't affect the mangling or representation of the type.) * For Decls derived from Redeclarable that are not in fact redeclarable (implicit params, function params, ObjC type parameters), remove them from the list of expected redeclarable decls. llvm-svn: 243259
* [Targets] Define _M_AMD64 and _M_X64 to a more appropriate valueDavid Majnemer2015-07-262-4/+4
| | | | | | We used to define them to 1, we should have defined them to 100. llvm-svn: 243255
* [AST] It should be impossible to get Int128 or UInt128 into VisitIntegerLiteralDavid Majnemer2015-07-261-2/+0
| | | | | | These cases should now be impossible as of r243243. llvm-svn: 243252
* [MS Extensions] Remove support for the i128 integer literal suffixDavid Majnemer2015-07-265-40/+4
| | | | | | | | | | | | | There is currently no support in MSVC for using i128 as an integer literal suffix. In fact, there appears to be no evidence that they have ever supported this feature in any of their compilers. This was an over generalization of their actual feature and is a nasty source of bugs. Why is it a source of bugs? Because most code in clang expects that evaluation of an integer constant expression won't give them something that 'long long' can't represent. Instead of providing a meaningful feature, i128 gives us cute ways of exploding the compiler. llvm-svn: 243243
* [Sema] Refactor AddAlignedAttr to reduce indentationDavid Majnemer2015-07-261-19/+19
| | | | | | No functionality change intended, just a tidy-up. llvm-svn: 243242
* This test failed on ninja-x64-msvc-RA-centos6.Yaron Keren2015-07-261-1/+5
| | | | | | | We could probably get this and the previous three disabled in r243237 working on these builders if MSYS was updated to current MSYS2. llvm-svn: 243238
* Revert three tests enabled on r243236, they fail on clang-x86-win2008-selfhost.Yaron Keren2015-07-263-0/+9
| | | | llvm-svn: 243237
* Enable passing clang tests on Windows/MSYS.Yaron Keren2015-07-268-21/+3
| | | | llvm-svn: 243236
* Fix test running under mingw.Yaron Keren2015-07-261-3/+3
| | | | llvm-svn: 243235
* Try to make the buildbots happyDavid Majnemer2015-07-261-1/+1
| | | | | | | This test was missing a triple causing it to error out on windows targets. They accept a much smaller alignment value. llvm-svn: 243234
* [Sema] The alignment of an object has an upper bound from the object file formatDavid Majnemer2015-07-262-3/+5
| | | | | | | Don't use the spelling of the alignment attribute to determine whether or not an alignment amount makes sense. llvm-svn: 243233
* [libclang] Use lambdas instead of explicit structs when storing arguments.Benjamin Kramer2015-07-254-251/+134
| | | | | | | This boilerplate code was necessary to move arguments between threads in C++98, lambdas make this much easier. No functionality change intended. llvm-svn: 243227
* [AST] Rename RecordLayoutBuilder to ItaniumRecordLayoutBuilderDavid Majnemer2015-07-252-142/+119
| | | | | | | RecordLayoutBuilder is an inaccruate name because it does not build all records. It only builds layouts for targets using the Itanium C++ ABI. llvm-svn: 243225
* Enable clang tests requiring "clang-driver" on mingw.Yaron Keren2015-07-251-1/+1
| | | | | | At least on my mingw system they do pass, let's see what the bots think. llvm-svn: 243224
* [VTableBuilder] Use range-based for loops. No functional change intendedBenjamin Kramer2015-07-251-146/+96
| | | | llvm-svn: 243222
* [VTableBuilder] Turn functors into lambdasBenjamin Kramer2015-07-251-34/+24
| | | | | | No functional change intended. llvm-svn: 243221
* Capture 'this' so GCC 4.7 can find a static members.Benjamin Kramer2015-07-251-4/+6
| | | | llvm-svn: 243218
* [AST] Turn the callbacks of lookupInBases and forallBases into a function_refBenjamin Kramer2015-07-2512-256/+211
| | | | | | | | | This lets us pass functors (and lambdas) without void * tricks. On the downside we can't pass CXXRecordDecl's Find* members (which are now type safe) to lookupInBases directly, but a lambda trampoline is a small price to pay. No functionality change intended. llvm-svn: 243217
* [Modules] Wrap the main ModuleManager visitor in a function_ref.Benjamin Kramer2015-07-255-126/+86
| | | | | | | Avoids the awkward passing of an opaque void *UserData argument. No functional change intended. llvm-svn: 243213
* [clang-cl] Add fallback support for /ZlDavid Majnemer2015-07-252-1/+3
| | | | llvm-svn: 243207
* [CodeGen] Don't UBSan-ize the argument to __builtin_frame_addressDavid Majnemer2015-07-252-4/+11
| | | | | | | | | | | | | __builtin_frame_address requires its argument to be a constant expression which already implies that it cannot have undefined behavior. However, we used EmitScalarExpr to emit the argument causing UBSan to try to check for overflow. Instead, use the constant expression emission system. This fixes PR24256. llvm-svn: 243206
* [SemaTemplate] Detect instantiation of unparsed exceptions.Davide Italiano2015-07-252-1/+24
| | | | | | | | This fixes the clang crash reported in PR24000. Differential Revision: http://reviews.llvm.org/D11341 llvm-svn: 243196
* Fix test case.Akira Hatanaka2015-07-251-1/+1
| | | | | | | This is a follow-up to r243185, which made changes to pass subtarget feature "+reserve-x18" instead of backend option "-aarch64-reserve-x18". llvm-svn: 243189
* [AArch64] Pass subtarget feature "+reserve-x18" instead of passing backendAkira Hatanaka2015-07-251-5/+3
| | | | | | | | | | | | | | option "-aarch64-reserve-x18". This change is needed since backend options do not make it to the backend when doing LTO and are not capable of changing the behavior of code-gen passes on a per-function basis. rdar://problem/21529937 Differential Revision: http://reviews.llvm.org/D11462 llvm-svn: 243185
* Replacing some diagnostic string literals with tablegen equivalents because ↵Aaron Ballman2015-07-241-5/+3
| | | | | | the wording is identical; NFC. llvm-svn: 243169
* DI: Make getOrCreateLimitedType() return DICompositeType, NFCDuncan P. N. Exon Smith2015-07-242-7/+6
| | | | | | | | | Change `getOrCreateLimitedType()` to return a `DICompositeType` and remove the casts from its callers. Inside, I've strengthened a `cast` from `DICompositeTypeBase`, but the casts in the callers already prove that this is safe. There should be no functionality change here. llvm-svn: 243155
* Select the highest version of the mingw toolchain found using ↵Yaron Keren2015-07-242-13/+20
| | | | | | | | Generic_GCC::GCCVersion similar to the way Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple works. llvm-svn: 243153
* Base the sys-root/mingw/include path on sysroot and not on /usr.Yaron Keren2015-07-242-2/+2
| | | | | | Thanks to Richard Smith for pointing this out! llvm-svn: 243144
* Correct x86_64 Android fp128 mangled nameChih-Hung Hsieh2015-07-242-0/+26
| | | | | | | | | | These changes are for Android x86_64 targets to be compatible with current Android g++. https://llvm.org/bugs/show_bug.cgi?id=23897 Use 'g' and 'Cg' for "long double" and "long double _Complex" mangled type names. Differential Revision: http://reviews.llvm.org/D11466 llvm-svn: 243133
* DI: Make StaticDataMemberCache type-safe, NFCDuncan P. N. Exon Smith2015-07-242-3/+4
| | | | | | | Change `StaticDataMemberCache` to store references to `DIDerivedType` directly, and remove now-unnecessary casts from the accessors. llvm-svn: 243129
* Test commit.Chih-Hung Hsieh2015-07-241-3/+3
| | | | llvm-svn: 243125
* [test] Attempt to fix failing test in non-darwin bots.Argyrios Kyrtzidis2015-07-241-2/+2
| | | | llvm-svn: 243120
* [code-completion] Strip outer nullability annotations when completing method ↵Argyrios Kyrtzidis2015-07-243-9/+14
| | | | | | | | | | | | implementations. The outer nullability is transferred from the declaration to the implementation so including them is redundant. The inner ones are not transferred so they are kept to match the exact types. When we transfer the inner ones as well adding them in the implementation will become redundant and we should strip those as well. rdar://21737451 llvm-svn: 243119
* LLVM API Change: the Module always owns the DataLayoutMehdi Amini2015-07-249-38/+24
| | | | | From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 243115
* Correcting some comments. (1) the function is named throughUsingDecl() and ↵Aaron Ballman2015-07-241-3/+1
| | | | | | not throughUsingDeclaration(). (2) Testing shows that this does work for shadowed variables as well as shadowed functions. I could not find an example where this matcher was failing. NFC. llvm-svn: 243111
* Silence a "not all control paths return a value" warning from MSVC. Should ↵Aaron Ballman2015-07-241-1/+2
| | | | | | also silence a -Wreturn-type warning. NFC intended. llvm-svn: 243109
* Visual Studio is more permissive than other compilers; amends r243107 to fix ↵Aaron Ballman2015-07-241-1/+1
| | | | | | a compile error. llvm-svn: 243108
OpenPOWER on IntegriCloud