summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix an unused-variable warning by using the variable in the placeJohn McCall2016-04-042-1/+9
| | | | | | it was supposed to have been used. llvm-svn: 265344
* [CrashReproducer] Pass -I, -F and -resource-dir to the reproducer script ↵Bruno Cardoso Lopes2016-04-042-9/+10
| | | | | | | | | | when using modules/vfs The reproducer should use -I/-F/-resource-dir in the same way as the original command. The VFS already collects the right headers but without these flags the reproducer will fail to do the right thing. llvm-svn: 265343
* disabled TSAN tests until the author can help track down CI failuresTodd Fiala2016-04-042-0/+2
| | | | | | | These tests run fine locally for me but are failing on the Green Dragon OS X CI. llvm-svn: 265342
* [Sema] Delete FIXME that has been fixed. NFC.George Burgess IV2016-04-041-2/+0
| | | | llvm-svn: 265341
* Xcode: run gtests when building the lldb-gtest targetTodd Fiala2016-04-041-0/+15
| | | | | | | This addresses the following task: https://llvm.org/bugs/show_bug.cgi?id=27181 Xcode gtests: ensure they run, not just build, on Xcode target llvm-svn: 265340
* OMP_WAIT_POLICY changesJonathan Peyton2016-04-042-2/+55
| | | | | | | | | | | | | This change has OMP_WAIT_POLICY=active to mean that threads will busy-wait in spin loops and virtually never go to sleep. OMP_WAIT_POLICY=passive now means that threads will immediately go to sleep inside a spin loop. KMP_BLOCKTIME was the previous mechanism to specify this behavior via KMP_BLOCKTIME=0 or KMP_BLOCKTIME=infinite, but the standard OpenMP environment variable should also be able to specify this behavior. Differential Revision: http://reviews.llvm.org/D18577 llvm-svn: 265339
* Fix redundant "typename typename T" in Visual Studio Native VisualizerMike Spertus2016-04-041-2/+3
| | | | | | Also, a little minor cleanup llvm-svn: 265338
* Enable unroll for constant bound loops when TripCount is not modulo of ↵Zia Ansari2016-04-042-0/+39
| | | | | | | | | | unroll factor, reducing it to maximum power-of-2 that satisfies threshold limit. Commit for Evgeny Stupachenko (evstupac@gmail.com) Differential Revision: http://reviews.llvm.org/D18290 llvm-svn: 265337
* Revert unintentional change.Rafael Espindola2016-04-041-1/+1
| | | | | | | | resolve can remain private. Thanks to Rui for noticing it. llvm-svn: 265336
* Put these options in sorted order.Sean Silva2016-04-041-1/+1
| | | | | | Feedback from Davide on r265206. llvm-svn: 265335
* Fix bot errors from r265327, exact GUID which depends on pathTeresa Johnson2016-04-041-34/+33
| | | | | | | | | E.g. http://bb.pgr.jp/builders/ninja-x64-msvc-RA-centos6/builds/21919 The source file path name will affect exact GUID, don't try to match exact value. llvm-svn: 265334
* Beef up some dllexport tests.Sean Silva2016-04-041-1/+23
| | | | | | | | | | | | | | | | Adds some dllexport tests to verify that: - Variables in bss are exported appropriately - Non-dllexport symbols aliased to dllexport symbols are not exported - Symbols declared as dllexport but are not defined are not exported We plan to enable dllimport/dllexport support for the PS4, and these additional tests are for points we noticed in our internal testing. Patch by Warren Ristow! Differential Revision: http://reviews.llvm.org/D18682 llvm-svn: 265333
* Rename Other -> StOther.Rui Ueyama2016-04-043-19/+22
| | | | | | "Other" as a name is too generic, so name it StOther. llvm-svn: 265332
* Revert r263460: [SpillPlacement] Fix a quadratic behavior in spill placement.Chandler Carruth2016-04-042-44/+53
| | | | | | | | | | | | | | | | | That commit looks wonderful and awesome. Sadly, it greatly exacerbates PR17409 and effectively regresses build time for a lot of (very large) code when compiled with ASan or MSan. We thought this could be fixed forward by landing D15302 which at last fixes that PR, but some issues were discovered and it looks like that got reverted, so reverting this as well temporarily. As soon as the fix for PR17409 lands and sticks, we should re-land this patch as it won't trigger more significant test cases hitting that bug. Many thanks to Quentin and Wei here as they're doing all the awesome hard work!!! llvm-svn: 265331
* [PGO] Avoid instrumenting direct callee's at value sites.Betul Buyukkurt2016-04-042-0/+12
| | | | | | | | | | Direct callees' that are cast to other function prototypes, show up in the Call/Invoke instructions as ConstantExpr's. Currently llvm::CallSite's getCalledFunction() fails to return the callees in such expressions as direct calls. Value profiling should avoid instrumenting such cases. Mostly NFC. llvm-svn: 265330
* ARM, AArch64, X86: Check preserved registers for tail calls.Matthias Braun2016-04-047-22/+80
| | | | | | | | | | | | | | | | We can only perform a tail call to a callee that preserves all the registers that the caller needs to preserve. This situation happens with calling conventions like preserver_mostcc or cxx_fast_tls. It was explicitely handled for fast_tls and failing for preserve_most. This patch generalizes the check to any calling convention. Related to rdar://24207743 Differential Revision: http://reviews.llvm.org/D18680 llvm-svn: 265329
* Assignment operators should return by reference.John McCall2016-04-041-1/+1
| | | | | | Thanks to Sean Silva for pointing this out. llvm-svn: 265328
* [ThinLTO] Add option to dump value name to GUID mappingTeresa Johnson2016-04-042-6/+53
| | | | | | | | | | | | | | | Summary: Useful for debugging since we lose this correlation after the permodule summary/VST is read and until we later materialize source modules in the function importer. Reviewers: joker.eph Subscribers: llvm-commits, joker.eph Differential Revision: http://reviews.llvm.org/D18555 llvm-svn: 265327
* [ThinLTO] Augment FunctionImport dump with value name to GUID mapTeresa Johnson2016-04-041-3/+18
| | | | | | | | | | | | | | | | Summary: To aid in debugging, dump out the correlation between value names and GUID for each source module when it is materialized. This will make it easier to comprehend the earlier summary-based function importing debug trace which only has access to and prints the GUIDs. Reviewers: joker.eph Subscribers: llvm-commits, joker.eph Differential Revision: http://reviews.llvm.org/D18556 llvm-svn: 265326
* Add copyright notice to the modulemap file.Yunzhong Gao2016-04-041-0/+23
| | | | | | | | | | The module.modulemap file in the lib/Headers directory was missing the LLVM copyright notice. This patch adds the copyright notice just like the rest of the files in this directory. Differential Revision: http://reviews.llvm.org/D18709 llvm-svn: 265325
* IRGen-level lowering for the Swift calling convention.John McCall2016-04-0412-45/+1894
| | | | llvm-svn: 265324
* Add a couple of convenience operations to CharUnits.John McCall2016-04-041-0/+8
| | | | llvm-svn: 265323
* Apply suggestion from HJ Lu to avoid misaligned stack in testReid Kleckner2016-04-041-1/+1
| | | | | | Fixes PR27191 llvm-svn: 265322
* fix documentation comments; NFCSanjay Patel2016-04-041-31/+30
| | | | llvm-svn: 265321
* Add comments.Rui Ueyama2016-04-041-3/+5
| | | | llvm-svn: 265320
* [DependenceAnalysis] Check if result of getConstantPart is nullBrendon Cahoon2016-04-042-0/+79
| | | | | | | | | | | A seg-fault occurs due to a reference of a null pointer, which is the value returned by getConstantPart. This function returns null if the constant part is not found. The code that calls this function needs to check for the null return value. Differential Revision: http://reviews.llvm.org/D18718 llvm-svn: 265319
* Replace MachineRegisterInfo::isSSA() with a MachineFunctionPropertyDerek Schuff2016-04-044-27/+26
| | | | | | | | | Use the MachineFunctionProperty mechanism to indicate whether a MachineFunction is in SSA form instead of a custom method on MachineRegisterInfo. NFC Differential Revision: http://reviews.llvm.org/D18574 llvm-svn: 265318
* Revert r265309 and r265312 because they caused some errors I need to ↵Wei Mi2016-04-0416-950/+1054
| | | | | | investigate. llvm-svn: 265317
* Fix -disable-verify test.Rui Ueyama2016-04-041-3/+6
| | | | | | | | This test didn't actually test the functionality. The new test verifies that "-verify" is passed if and only if -disable-verify is not given. llvm-svn: 265316
* Xcode: modify lldb-python-test-suite target to build inferiors with ↵Todd Fiala2016-04-041-1/+5
| | | | | | | | | | $(LLDB_PYTHON_TESTSUITE_CC) $(LLDB_PYTHON_TESTSUITE_CC) defaults to the just-built clang. Together with changes to the zorg repo, this enables the Green Dragon LLDB OS X Xcode-based builder to run the new TSAN LLDB tests. llvm-svn: 265315
* Document standard substitutions defined by lit.Paul Robinson2016-04-041-0/+29
| | | | | | | | Patch by Guilherme Bufolo! Differential Revision: http://reviews.llvm.org/D18752 llvm-svn: 265314
* Add MachineFunctionProperty checks for AllVRegsAllocated for target passesDerek Schuff2016-04-0445-6/+210
| | | | | | | | | | | | | | Summary: This adds the same checks that were added in r264593 to all target-specific passes that run after register allocation. Reviewers: qcolombet Subscribers: jyknight, dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D18525 llvm-svn: 265313
* Fix unused var warning caused by r265309.Wei Mi2016-04-041-3/+3
| | | | llvm-svn: 265312
* Fix test which failed Error migration on Windows bots.Pete Cooper2016-04-041-3/+2
| | | | | | | | | | | | | | Note, this is https://llvm.org/bugs/show_bug.cgi?id=27187. The problem here was that just converting an error to a bool doesn't always set the checked bit. We only set that bit if the Error didn't actually contain an error. Otherwise we'd end potentially up silently dropping it. Instead just use the consumeError method which is designed to allow us to drop an error. llvm-svn: 265311
* [ELF][MIPS] Extend test case to check LA25 stubs creation for STO_MIPS_PIC ↵Simon Atanasyan2016-04-042-24/+49
| | | | | | | | | | | | symbols. NFC. The only way to get an object file with symbols marked by the STO_MIPS_PIC flag is to link PIC and non-PIC object files and generate a relocatable output using '-r' command line option. Now LLD is able to generate a relocatable output but does not mark PIC symbols by the STO_MIPS_PIC flag. So I have to use binary input mips-sto-pic.o generated by GNU BFD linker. llvm-svn: 265310
* Replace analyzeSiblingValues with new algorithm to fix its compileWei Mi2016-04-0416-1053/+949
| | | | | | | | | | | | | | | | | | | | | | | | | time issue. The patch is to solve PR17409 and its duplicates. analyzeSiblingValues is a N x N complexity algorithm where N is the number of siblings generated by reg splitting. Although it causes siginificant compile time issue when N is large, it is also important for performance since it removes redundent spills and enables rematerialization. To solve the compile time issue, the patch removes analyzeSiblingValues and replaces it with lower cost alternatives containing two parts. The first part creates a new spill hoisting method in postOptimization of register allocation. It does spill hoisting at once after all the spills are generated instead of inside every instance of selectOrSplit. The second part queries the define expr of the original register for rematerializaiton and keep it always available during register allocation even if it is already dead. It deletes those dead instructions only in postOptimization. With the two parts in the patch, it can remove analyzeSiblingValues without sacrificing performance. Differential Revision: http://reviews.llvm.org/D15302 llvm-svn: 265309
* Set the architecture type from minidump more precisely. Differentiate i686 ↵Adrian McCarthy2016-04-041-2/+10
| | | | | | v i386 when possible. llvm-svn: 265308
* Fix for Bug #27193; 'std::acos on complex does not agree with C'. Tests need ↵Marshall Clow2016-04-041-1/+1
| | | | | | work; so the bug will stay open. llvm-svn: 265306
* Regenerate test file.Rafael Espindola2016-04-043-4/+1
| | | | | | | It had been created with a lld version that was producing an invalid sh_info. llvm-svn: 265305
* [OPENMP] Codegen for teams directive for NVPTXCarlo Bertolli2016-04-046-21/+240
| | | | | | | | | | | | This patch implements the teams directive for the NVPTX backend. It is different from the host code generation path as it: Does not call kmpc_fork_teams. All necessary teams and threads are started upon touching the target region, when launching a CUDA kernel, and their execution is coordinated through sequential and parallel regions within the target region. Does not call kmpc_push_num_teams even if a num_teams of thread_limit clause is present. Setting the number of teams and the thread limit is implemented by the nvptx-related runtime. Please note that I am now passing a Clang Expr * to emitPushNumTeams instead of the originally chosen llvm::Value * type. The reason for that is that I want to avoid emitting expressions for num_teams and thread_limit if they are not needed in the target region. http://reviews.llvm.org/D17963 llvm-svn: 265304
* [clang-tidy] Reduce false-positive ratio in misc-suspicious-missing-comma check.Etienne Bergeron2016-04-043-7/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch is adding detection of common string literal patterns that should not trigger warnings. [*] Add a limit on the number of concatenated token, [*] Add support for parenthese sequence of tokens, [*] Add detection of valid indentation. As an example, this code will no longer trigger a warning: ``` const char* Array[] = { "first literal" "indented literal" "indented literal", "second literal", [...] ``` Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D18695 llvm-svn: 265303
* [mips] Range check simm32 and fold MIPS16's imm32 into simm32.Daniel Sanders2016-04-044-51/+73
| | | | | | | | | | | | | | Summary: At this point we should be able to enable IAS by default for O32 without breaking check-all, or recursion. Reviewers: vkalintiris Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D18439 llvm-svn: 265302
* AnnotateFunctions: Tweak for mingw.NAKAMURA Takumi2016-04-043-0/+6
| | | | | | | - Externalize the registry. - Update libdeps. llvm-svn: 265301
* [asan,tsan] Make Darwin-specific tests more stable (use ↵Kuba Brecka2016-04-0413-18/+18
| | | | | | ignore_interceptors_accesses=1 for GCD tests and printf instead of NSLog). llvm-svn: 265300
* Make FileSpec handling platform-independentPavel Labath2016-04-042-40/+119
| | | | | | | | | | | | | | | | | Summary: Even though FileSpec attempted to handle both kinds of path syntaxes (posix and windows) on both platforms, it relied on the llvm path library to do its work, whose behavior differed on different platforms. This led to subtle differences in FileSpec behavior between platforms. This replaces the pieces of the llvm library with our own implementations. The functions are simply copied from llvm, with #ifdefs replaced by runtime checks for ePathSyntaxWindows. Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D18689 llvm-svn: 265299
* [clang-tidy] fix a couple of modernize-use-override bugsAlexander Kornienko2016-04-044-10/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for __declspec attributes and const=0 without space This patch is to address 2 problems I found with Clang-tidy:modernize-use-override. 1: missing spaces on pure function decls. Orig: void pure() const=0 Problem: void pure() constoverride =0 Fixed: void pure() const override =0 2: This is ms-extension specific, but possibly applies to other attribute types. The override is placed before the attribute which doesn’t work well with declspec as this attribute can be inherited or placed before the method identifier. Orig: class __declspec(dllexport) X : public Y { void p(); }; Problem: class override __declspec(dllexport) class X : public Y { void p(); }; Fixed: class __declspec(dllexport) class X : public Y { void p() override; }; Patch by Robert Bolter! Differential Revision: http://reviews.llvm.org/D18396 llvm-svn: 265298
* Try to fix the windows build.Rafael Espindola2016-04-041-3/+8
| | | | | | MSVC doesn't want StringRef in an union. llvm-svn: 265297
* [SystemZ] Add compare-and-branch instructions to MCUlrich Weigand2016-04-044-21/+1282
| | | | | | | | | | | | This adds MC support for fused compare + indirect branch instructions, ie. CRB, CGRB, CLRB, CLGRB, CIB, CGIB, CLIB, CLGIB. They aren't actually generated yet -- this is preparation for their use for conditional returns in the next iteration of D17339. Author: koriakin Differential Revision: http://reviews.llvm.org/D18742 llvm-svn: 265296
* Add a PragmaHandler Registry for plugins to add PragmaHandlers toJohn Brawn2016-04-045-4/+89
| | | | | | | | | | This allows plugins which add AST passes to also define pragmas to do things like only enable certain behaviour of the AST pass in files where a certain pragma is used. Differential Revision: http://reviews.llvm.org/D18319 llvm-svn: 265295
* Fix flakyness in TestWatchpointMultipleThreadsPavel Labath2016-04-042-7/+2
| | | | | | | This addresses the same problem as r264846 (the test not expecting the situation when two thread hit the watchpoint simultaneously), but for a different test. llvm-svn: 265294
OpenPOWER on IntegriCloud