summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Debug Info: When building a module, emit skeleton CUs for imported modules.Adrian Prantl2015-09-213-9/+30
| | | | llvm-svn: 248184
* Revert "[ARM] Handle +t2dsp feature as an ArchExtKind in ARMTargetParser.def"James Molloy2015-09-212-19/+17
| | | | | | | | This was committed without the code review (http://reviews.llvm.org/D12938) being approved. This reverts commit r248154. llvm-svn: 248173
* Fix assertion in inline assembler IR genAlexander Musman2015-09-213-0/+31
| | | | | | | Several inputs may not refer to one output constraint in inline assembler insertions, clang was failing on assertion on such test case. llvm-svn: 248158
* [X86] Make f16c intrinsics accessible through emmintrin.h, per Intel docsMichael Kuperstein2015-09-212-2/+4
| | | | | | Differential Revision: http://reviews.llvm.org/D13015 llvm-svn: 248156
* [ARM] Handle +t2dsp feature as an ArchExtKind in ARMTargetParser.defArtyom Skrobov2015-09-212-17/+19
| | | | | | | | | | | | | | | | Currently, the availability of DSP instructions (ACLE 6.4.7) is handled in a hand-rolled tricky condition block in lib/Basic/Targets.cpp, with a FIXME: attached. http://reviews.llvm.org/D12937 moved the handling of +t2dsp over to ARMTargetParser.def in LLVM, to be in line with other architecture extensions. This is the corresponding patch to clang, to clear the FIXME: and update the tests. Differential Revision: http://reviews.llvm.org/D12938 llvm-svn: 248154
* [X86] Fix some non-reserved parameter names in intrinsic headersMichael Kuperstein2015-09-212-26/+26
| | | | | | Differential Revision: http://reviews.llvm.org/D13009 llvm-svn: 248150
* clang-format: Fix merging short case labels with comments.Daniel Jasper2015-09-212-1/+5
| | | | | | | | This fixes llvm.org/PR24877. Patch by Benjamin Daly, thank you! llvm-svn: 248145
* clang/test/Modules/DebugInfoSubmodules.c REQUIRES asserts due to -debug-only.NAKAMURA Takumi2015-09-211-0/+1
| | | | llvm-svn: 248142
* Pass SourceLocation by value instead of by const reference since its just a ↵Craig Topper2015-09-211-2/+2
| | | | | | 32-bit integer. NFC llvm-svn: 248138
* Don't pass StringRefs around by const reference. Pass by value instead per ↵Craig Topper2015-09-211-1/+1
| | | | | | coding standards. NFC llvm-svn: 248137
* Module debugging: Support submodules in the PCM/PCH debug info.Adrian Prantl2015-09-207-13/+75
| | | | llvm-svn: 248127
* Further simplify the interface of PCHContainerGeneratorAdrian Prantl2015-09-195-21/+19
| | | | | | | | by dropping the const qualifier on the CI. NFC llvm-svn: 248101
* Convert two loops to range-based loops. No behavior change.Nico Weber2015-09-191-5/+3
| | | | llvm-svn: 248100
* Driver: alter the getARMFloatABI signatureSaleem Abdulrasool2015-09-193-25/+23
| | | | | | | | | | This changes getARMFloatABI to use the ToolChain and Args instead of Driver, Args, Triple. Although this pushes the Triple calculation/parsing into the function itself, it enables the use of the function for a future change. The reason to sink the triple calculation here is to avoid threading the Triple through multiple layers in a future change. llvm-svn: 248095
* Driver: tweak ARM target feature calculationSaleem Abdulrasool2015-09-192-11/+8
| | | | | | | | | Rather than using re-calculating the effective triple, thread the already calculated value down into AddARMTargetArgs. This avoids both recreating the triple, as well as re-parsing the triple as it was already done in the previous frame. llvm-svn: 248094
* [X86][SSE] Replace 128-bit SSE41 PMOVSX intrinsics with native IRSimon Pilgrim2015-09-194-24/+12
| | | | | | | | | | 128-bit vector integer sign extensions correctly lower to the pmovsx instructions even for debug builds. This patch removes the builtins and reimplements the _mm_cvtepi*_epi* intrinsics __using builtin_shufflevector (to extract the bottom most subvector) and __builtin_convertvector (to actually perform the sign extension). Differential Revision: http://reviews.llvm.org/D12835 llvm-svn: 248092
* [clang-tidy] Fix example comments.Alexander Kornienko2015-09-191-2/+3
| | | | | | | | Patch by don hinton! Differential revision: http://reviews.llvm.org/D12967 llvm-svn: 248090
* [Modules] More descriptive diagnostics for misplaced import directiveSerge Pavlov2015-09-1920-22/+115
| | | | | | | | | | If an import directive was put into wrong context, the error message was obscure, complaining on misbalanced braces. To get more descriptive messages, annotation tokens related to modules are processed where they must not be seen. Differential Revision: http://reviews.llvm.org/D11844 llvm-svn: 248085
* Driver: avoid unnecessary string opsSaleem Abdulrasool2015-09-192-24/+35
| | | | | | | | Use an enumeration for the Floating Point ABIs supported on MIPS. This is replicating the ARM change to avoid string based tracking of the floating point ABI. NFC. llvm-svn: 248083
* Add test that we correctly allow some non-letter unicode characters inRichard Smith2015-09-191-1/+10
| | | | | | identifiers, and extend existing test to also cover C++. llvm-svn: 248079
* Further simplify CGDebugInfo::getOrCreateModuleRef().Adrian Prantl2015-09-191-10/+8
| | | | | | DIBuilder ignoers DICompileUnits that are passed in as scopes anyway. llvm-svn: 248077
* Use std::move on these arguments.Adrian Prantl2015-09-191-2/+2
| | | | llvm-svn: 248076
* Rename ASTSourceDescriptor::ModuleName to FullModuleName for clarity.Adrian Prantl2015-09-193-10/+11
| | | | llvm-svn: 248070
* Refactor ASTReader::getSourceDescriptor(const Module &) into a constructorAdrian Prantl2015-09-195-32/+21
| | | | | | | | of ASTSourceDescriptor. It was effectively a static function. NFC. llvm-svn: 248069
* Eliminate a redundant check.Adrian Prantl2015-09-191-3/+2
| | | | llvm-svn: 248068
* [Static Analyzer] Fixed a false positive case in DynamicTypeChecker when ↵Gabor Horvath2015-09-182-0/+21
| | | | | | dealing with forward declarations. llvm-svn: 248065
* Split off the binary literal warning into a subgroup of C++14 warningsRichard Trieu2015-09-183-2/+8
| | | | | | | | | Binary literals predate C++14, but they are listed as a C++14 extension since this was the first time they were standardized in the language. Move the warning into a subgroup so it can be selectively disabled when checking for other C++14 features. llvm-svn: 248064
* CGDebugInfo: Make creating a skeleton CU in getOrCreateModuleRef optional.Adrian Prantl2015-09-182-16/+25
| | | | | | | | | We don't want a skeleton CU when generating debug info for the module itself. NFC. llvm-svn: 248062
* Simplify the interface of PCHContainerGenerator and friendsAdrian Prantl2015-09-185-54/+31
| | | | | | | | by passing in a CompilerInstance instead of all its individual members. NFC. llvm-svn: 248053
* Relax the test to get it passing with windows paths.Rafael Espindola2015-09-181-1/+1
| | | | llvm-svn: 248051
* Analyzer: Fix a crasher in UbigraphVizIsmail Pazarbasi2015-09-182-2/+10
| | | | | | | | | | | | | | | Summary: Name `Out` refers to the parameter. It is moved into the member `Out` in ctor-init. Dereferencing null pointer will crash clang, if user passes '-analyzer-viz-egraph-ubigraph' argument. Reviewers: zaks.anna, krememek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12119 llvm-svn: 248050
* Reduce indentation in the TargetInfo implementations and fix upEric Christopher2015-09-181-369/+362
| | | | | | a couple of macro builtin redefines. llvm-svn: 248046
* [CMake] Refactoring and cleaning up clang symlink generation.Chris Bieneman2015-09-183-72/+13
| | | | | | | | Generation of clang symlinks now uses add_clang_symlink macro which uses add_llvm_symlink. Also the list of symlinks to generate is configurable via CLANG_LINKS_TO_CREATE. This re-lands r248015, with fixes for clang symlinks to always be generated as part of the clang and install-clang targets. llvm-svn: 248043
* [Static Analyzer] General type checker based on dynamic type information.Gabor Horvath2015-09-186-271/+636
| | | | | | Differential Revision: http://reviews.llvm.org/D12973 llvm-svn: 248041
* Debug Info: Use the full module name as a key when caching DIModules.Adrian Prantl2015-09-182-3/+3
| | | | | | | | | | | The signature may not have been computed at the time the module reference is generated (e.g.: in the future while emitting debug info for a clang module). Using the full module name is safe because each clang module may only have a single definition. NFC. llvm-svn: 248037
* Handle lld not being found in PATH.Rafael Espindola2015-09-181-1/+1
| | | | llvm-svn: 248035
* clang-cl: Don't warn on /bigobj flagNico Weber2015-09-182-1/+2
| | | | | | | | | | LLVM r217812 made it so that clang-cl implicitly creates bigobj files when needed, independent of this flag. It looks like cl has this flag to produce obj flags compatible with MSVS 2003's linker by default, something we don't care about. Since clang-cl always has /bigobj behavior, don't warn that the flag is unused, just ignore it silently. llvm-svn: 248034
* Yet another try at fixing this at every bot.Rafael Espindola2015-09-181-2/+2
| | | | | | This time handle " and - after clang and lld. llvm-svn: 248033
* Relax this test further to pass in other bots.Rafael Espindola2015-09-181-4/+2
| | | | | | | | | The problem this time was the /clang matching the InstalledDir line. Now we just use regular expressions which are more flexible, if a bit less readable, than CHECK+CHECK-SAME. llvm-svn: 248031
* Fix test to pass when the directory name has lld in it.Rafael Espindola2015-09-181-5/+4
| | | | | | | | | | | | | | | CHECK-LABEL assumes that there is only one occurrence of the match. The output looks like: clang version 3.8.0 (trunk 247999) .... /path/to/build/dir/bin/clang-3.8 .... If the path contains lld, the second CHECK-LABEL matches it and we fail since there is no -cc1as between clang and lld. llvm-svn: 248029
* Revert "[CMake] Refactoring and cleaning up clang symlink generation."Chris Bieneman2015-09-183-15/+72
| | | | | | This reverts commit r248015, because it broke bots. I'll revise and recommit. llvm-svn: 248025
* [analyzer] A fix for substraction of an integer from a pointer.Gabor Horvath2015-09-182-1/+19
| | | | | | | | Patch by Artem Dergachev! Differential Revision: http://reviews.llvm.org/D12725 llvm-svn: 248021
* [CMake] Set CLANG_LINKS_TO_CREATE in Apple-stage2.cmake so that we create cc ↵Chris Bieneman2015-09-181-0/+1
| | | | | | and c++ links. llvm-svn: 248016
* [CMake] Refactoring and cleaning up clang symlink generation.Chris Bieneman2015-09-183-72/+15
| | | | | | Generation of clang symlinks now uses add_clang_symlink macro which uses add_llvm_symlink. Also the list of symlinks to generate is configurable via CLANG_LINKS_TO_CREATE. llvm-svn: 248015
* clang-cl: Use 'pc' for the vendor field in the default tripleHans Wennborg2015-09-181-0/+1
| | | | | | | Leaving it unset can make the triple look confusing, especially when using -m32 or -m64. llvm-svn: 248005
* [Static Analyzer] Use generics related information to infer dynamic types.Gabor Horvath2015-09-182-14/+31
| | | | | | Differential Revision: http://reviews.llvm.org/D12916 llvm-svn: 248002
* Suppress amdgpu-toolchain.c for targeting ps4, for now. Investigating.NAKAMURA Takumi2015-09-181-1/+1
| | | | llvm-svn: 248000
* [analyzer] Update links to developer.apple.com.Jordan Rose2015-09-182-7/+7
| | | | | | | The content at the new links is /also/ a little dated, but that's our (Apple's) problem. llvm-svn: 247999
* amdgpu-toolchain.c: Add a probe line temporally. Will revert later.NAKAMURA Takumi2015-09-181-0/+1
| | | | llvm-svn: 247997
* Use None instead of an explicit constructor.Douglas Katzman2015-09-182-3/+2
| | | | | | | And remove a needless 'const' since ArrayRef is immutable. Both as suggested by dblaikie on cfe-commits. llvm-svn: 247995
OpenPOWER on IntegriCloud