summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Make .asm a valid extension for assembly filesHans Wennborg2013-10-171-0/+1
| | | | | | | | This is a common extension on Windows, and now clang will assemble them instead of treating them as linker input which is the default for unknown file types. llvm-svn: 192919
* Fix missed exception spec checks and crashesAlp Toker2013-10-174-24/+59
| | | | | | | | | | | | | | | | | | Delayed exception specification checking for defaulted members and virtual destructors are both susceptible to mutation during iteration so we need to process the worklists fully. This resolves both accepts-invalid and rejects-valid issues and moreover fixes potential invalid memory access as the contents of the vectors change during iteration and recursive template instantiation. This patch also adds two assertions at end of TU to ensure no specs are left unchecked as was happenning before the fix, plus a test case from Marshall Clow for the defaulted member crash extracted from the libcxx headers. Reviewed by Richard Smith. llvm-svn: 192914
* Consumed analysis: fix ICE in handling of loop source locations.DeLesley Hutchins2013-10-172-10/+55
| | | | llvm-svn: 192911
* [AArch64] Add support for NEON scalar three register different instructionChad Rosier2013-10-173-2/+72
| | | | | | | | class. The instruction class includes the signed saturating doubling multiply-add long, signed saturating doubling multiply-subtract long, and the signed saturating doubling multiply long instructions. llvm-svn: 192909
* clang-cl: Add support for asm listings (/FA and /Fa)Hans Wennborg2013-10-175-4/+42
| | | | | | | | | | This adds support for outputing the assembly to a file during compilation. It does this by changing the compilation pipeling to not use the integrated assembler, and keep the intermediate assembler file. Differential Revision: http://llvm-reviews.chandlerc.com/D1946 llvm-svn: 192902
* Rename some functions for consistency.Rafael Espindola2013-10-1720-130/+96
| | | | | | Every other function in Redeclarable.h was using Decl instead of Declaration. llvm-svn: 192900
* [mips] Added -mfp64 and -mfp32 options.Daniel Sanders2013-10-173-0/+18
| | | | | | | | | | | | | | | | These options specify 64-bit FP registers and 32-bit FP registers respectively. When using -mfp32, the FPU has 16x double-precision registers overlapping with the 32x single-precision registers (each double-precision register overlaps two single-precision registers). When using -mfp64, the FPU has 32x double-precision registers overlapping with the 32x single-precision registers (each double-precision register overlaps with one single-precision register and has an additional 32-bits). MSA requires -mfp64. llvm-svn: 192899
* [mips][msa] Update -mmsa help text and removed the hidden flag to better ↵Daniel Sanders2013-10-171-2/+2
| | | | | | match conventions used by other targets llvm-svn: 192898
* [mips][msa] Added most of the remaining builtinsDaniel Sanders2013-10-172-0/+313
| | | | | | | | | | | Includes: and.v, bmnz.v, bmz.v, bnz.[bhwdv], bz.[bhwdv], cfcmsa, ctcmsa, fcaf, fcor, fcueq, fcul[et], fcun, fcune, fsaf, fsueq, fsul[et], fsun, fsune, ftrunc hadd_[su].[hwd], hsub_[su].[hwd], insert.[bhw], insve.[bhw], ld.[bhwd], move.v, nor.v, or.v, srar.[bhwd], srari.[bhwd], srlr.[bhwd], srlri.[bhwd], st.[bhwd], subsus_u.[bhwd], subsuu_s.[bhwd], vshf.[bhwd], xor.v llvm-svn: 192896
* Remove unicode characters, trailing whitespace from test caseDavid Majnemer2013-10-171-10/+10
| | | | llvm-svn: 192877
* Follow-up to r192822: fix Clang assertion when building with -fexceptionsTimur Iskhodzhanov2013-10-172-7/+53
| | | | llvm-svn: 192875
* tsan: update docsDmitry Vyukov2013-10-172-4/+8
| | | | | | update docs for no_sanitize_thread attribute and blacklist llvm-svn: 192872
* This is now passing. Uncomment and close out PR6281.Bill Wendling2013-10-171-4/+2
| | | | llvm-svn: 192869
* Add support to the Clang driver for forwarding all of gfortran's flagsChandler Carruth2013-10-173-4/+325
| | | | | | | | | | to GCC when asked to compile a fortran input. This fixes a regression with essentially every Fortran compile since we started rejecting unknown flags. Also moves a mis-classified gfortran flag into the nicely documented set. llvm-svn: 192867
* Add the context that a function was created in as the context for theEric Christopher2013-10-172-8/+46
| | | | | | function, not the context of the context. llvm-svn: 192862
* Add implementations of the MSVC barrier intrinsicsReid Kleckner2013-10-172-1/+33
| | | | | | | | | | | | | | | | Summary: These are deprecated in VS 2012 according to MSDN. They don't actually compile down to any code. They prevent the compiler from reordering memory accesses across the barrier, which is what a memory-clobbering volatile asm does. Reviewers: echristo CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1954 llvm-svn: 192860
* ObjectiveC migrator. Remove blank linesFariborz Jahanian2013-10-164-59/+6
| | | | | | | when inferring property from setter/getter methods. // rdar://15200949 llvm-svn: 192853
* Rename HandleTargetFeatures->handleTargetFeatures to matchEric Christopher2013-10-162-13/+13
| | | | | | everything else in the class. llvm-svn: 192851
* Add preprocessor support for powerpc vsx.Eric Christopher2013-10-162-2/+41
| | | | | | The test should be expanded upon for more powerpc checking. llvm-svn: 192849
* Remove an old, seemingly out of date, comment.Eric Christopher2013-10-161-3/+0
| | | | | | The referenced script no longer seems to exist. llvm-svn: 192848
* Fix comments.Eric Christopher2013-10-161-2/+2
| | | | llvm-svn: 192847
* PR17592: Ensure we diagnose shadowing a template parameter with a local externRichard Smith2013-10-162-2/+73
| | | | | | declaration. llvm-svn: 192846
* [AArch64] Add support for NEON scalar negate instruction.Chad Rosier2013-10-163-0/+14
| | | | llvm-svn: 192845
* [AArch64] Add support for NEON scalar absolute value instruction.Chad Rosier2013-10-163-0/+14
| | | | llvm-svn: 192844
* ObjectiveC migrator. Don't add 'assign' forFariborz Jahanian2013-10-163-2/+21
| | | | | | | inferred properties when type is scalar and assumed to be 'assign. // rdar://15231241 llvm-svn: 192841
* Add minimal command line support for the VSX powerpc processor.Eric Christopher2013-10-162-0/+9
| | | | | | Preprocessor support is still needed. llvm-svn: 192839
* Rework ppc options handling into a features group.Eric Christopher2013-10-163-28/+39
| | | | | | This should have no functional behavior. llvm-svn: 192838
* ObjectiveC migrator. 'atomic' is the default attribute.Fariborz Jahanian2013-10-162-65/+88
| | | | | | Don't add it to inferred property. // rdar://14988132 llvm-svn: 192834
* Emit a .ident saying that clang produced this file.Rafael Espindola2013-10-164-3/+27
| | | | | | Patch by Katya Romanova. llvm-svn: 192832
* Enabling 3DNow! prefetch instruction support for a few AMD processors in theYunzhong Gao2013-10-163-0/+40
| | | | | | | | | | clang front end. This change will allow the __PRFCHW__ macro to be set on these processors and hence include prfchwintrin.h in x86intrin.h header. Support for the intrinsic itself seems to have already been added in r178041. Differential Revision: http://llvm-reviews.chandlerc.com/D1934 llvm-svn: 192829
* ObjectiveC migrator. Use 'assign' for 'delegate'Fariborz Jahanian2013-10-164-16/+16
| | | | | | properties. // rdar://15231860 llvm-svn: 192826
* [-cxx-abi microsoft] Fix this argument/parameter offsets for virtual ↵Timur Iskhodzhanov2013-10-167-25/+418
| | | | | | | | destructors in the presence of virtual bases Reviewed at http://llvm-reviews.chandlerc.com/D1939 llvm-svn: 192822
* ObjectiveC++: support for passing C++11 style initialized temporaries to Fariborz Jahanian2013-10-162-0/+41
| | | | | | | objc++ properties using property-dot syntax. // rdar://14654207 llvm-svn: 192819
* [analyzer] Don't draw edges to C++11 in-class member initializers.Jordan Rose2013-10-162-2/+234
| | | | | | | | | | | Since these aren't lexically in the constructor, drawing arrows would be a horrible jump across the body of the class. We could still do better here by skipping over unimportant initializers, but this at least keeps everything within the body of the constructor. <rdar://problem/14960554> llvm-svn: 192818
* Driver: Factor duplicated code.Benjamin Kramer2013-10-161-36/+25
| | | | llvm-svn: 192817
* [mips] Enable frame-pointer elimination for -O1 and above.Akira Hatanaka2013-10-162-2/+19
| | | | llvm-svn: 192815
* Add a note about clang now rejecting unknown options.Rafael Espindola2013-10-161-0/+3
| | | | llvm-svn: 192808
* Update comment.Chad Rosier2013-10-161-1/+1
| | | | llvm-svn: 192807
* Update comment.Chad Rosier2013-10-161-1/+1
| | | | llvm-svn: 192804
* Sema: Simplify the check if a method returns an instance of the class.Benjamin Kramer2013-10-162-1/+19
| | | | | | | Just checking if the parent of the method is the same as the return type should be sufficient. Also fixes PR17587. llvm-svn: 192802
* [AArch64] Add support for NEON scalar signed saturating accumulated of unsignedChad Rosier2013-10-163-0/+70
| | | | | | value and unsigned saturating accumulate of signed value instructions. llvm-svn: 192801
* Remove a workaround for PR16406 from the vtables-virtual-inheritance testTimur Iskhodzhanov2013-10-161-11/+8
| | | | llvm-svn: 192786
* On 32 bit windows, mangle stdcall and fastcall decls in clang.Rafael Espindola2013-10-167-58/+226
| | | | | | | | | | | This removes the dependency on the llvm mangler doing it for us. In isolation, the benefit is that the testing of what mangling is applied is all in one place: (C, C++) X (Itanium, Microsoft) are all handled by clang. This also gives me hope that in the future the llvm mangler (and llvm-ar) will not depend on TargetMachine. llvm-svn: 192762
* Test that we can merge together explicit and partial specializations fromRichard Smith2013-10-155-0/+35
| | | | | | merged declarations of a class template. llvm-svn: 192746
* C++ modules: merging for enumerations and enumerators with multiple definitionsRichard Smith2013-10-157-1/+76
| | | | | | (eg through template instantiations in multiple modules). llvm-svn: 192740
* Teach the AST dumper to dump the canonical declaration for a mergeable ↵Richard Smith2013-10-151-9/+16
| | | | | | declaration. llvm-svn: 192739
* Remove this regression test now that PR17578 is fixed (r192674). The fix is toYunzhong Gao2013-10-151-14/+0
| | | | | | reject this test case at the Sema stage, so no CodeGen test should be needed. llvm-svn: 192738
* Reflow slightly.Eric Christopher2013-10-151-2/+2
| | | | llvm-svn: 192736
* [AArch64] Add support for NEON scalar signed saturating absolute value andChad Rosier2013-10-153-0/+69
| | | | | | scalar signed saturating negate instructions. llvm-svn: 192734
* Add constant evaluation support for __builtin_isinf, __builtin_isfinite,Richard Smith2013-10-152-0/+76
| | | | | | __builtin_isnan, and __builtin_isnormal. Patch by Karthik Bhat! Tests by me. llvm-svn: 192729
OpenPOWER on IntegriCloud