summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* MS ABI: Records with fields with required aligmnet shouldn't be commonDavid Majnemer2015-02-032-3/+24
| | | | llvm-svn: 227954
* AST: Hoist RT->getDecl() into a variableDavid Majnemer2015-02-031-2/+3
| | | | llvm-svn: 227953
* MS ABI: Records with required alignment can't have common linkageDavid Majnemer2015-02-032-1/+7
| | | | | | This fixes PR22441. llvm-svn: 227950
* [analyzer] Change ccc-analyzer to accept both -isystem <path> and -isystem<path>Ted Kremenek2015-02-031-2/+1
| | | | | | Patch by Thomas Hauth! llvm-svn: 227946
* [modules] Be sure to load the lexical definition of a class templateRichard Smith2015-02-037-15/+62
| | | | | | | specialization from an update record exactly once, even if we needed to fake up the definition. llvm-svn: 227939
* InstrProf: Update for LLVM API changeJustin Bogner2015-02-031-10/+10
| | | | | | Update for the change in r227900. llvm-svn: 227901
* test: Make encode-test-5.m's output not dependent on its filenameDavid Majnemer2015-02-021-1/+1
| | | | | | | Pipe the file into clang instead of passing the file path on the command line. llvm-svn: 227896
* Revert "Add some overloads so that floating point literals can be AST ↵Daniel Jasper2015-02-022-34/+0
| | | | | | | | | | matched properly." Apparently the build bots get angry for some reason. Can't reproduce that in a local cmake/ninja build. Will look closer. Rolling back for now. llvm-svn: 227895
* clang lit.cfg: Fix a bug pointed by Sean SilvaFilipe Cabecinhas2015-02-021-1/+1
| | | | llvm-svn: 227894
* Add some overloads so that floating point literals can be AST matched properly.Daniel Jasper2015-02-022-0/+34
| | | | | | | | | | I am not entirely sure whether the implemented sematics are ideal. In particular, should floatLiteral(equals(0.5)) match "0.5f" and should floatLiteral(equals(0.5f)) match "0.5". With the overloads in this patch, the answer to both questions is yes, but I am happy to change that. llvm-svn: 227892
* PR 17421: Implemented -save-temps={obj|cwd} optionReid Kleckner2015-02-025-29/+101
| | | | | | | | | | | | | | | | | -save-temps=cwd is equivalent to -save-temps -save-temps=obj saves temporary file in the same directory as output This helps to avoid clobbering of temp files in case of parallel compilation with -save-temps of the files that have the same name but located in different directories. Patch by Artem Belevich Reviewed By: rnk Differential Revision: http://reviews.llvm.org/D7304 llvm-svn: 227886
* SEH: Diagnose use of C++ EH and SEH in the same functionReid Kleckner2015-02-025-9/+65
| | | | | | | | This check does not apply when Borland extensions are enabled, as they have a checked in test case indicating that mixed usage of SEH and C++ is supported. llvm-svn: 227876
* Add cc1 option '-fmodule-feature' to add custom values for 'requires' declsBen Langmuir2015-02-026-11/+32
| | | | | | | This allows clang-based tools to specify custom features that can be tested by the 'requires' declaration in a module map file. llvm-svn: 227868
* When generating llvm.used, we may need an addrspacecast instead of a bitcast.Justin Holewinski2015-02-022-2/+10
| | | | | | | | | | | | | | | | | | Summary: This is especially important for targets that use multiple address spaces, and commonly place global variables in address spaces other than zero. Fixes PR22383 Test Plan: New test case added: llvm-used.cu Reviewers: jingyue Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7345 llvm-svn: 227861
* FileCheck'ize CodeGenObjC testDavid Majnemer2015-02-021-6/+11
| | | | | | This fixes PR22437. llvm-svn: 227843
* The prefix 'Ms-' should be 'MS-'David Majnemer2015-02-029-18/+18
| | | | | | | Clang is otherwise consistent that Microsoft be abbreviated as MS, not Ms. llvm-svn: 227842
* MS ABI: Add more documentation and tests for novtableDavid Majnemer2015-02-024-1/+37
| | | | llvm-svn: 227838
* MS ABI: Implement support for 'novtable'David Majnemer2015-02-025-2/+23
| | | | | | | | | | It is common for COM interface classes to be marked as 'novtable' to tell the compiler that constructors and destructors should not reference virtual function tables. This commit implements this feature in clang. llvm-svn: 227796
* Wrap to 80 columns. No behavior change.Nico Weber2015-02-021-1/+2
| | | | llvm-svn: 227782
* Follow-up to r217302: Don't crash on ~A::A in a postfix expr suffix followed ↵Nico Weber2015-02-022-0/+7
| | | | | | | | | | | | | | | | | by '<'. This used to crash, complaining "ObjectType and scope specifier cannot coexist": struct A { } b = b.~A::A <int>; The only other caller of ParseOptionalCXXScopeSpecifier() that passes in a non-empty ObjectType clears the ObjectType of the scope specifier comes back non-empty (see the tok::period case in Parser::ParsePostfixExpressionSuffix()), so do that here too. Found by SLi's bot. llvm-svn: 227781
* Remove a comment I accidentally added in r227581. No behavior change.Nico Weber2015-02-021-2/+1
| | | | llvm-svn: 227777
* Allow objc_bridge(id) to be used on typedefs of [cv] void*.John McCall2015-02-018-19/+52
| | | | | | rdar://19678874 llvm-svn: 227774
* [X86] Add other flavors of AVX512 cmpps/cmppd intrinsics.Craig Topper2015-02-012-19/+73
| | | | llvm-svn: 227773
* [X86] Add the AVX512 exp2a23 intrinsics.Craig Topper2015-02-013-0/+124
| | | | llvm-svn: 227769
* Remove decltype in an attempt to fix the MSVC build.Benjamin Kramer2015-02-011-4/+4
| | | | | | C++ is hard, attempt #1 of n. llvm-svn: 227768
* Actually we can just inline the base typedef and use the injected class name ↵Benjamin Kramer2015-02-012-14/+9
| | | | | | for the base class. llvm-svn: 227765
* Reimplement iterator wrappers on top of llvm::iterator_adaptor_base.Benjamin Kramer2015-02-016-201/+64
| | | | | | Eliminates a ton of boilerplate proxying the iterator methods. NFC. llvm-svn: 227764
* [X86] Add test for avx512er builtins that I forgot to commit with changes to ↵Craig Topper2015-02-011-0/+273
| | | | | | the header file. llvm-svn: 227762
* [multiversion] Update Clang for the API change in LLVM r227731.Chandler Carruth2015-02-011-6/+9
| | | | | | | | | | | This moves all of the PassManager <-> Target communication to use the new pass manager's TargetIRAnalysis even with the old pass manager. See the LLVM commit for some of why things are moving in this direction, but the short version is that this will enable us to create per-function TargetTransformInfo objects that have correct subtarget information for that function. llvm-svn: 227732
* [X86] Add all intrinsics for scalar rsqrt28/rcp28 to avx512erintrin.h. Add ↵Craig Topper2015-02-011-16/+99
| | | | | | parentheses around all macro arguments. llvm-svn: 227722
* [X86] Flesh out more of the avx512erintrin.h file.Craig Topper2015-02-011-3/+79
| | | | llvm-svn: 227719
* [X86] Use macros in AVX512ER header to allow ICE to be checked for immediate ↵Craig Topper2015-02-011-72/+38
| | | | | | argument. llvm-svn: 227716
* [X86] Convert some more const ints to ICE in AVX512 builtins.Craig Topper2015-02-011-8/+8
| | | | llvm-svn: 227714
* [X86] Rename _mm512_valign_epi64/32 intrinsics to _mm512_alignr_epi64/32 to ↵Craig Topper2015-02-013-23/+22
| | | | | | match Intel docs. Make immediate argument to them an ICE. Fix mask size for the alignd version. llvm-svn: 227713
* [X86] Change rounding parameter of all the AVX512 builtins to an ICE.Craig Topper2015-02-012-141/+89
| | | | llvm-svn: 227712
* Fix a typoFilipe Cabecinhas2015-01-311-1/+1
| | | | | | We're not that much into metals. llvm-svn: 227696
* Tweak behavior due to -fexceptions, in C++ mode, imply -fcxx-exceptionsFilipe Cabecinhas2015-01-312-3/+17
| | | | | | Added test llvm-svn: 227695
* [PM] Update Clang for the new LLVM API in r227685 for managing theChandler Carruth2015-01-311-9/+11
| | | | | | TargetTransformInfo, and unify the code in a single place. llvm-svn: 227686
* [X86] Make AVX512 integer comparison builtins use unsigned types for the masks.Craig Topper2015-01-311-24/+24
| | | | llvm-svn: 227681
* [X86] AVX512 scatter/gather builtins as taking an ICE for scale instead of ↵Craig Topper2015-01-311-24/+24
| | | | | | just a const int. llvm-svn: 227680
* [X86] Add immediate range checking for a couple XOP builtins.Craig Topper2015-01-311-0/+4
| | | | llvm-svn: 227679
* clang-format: Fix incorrect handling of leading whitespace.Daniel Jasper2015-01-311-6/+12
| | | | | | | Added an assertion that triggered in an existing test case (without observable differences) and fixed the code. llvm-svn: 227677
* [x86] Remove tab characters from avxintrin.h. NFC.Craig Topper2015-01-311-29/+28
| | | | llvm-svn: 227676
* [X86] Make order consistent between 'const' and 'int' in one of the ↵Craig Topper2015-01-311-3/+3
| | | | | | intrinsic header files. NFC llvm-svn: 227675
* [X86] Add range checking to the immediate arguments of many of the SSE/AVX ↵Craig Topper2015-01-313-15/+35
| | | | | | builtins. llvm-svn: 227674
* [modules] When we try to complete the redeclaration chain for a class templateRichard Smith2015-01-316-9/+40
| | | | | | specialization, pull in any lazy specializations of the class template. llvm-svn: 227668
* DebugInfo: Fix line table for comparisons harder/better for the sake of C (& ↵David Blaikie2015-01-312-1/+16
| | | | | | the GDB buildbot) llvm-svn: 227663
* Rename test file to be more accurate (& free up the file name for a more ↵David Blaikie2015-01-311-0/+0
| | | | | | appropriate test) llvm-svn: 227662
* CodeGen: create a WindowsARMTargetCodeGenInfoSaleem Abdulrasool2015-01-302-0/+62
| | | | | | | | | Create a new TargetCodeGenInfo for Windows on ARM to permit annotating the functions with stack-probe-size (for /Gs and -mstack-probe-support) for generating the stack probe necessary for Windows targets. This will be used by the backend when lowering the frame to generate the stack probe appropriately. llvm-svn: 227641
* SEH: Don't jump to an unreachable continuation blockReid Kleckner2015-01-302-4/+29
| | | | | | | If both the __try and __except blocks do not return, we want to delete the continuation block as unreachable instead. llvm-svn: 227627
OpenPOWER on IntegriCloud