summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [Hexagon] Using MustExtend flag on expression instead of passing around bools.Colin LeMahieu2016-02-294-55/+64
| | | | llvm-svn: 262238
* Fix LLD tests that used CHECK-NEXT-NOT. FileCheck does not supportPaul Robinson2016-02-294-7/+7
| | | | | | | | combined suffixes. Differential Revision: http://reviews.llvm.org/D17665 llvm-svn: 262237
* fix typo in commentAdrian Prantl2016-02-291-1/+1
| | | | llvm-svn: 262236
* [ScopDetection] Fix use-after-free.Michael Kruse2016-02-291-3/+2
| | | | | | | | | | | | | | | | removeCachedResults deletes the DetectionContext from DetectionContextMap such that any it cannot be used anymore. Unfortunately invalid<ReportUnprofitable> and RejectLogs.insert still do use it. Because the memory is part of a map and not returned to to the OS immediatly, such that the observable effect was only a memory leak due to reference counters not decreased when the second call to removeCachedResults does not remove the DetectionContext because because it already has been removed. Fix by not removing the DetectionContext prematurely. The second call to removeCachedResults will handle it anyway. llvm-svn: 262235
* Revert "Implement new interfaces for code-formatting when applying ↵Manuel Klimek2016-02-294-132/+2
| | | | | | | | replacements." This reverts commit r262232. llvm-svn: 262234
* Fix for PR26180Nemanja Ivanovic2016-02-294-6/+20
| | | | | | | | | | Corresponds to Phabricator review: http://reviews.llvm.org/D16592 This fix includes both an update to how we handle the "generic" CPU on LE systems as well as Anton's fix for the Fast Isel issue. llvm-svn: 262233
* Implement new interfaces for code-formatting when applying replacements.Manuel Klimek2016-02-294-2/+132
| | | | | | Patch by Eric Liu. llvm-svn: 262232
* [mips] Range check uimm20 and fixed a bug this revealed.Daniel Sanders2016-02-2928-88/+109
| | | | | | | | | | | | | | | | | | | Summary: The bug was that dextu's operand 3 would print 0-31 instead of 32-63 when printing assembly. This came up when replacing MipsInstPrinter::printUnsignedImm() with a version that could handle arbitrary bit widths. MipsAsmPrinter::printUnsignedImm*() don't seem to be used so they have been removed. Reviewers: vkalintiris Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D15521 llvm-svn: 262231
* [mips] Do not use SLL for ANY_EXTEND nodes as the high bits are undefined.Vasileios Kalintiris2016-02-293-20/+22
| | | | | | | | | | Reviewers: dsanders Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D15420 llvm-svn: 262230
* [mips] Make isel select the correct DEXT variant up front.Daniel Sanders2016-02-2910-42/+58
| | | | | | | | | | | | | | | | | Summary: Previously, it would always select DEXT and substitute any invalid matches for DEXTU/DEXTM during MipsMCCodeEmitter::encodeInstruction(). This works but causes problems when adding range checked immediates to IAS. Now isel selects the correct variant up front. Reviewers: vkalintiris Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D16810 llvm-svn: 262229
* AMDGPU: Add missing Volcanic Islands targetsTom Stellard2016-02-292-0/+6
| | | | | | | | | | Reviewers: arsenm Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17645 llvm-svn: 262228
* Reapply "Add update_test.py script."Michael Kruse2016-02-292-0/+448
| | | | | | | | | | | | | | | Originally committed in r261899 and reverted in r262202 due to failing in out-of-LLVM tree builds. Replace the use of LLVM_TOOLS_BINARY_DIR by LLVM_TOOLS_DIR which exists in both, in-tree and out-of-tree builds. Original commit message: The script updates a lit test case that uses FileCheck using the actual output of the 'RUN:'-lines program. Useful when updating test cases due to expected output changes and diff'ing expected and actual output. llvm-svn: 262227
* lto: don't fetch members for weak undef.Rafael Espindola2016-02-292-3/+32
| | | | llvm-svn: 262225
* Revert a part of "Add/Improve complex, vector, aggregate types handling for ↵Pavel Labath2016-02-291-3/+3
| | | | | | | | | | | | SysV ARM (hard/soft) ABI." This partially reverts commit r262218. The commit added additional checks to a test case. The test case is too big so it's not feasible to XFAIL it completely. Suggest to implement the checks as a separate test case, which can then be XFAILed more surgically. llvm-svn: 262223
* IRObject: Mark extern_weak as weak.Rafael Espindola2016-02-292-1/+6
| | | | llvm-svn: 262222
* Remove bogus assert.Rafael Espindola2016-02-292-1/+20
| | | | llvm-svn: 262219
* Add/Improve complex, vector, aggregate types handling for SysV ARM ↵Omair Javaid2016-02-292-61/+125
| | | | | | | | | | (hard/soft) ABI. For details see: Differential revision: http://reviews.llvm.org/D17708 llvm-svn: 262218
* clang-format: Don't format unrelated nested blocks.Daniel Jasper2016-02-292-1/+20
| | | | | | | | | | | | | | | With this change: SomeFunction( [] { int i; return i; // Format this line. }, [] { return 2; // Don't "fix" this. }); llvm-svn: 262216
* [InstSimplify] Restore fsub 0.0, (fsub 0.0, X) ==> X optznBenjamin Kramer2016-02-292-1/+11
| | | | | | | I accidentally removed this in r262212 but there was no test coverage to detect it. llvm-svn: 262215
* Fix compiler warnings in the java codePavel Labath2016-02-292-4/+2
| | | | llvm-svn: 262214
* [mips] Make symbols an acceptable branch target when expanding ↵Daniel Sanders2016-02-293-1/+19
| | | | | | | | | | | | compare-to-immediate-and-branch macros. Reviewers: vkalintiris Subscribers: llvm-commits, vkalintiris, dim, seanbruno, dsanders Differential Revision: http://reviews.llvm.org/D15369 llvm-svn: 262213
* [InstSimplify] fsub 0.0, (fsub -0.0, X) ==> X is only safe if signed zeros ↵Benjamin Kramer2016-02-292-10/+31
| | | | | | | | are ignored. Only allow fsub -0.0, (fsub -0.0, X) ==> X without nsz. PR26746. llvm-svn: 262212
* [test-release.sh] Add lldb to list of projects (disabled by default)Daniel Sanders2016-02-291-0/+15
| | | | | | | | | | Reviewers: hans Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17070 llvm-svn: 262211
* [asan] Fix UB in test/asan/TestCases/Linux/recvfrom.cc testcase.Maxim Ostapenko2016-02-291-1/+1
| | | | llvm-svn: 262210
* Update the link of issueMohit K. Bhakkad2016-02-291-1/+1
| | | | llvm-svn: 262209
* [index] Print and test module import references.Argyrios Kyrtzidis2016-02-296-2/+45
| | | | llvm-svn: 262208
* [index] Add a caller relation for a call reference.Argyrios Kyrtzidis2016-02-294-19/+37
| | | | llvm-svn: 262207
* [AST/RecursiveASTVisitor] Correction so that dataTraverseStmtPost will get ↵Argyrios Kyrtzidis2016-02-292-9/+30
| | | | | | | | called after the statement has been visited. Fixes the indexing client of this. llvm-svn: 262206
* [index] Use ',' to separate symbol roles when printing.Argyrios Kyrtzidis2016-02-293-3/+3
| | | | llvm-svn: 262205
* [asan] Re-enable test/asan/TestCases/Linux/recvfrom.cc testcase.Maxim Ostapenko2016-02-291-49/+39
| | | | | | | | | | | This testcase failed on sanitizer-x86_64-linux buildbot in large parallel build due to race on port 1234 between AddressSanitizer-i386-linux and AddressSanitizer-x86_64-linux instances of recvfrom.cc. This patch tries to resolve the issue by relying on kernel to choose available port instead of hardcoding its number in testcase. Differential Revision: http://reviews.llvm.org/D17639 llvm-svn: 262204
* ScopInfo: Remove indentation in hoistInvariantLoadsTobias Grosser2016-02-291-23/+23
| | | | | | | | We move verifyInvariantLoads out of this function to allow for an early return without the need for code duplication. A similar transformation was suggested by Johannes Doerfert in post commit review of r262033. llvm-svn: 262203
* Revert "Add update_test.py script."Tobias Grosser2016-02-292-448/+0
| | | | | | | | This reverts commit r261899. Even though I am not yet 100% certain, this is commit is the only one that has some relation to the recent cmake failures in Polly. llvm-svn: 262202
* [X86] Disabling avx512f should also disable avx512vbmi and avx512ifma. ↵Craig Topper2016-02-295-4/+48
| | | | | | Enabling avx512vbmi or avx512ifma should enable avx512f. Add command line switches and header defines for avx512ifma and avx512vbmi. llvm-svn: 262201
* [X86] Enabling xsave should not enable AVX. I seem to have done this, but I ↵Craig Topper2016-02-291-6/+2
| | | | | | don't know why. llvm-svn: 262200
* [OPENMP 4.5] Initial support for data members in 'reduction' clauses.Alexey Bataev2016-02-293-143/+191
| | | | | | | | OpenMP 4.5 allows to privatize non-static data members of current class in non-static member functions. Patch adds initial parsing/semantic analysis for data members support in 'reduction' clauses. llvm-svn: 262199
* [clang-cl] /EHc should not effect functions with explicit exception ↵David Majnemer2016-02-295-12/+32
| | | | | | | | | | specifications Functions with an explicit exception specification have their behavior dictated by the specification. The additional /EHc behavior only comes into play if no exception specification is given. llvm-svn: 262198
* [clang-cl] /EHc should not have an effect on /EHaDavid Majnemer2016-02-292-1/+10
| | | | | | This matches behavior with MSVC. llvm-svn: 262197
* [PM] Wire up optimization levels and default pipeline construction APIsChandler Carruth2016-02-283-3/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the PassBuilder. These are really just stubs for now, but they give a nice API surface that Clang or other tools can start learning about and enabling for experimentation. I've also wired up parsing various synthetic module pass names to generate these set pipelines. This allows the pipelines to be combined with other passes and have their order controlled, with clear separation between the *kind* of canned pipeline, and the *level* of optimization to be used within that canned pipeline. The most interesting part of this patch is almost certainly the spec for the different optimization levels. I don't think we can ever have hard and fast rules that would make it easy to determine whether a particular optimization makes sense at a particular level -- it will always be in large part a judgement call. But hopefully this will outline the expected rationale that should be used, and the direction that the pipelines should be taken. Much of this was based on a long llvm-dev discussion I started years ago to try and crystalize the intent behind these pipelines, and now, at long long last I'm returning to the task of actually writing it down somewhere that we can cite and try to be consistent with. Differential Revision: http://reviews.llvm.org/D12826 llvm-svn: 262196
* Remove dead code for ELF.Rui Ueyama2016-02-286-112/+13
| | | | llvm-svn: 262195
* Remove dead code for ELF.Rui Ueyama2016-02-287-136/+3
| | | | | | The preload feature was buggy that we had disabled it even for ELF. llvm-svn: 262194
* Remove remaining code for COFF.Rui Ueyama2016-02-287-150/+0
| | | | llvm-svn: 262193
* Remove DriverTest.h.Rui Ueyama2016-02-282-124/+67
| | | | | | | | Because the class is used only by one instance, we do not have to use template there in DriverTest.h. Everything can be moved to DarwinLdDriverTest.cpp. llvm-svn: 262192
* Make the entry point function calls consistent. NFC.Rui Ueyama2016-02-284-9/+9
| | | | llvm-svn: 262191
* Move functionality of UniversalDriver to the entry point file.Rui Ueyama2016-02-289-311/+109
| | | | | | | | | | | | | | UniversalDriver was used as a dispatcher to each platform-specific driver. It had its own Options.td file. It was not just too much to parse only a few options (we only want to parse -core, -flavor or argv[0]), but also interpreted arguments too early. For example, if you invoke lld as "lld -flavor gnu ... -help", then you'd get the UniversalDriver's help message instead of GnuDriver's. This patch eliminates the use of Options from the dispatcher. http://reviews.llvm.org/D17686 llvm-svn: 262190
* [modules] Prefer more complete array types.Vassil Vassilev2016-02-287-40/+66
| | | | | | | | | | | | | | If we import a module that has a complete array type and one that has an incomplete array type, the declaration found by name lookup might be the one with the incomplete type, possibly resulting in rejects-valid. Now, the name lookup prefers decls with a complete array types. Also, diagnose cases when the redecl chain has array bound, different from the merge candidate. Reviewed by Richard Smith. llvm-svn: 262189
* [PM] Appease mingw32's auto-import DLL build with minimal tweaks, with fix ↵NAKAMURA Takumi2016-02-2828-0/+60
| | | | | | | | for clang. char AnalysisBase::ID should be declared as extern and defined in one module. llvm-svn: 262188
* [mips] Remove unused function declarations from MipsRegisterInfo.h. NFC.Vasileios Kalintiris2016-02-281-10/+0
| | | | llvm-svn: 262187
* Revert r262185, "[PM] Appease mingw32's auto-import DLL build with minimal ↵NAKAMURA Takumi2016-02-2828-60/+0
| | | | | | | | tweaks." I'll rework soon. llvm-svn: 262186
* [PM] Appease mingw32's auto-import DLL build with minimal tweaks.NAKAMURA Takumi2016-02-2828-0/+60
| | | | | | char AnalysisBase::ID should be declared as extern and defined in one module. llvm-svn: 262185
* Delete more COFF and ELF bits from the old linker.Rafael Espindola2016-02-289-85/+7
| | | | llvm-svn: 262184
OpenPOWER on IntegriCloud