aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-30Fix build system for rebase.HEADmastermainTim Murray
Change-Id: Icf454889d6758b663fbe4d43b29b0ae2c1e9f28c
2014-04-28Update build system for rebase.Tim Murray
Change-Id: I361682eefe119e3f7cba22adb4e78eadca61c86b
2014-04-28Merge remote-tracking branch 'upstream/master' into rebaseTim Murray
2014-04-28[driver] Disable the slp vectorizer at -O0, -O1, and -Oz. This mirrors theChad Rosier
behavior of the loop vectorizer, which is enabled at -O2, -O3, -O4, -Ofast and -Os. PR19568 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207433 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28Remove unused using statement.Nico Weber
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207427 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28Renaming range-based for loop variables so they don't appear iterator-like.Aaron Ballman
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207422 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28[C++11] Converting to range-based for loops. No functional changes intended.Aaron Ballman
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207416 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28clang-format: Improve binary operator detection.Daniel Jasper
Before: *(int *)(p &~3UL) = 0; After: *(int *)(p & ~3UL) = 0; This fixes llvm.org/PR19464. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207405 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28clang-format: Fixes spaces in case statements.Daniel Jasper
This fixes llvm.org/PR19482. Before: switch (a) { case(B) : return; } After: switch (a) { case (B): return; } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207402 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28[ARM64]Fix a bug cannot select UQSHL/SQSHL with constant i64 shift amount.Hao Liu
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207401 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28clang-format: Don't wrap after @interface.Daniel Jasper
This fixes llvm.org/PR19450. Before: @interface BookmarkHomeHandsetViewController ()<BookmarkAllCollectionViewDelegate, BookmarkFolderCollectionViewDelegate, BookmarkMenuViewControllerDelegate, BookmarkSearchViewControllerDelegate> { } After: @interface aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ()< aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa> { } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207400 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28Follow-up to r207071: Let newFrontendActionFactory() return a unique_ptr.Nico Weber
This exposed a leak, fix that. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207396 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28libclang: split out the documentation comment APIAlp Toker
It's possible that the "comment AST" may be replaced or split out in the midterm, any anyway this makes the headers easier to read. Developers don't currently need to include "clang-c/Documentation.h" explicitly and there's no macro to test for availability yet. The raw comment and brief comment accessors have been kept in Index.h though brief support may also move here as a separate proposal. This is not a deprecation, just a gentle separation of concerns as we look to simplify the built-in representation of comment nodes and support external comment processors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207392 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28[objcmt] Revert r191796, it's not needed anymore.Argyrios Kyrtzidis
rdar://16223810 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207391 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28CodeGen: remove an unused variableSaleem Abdulrasool
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207390 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-28[SemaCXX] Silence -Wconstant-logical-operand if the operand is a 0/1 from a ↵Argyrios Kyrtzidis
macro. Libraries specify enabled/disabled features using macro defs of 0/1, in such cases the -Wconstant-logical-operand is noise. rdar://15410291 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207386 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-27[Index/DocComments] When cloning a full comment, pick the template ↵Argyrios Kyrtzidis
parameters from the original FullComment, if the parameters are not already set (e.g. because it is a typedef). Fixes crash of rdar://16128173 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207382 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-27remove less relevant information + about packaging/Mac OS X + link to cfe-devSylvestre Ledru
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207362 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-27Remove no longer relevant information in the gcc/llvm comparison page + ↵Sylvestre Ledru
minor updates git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207361 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-27remove useless codeSylvestre Ledru
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207360 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-27Remove deprecated information about performances:Sylvestre Ledru
* It is better if we leave third parties to do "independent" benchmark. * We compare Clang (version unspecified) with gcc 4.0 or 4.2. * The graphs have not been updated for a while. * Clang is well known now. I don't think we still need to explain why Clang is great. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207358 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-27clang-format: Fix bug when aligning trailing /**/-comments in macros.Daniel Jasper
Previously this could lead to a column limit violation with the required escaped newlines. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207351 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-27Fix the method len of the CompletionString object. Patch by Christopher GreeneSylvestre Ledru
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207348 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-27c-arcmt-test/Makefile: Update USEDLIBS for -static.NAKAMURA Takumi
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207340 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-26[SemaObjC] Fix ObjCInterfaceDecl::inheritsDesignatedInitializers(), if there ↵Argyrios Kyrtzidis
are no designated initializers in the super class hierarchy then it should return false. rdar://16692535 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207332 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-26[Sema] Adjust Sema::getCurBlock()/getCurLambda() to take into account that ↵Argyrios Kyrtzidis
we may have switch CurContext due to class template instantiation. Fixes crash of the included test case. rdar://16527205 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207325 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-26libclang: remove 'CXDiagnostic_Remark'Alp Toker
The change was landed without review or test cases. It trivially broke almost any stable application checking for Severity >= CXDiagnostic_Error or indeed any other kind of severity comparison upon encountering a 'remark'. Mapped to CXDiagnostic_Warning until a workable solution is proposed to the list that preserves API stability. (It's also not clear why the rest of r202475 wasn't simply implemented as a modifier to the existing 'warning' level.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207319 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-26Add mangling for attribute enable_if. The demangling patch for libcxxabi is ↵Nick Lewycky
still in review. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207296 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25Fixed Assert In CGRecordLoweringWarren Hunt
Prior to this patch, CGRecordLower assumed that virtual bases could not be placed before the nvsize of an object. This isn't true in Itanium mode, virtual bases are placed at dsize rather than vnsize and in the case of zero sized non-virtual bases nvsize can be larger than dsize. This patch fixes CGRecordLowering to avoid an assert and to clip bitfields properly in this case. A test case is included. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207280 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25CodeGen: add __yield intrinsic for ARMSaleem Abdulrasool
The __yield intrinsic generates a hint instruction to indicate that the thread is not performing any useful operations at the moment. This is for compatibility with MSVC, although, the intrinsic is also part of the ACLE, and is enabled globally as a result. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207275 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25Make test pass on 32 bit architectures.Benjamin Kramer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207268 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25Print detailed vector type information on diagnostics.Benjamin Kramer
We never aka vector types because our attributed syntax for it is less comprehensible than the typedefs. This leaves the user in the dark when the typedef isn't named that well. Example: v2s v; v4f w; w = v; The naming in this cases isn't even that bad, but the error we give is useless without looking up the actual typedefs. t.c:6:5: error: assigning to 'v4f' from incompatible type 'v2s' Now: t.c:6:5: error: assigning to 'v4f' (vector of 4 'float' values) from incompatible type 'v2s' (vector of 2 'int' values) We do this for all diagnostics that print a vector type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207267 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25Fix leak of GlobalModuleIndex::IdentifierIndex, found by LSan.Nico Weber
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207262 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25PR19558: don't produce an "unused variable" warning for a variable template ↵Richard Smith
partial specialization. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207260 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25CodeGen: replace use of @llvm.arm.sevl with @llvm.arm.hintSaleem Abdulrasool
Use the new generic @llvm.arm.hint hint intrinsic rather than the specialised @llvm.arm.sevl hint instruction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207243 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25CodeGen: Cleanup variable linkage calculationDavid Majnemer
Almost all linkage calculation for VarDecls occured inside of GetLLVMLinkageVarDefinition except for static data members. Centralize the logic so that it can be more readily reused. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207241 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25CodeGen: Refactor linkage/visibility calculationDavid Majnemer
It turns out that linkage and visibility have rather similar logic for both functions and non-variable globals. Split the calculation out so that both sides may share this code. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207239 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25Push unique_ptr ownership of ASTUnits further back into their factories.David Blaikie
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207237 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25clang-cl: /fallback only applies to C or C++ filesHans Wennborg
We would previously hit an assert if using /fallback with an .ll file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207234 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25clang-cl: pass -debug flag to the linker when compiling with debug infoHans Wennborg
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207233 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25Improve ownership of ASTUnits in libTooling by using std::unique_ptr.David Blaikie
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207229 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25Revert "Reland r206934 with a hopefully fixed test"Rafael Espindola
This reverts commit r207155. The test was still failing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207225 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25fix a test-only leak found by lsan, PR19521Kostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207223 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25CodeGen: Avoid instrumenting implicit Decls more effectivelyJustin Bogner
We don't assign counters for implicit Decls, but we were emitting code to increment the (non-existent) counters and adding empty counter lists in the output. This fixes the checks in assignRegionCounters and emitInstrumentationData to do the right thing, and adds an assert for the pathological case of emitting zero counters. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207203 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-25bindings: expose C++ access specifiersSaleem Abdulrasool
Expose the enum CX_CXXAccessSpecifier in the python bindings as a property of the cursor. If access specifier is not applicable to the node, return the INVALID specifier rather than raising an exception. Patch by Tamás Szeli! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207173 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-24Reland r206934 with a hopefully fixed testReid Kleckner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207155 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-24If we see an explicit instantiation declaration or definition of a functionRichard Smith
after we've already instantiated a definition for the function, pass it to the ASTConsumer again so that it knows the specialization kind has changed and can update the function's linkage. This only matters if we instantiate the definition of the function before we reach the end of the TU; this can happen in at least three different ways: C++11 constexpr functions, C++14 deduced return types, and functions instantiated within modules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207152 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-24MicrosoftVTableContext: Don't leak VPtrInfos. Found by LSan, PR19522.Nico Weber
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207138 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-24Fix a tiny test-only leak, found by LSan.Nico Weber
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207137 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-24Intrin.h: remove __rdtsc and __rdtscp declarationsHans Wennborg
Since r207132, these are defined in ia32intrin.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207134 91177308-0d34-0410-b5e6-96231b3b80d8