1. Dec 21, 2016
  2. Dec 20, 2016
    • Tom Stellard's avatar
      AMDGPU/SI: Add a MachineMemOperand to MIMG instructions · 244891d1
      Tom Stellard authored
      Summary:
      Without a MachineMemOperand, the scheduler was assuming MIMG instructions
      were ordered memory references, so no loads or stores could be reordered
      across them.
      
      Reviewers: arsenm
      
      Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, tony-tye
      
      Differential Revision: https://reviews.llvm.org/D27536
      
      llvm-svn: 290179
      244891d1
    • Daniel Jasper's avatar
      clang-format: Fix bug in understanding string-label&value analysis. · f789f05e
      Daniel Jasper authored
      While for <<-operators often used in log statments, a single key value
      pair is always on the second operator, e.g.
      
        llvm::errs() << "aaaaa=" << aaaaa;
      
      It is on the first operator for plus- or comma-concatenated strings:
      
        string s = "aaaaaaaaaa: " + aaaaaaaa;
      
      (the "=" not counting because that's a different operator precedence)
      
      llvm-svn: 290177
      f789f05e
    • Eric Liu's avatar
      [change-namespace] do not fix calls to overloaded operator functions. · e3f35e4d
      Eric Liu authored
      Summary: Also make sure one function reference is only processed once.
      
      Reviewers: hokein
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D27982
      
      llvm-svn: 290176
      e3f35e4d
    • Alexey Bataev's avatar
      [OPENMP] Fix for PR31428: variable named like directive name modifier · 2a6de8c3
      Alexey Bataev authored
      Directive name modifiers in 'if' clause are allowed only for OpenMP 4.5
      and higher + in OpenMP 4.5 parsing procedure emits error message if ':'
      is not found after directive name modifier.
      
      llvm-svn: 290175
      2a6de8c3
    • George Rimar's avatar
      [ELF] - Treat .openbsd.randomdata as relro section · d003c7f3
      George Rimar authored
      That was requested by Mark Kettenis in llvm-dev:
      
      "It is the intention that .openbsd.randomdata sections are made
      read-only after initialization. The native (ld.bfd based) OpenBSD
      toolchain accomplishes this by including .openbsd.randomdata into the
      PT_GNU_RELRO segment."
      
      He suggested code change, I added testcase.
      
      Differential revision: https://reviews.llvm.org/D27974
      
      llvm-svn: 290174
      d003c7f3
    • Daniel Jasper's avatar
      Revert "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand." · 9068938e
      Daniel Jasper authored
      This reverts commit r290171. It triggers a bunch of warnings, because
      the new enumerator isn't handled in all switches. We want a warning-free
      build.
      
      Replied on the commit with more details.
      
      llvm-svn: 290173
      9068938e
    • Kevin Funk's avatar
      Fix for clang_Cursor_getSpellingNameRange() · 4be5d674
      Kevin Funk authored
      Summary:
      Fixes spelling name ranges for user-defined string literal operators.
      
      Example:
        constexpr int operator""_toint(unsigned long long val)
        { return int(val); }
      
      Before this patch the spelling name range on consisted of 'operator'.
      
      After this patch: 'operator""_toint'.
      
      Related to http://reviews.llvm.org/D5041, which fixes the function for
      other cursor kinds.
      
      Reviewers: akyrtzi, craigt, skalinichev, klimek, milianw, bkramer
      
      Subscribers: cfe-commits
      
      Tags: #clang-c
      
      Differential Revision: https://reviews.llvm.org/D18462
      
      llvm-svn: 290172
      4be5d674
    • Egor Churaev's avatar
      [OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand. · 67c3f3ec
      Egor Churaev authored
      Summary: Enabling the compression of CLK_NULL_QUEUE to variable of type queue_t.
      
      Reviewers: Anastasia
      
      Subscribers: cfe-commits, yaxunl, bader
      
      Differential Revision: https://reviews.llvm.org/D27569
      
      llvm-svn: 290171
      67c3f3ec
    • Serge Pavlov's avatar
      Fix build with expensive checks enabled · fe8cb931
      Serge Pavlov authored
      Include of llvm/IR/Verifier.h was removed from HexagonCommonGEP.cpp in r289604
      as unused. In fact it is required when expensive checks are enabled, because
      it declared function `verifyFunction`, which is called in conditionally compiled
      part of the file.
      
      llvm-svn: 290170
      fe8cb931
    • Chandler Carruth's avatar
      Revert r290149: Add the alloc_size attribute to clang. · d7738fe6
      Chandler Carruth authored
      This commit fails MSan when running test/CodeGen/object-size.c in
      a confusing way. After some discussion with George, it isn't really
      clear what is going on here. We can make the MSan failure go away by
      testing for the invalid bit, but *why* things are invalid isn't clear.
      And yet, other code in the surrounding area is doing precisely this and
      testing for invalid.
      
      George is going to take a closer look at this to better understand the
      nature of the failure and recommit it, for now backing it out to clean
      up MSan builds.
      
      llvm-svn: 290169
      d7738fe6
    • Boris Ulasevich's avatar
      Bug 30863 - Step doesn't stop with coditional breakpoint on the next line · 881989cb
      Boris Ulasevich authored
      Fixed by additional completed plans detection, and applying them on breakpoint condition fail.
      Thread::GetStopInfo reworked. New test added.
      Review https://reviews.llvm.org/D26497
      Many thanks to Jim
      
      llvm-svn: 290168
      881989cb
    • Dimitry Andric's avatar
      Fix build breakage on FreeBSD after rL289878/rL289881 · 003fe25b
      Dimitry Andric authored
      Summary:
      After rL289878/rL289881, the build on FreeBSD is broken, because
      sanitizer_platform_limits_posix.cc attempts to include <utmp.h> and use
      `struct utmp`, neither of which are supported anymore on FreeBSD.
      
      Fix this by adding `&& !SANITIZER_FREEBSD` in a few places, and stop
      intercepting utmp functions altogether for FreeBSD.
      
      Reviewers: kubabrecka, emaste, eugenis, ed
      
      Subscribers: ed, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D27902
      
      llvm-svn: 290167
      003fe25b
    • Richard Smith's avatar
      Add test for DR692. · 543f1aca
      Richard Smith authored
      llvm-svn: 290166
      543f1aca
    • Rui Ueyama's avatar
      Remove extraneous space. · 62839f07
      Rui Ueyama authored
      llvm-svn: 290165
      62839f07
    • Rui Ueyama's avatar
      Remove `Compressed` member from InputSectionData. · c207a89c
      Rui Ueyama authored
      This value is used only once, and we can compute a value.
      So we don't need to save it.
      
      llvm-svn: 290164
      c207a89c
    • Jason Molenda's avatar
      Change the timeout in CallBoardSystemServiceOpenApplication to · 97c96cb4
      Jason Molenda authored
      30 seconds to match the old springboard timeout; the launcher
      should time out before that and we will hopefully get back
      an informative error message instead of timing out ourselves.
      
      llvm-svn: 290163
      97c96cb4
    • Chandler Carruth's avatar
      [PM] Rework a loop in the CGSCC update logic to be more conservative and · 66a95684
      Chandler Carruth authored
      clear. The current RefSCC can occur in exactly one position so we should
      just enforce that and leverage the property rather than checking for it
      anywhere.
      
      This addresses review comments made on another patch.
      
      llvm-svn: 290162
      66a95684
    • Chandler Carruth's avatar
      [PM] Provide an initial, minimal port of the inliner to the new pass manager. · 1d963114
      Chandler Carruth authored
      This doesn't implement *every* feature of the existing inliner, but
      tries to implement the most important ones for building a functional
      optimization pipeline and beginning to sort out bugs, regressions, and
      other problems.
      
      Notable, but intentional omissions:
      - No alloca merging support. Why? Because it isn't clear we want to do
        this at all. Active discussion and investigation is going on to remove
        it, so for simplicity I omitted it.
      - No support for trying to iterate on "internally" devirtualized calls.
        Why? Because it adds what I suspect is inappropriate coupling for
        little or no benefit. We will have an outer iteration system that
        tracks devirtualization including that from function passes and
        iterates already. We should improve that rather than approximate it
        here.
      - Optimization remarks. Why? Purely to make the patch smaller, no other
        reason at all.
      
      The last one I'll probably work on almost immediately. But I wanted to
      skip it in the initial patch to try to focus the change as much as
      possible as there is already a lot of code moving around and both of
      these *could* be skipped without really disrupting the core logic.
      
      A summary of the different things happening here:
      
      1) Adding the usual new PM class and rigging.
      
      2) Fixing minor underlying assumptions in the inline cost analysis or
         inline logic that don't generally hold in the new PM world.
      
      3) Adding the core pass logic which is in essence a loop over the calls
         in the nodes in the call graph. This is a bit duplicated from the old
         inliner, but only a handful of lines could realistically be shared.
         (I tried at first, and it really didn't help anything.) All told,
         this is only about 100 lines of code, and most of that is the
         mechanics of wiring up analyses from the new PM world.
      
      4) Updating the LazyCallGraph (in the new PM) based on the *newly
         inlined* calls and references. This is very minimal because we cannot
         form cycles.
      
      5) When inlining removes the last use of a function, eagerly nuking the
         body of the function so that any "one use remaining" inline cost
         heuristics are immediately refined, and queuing these functions to be
         completely deleted once inlining is complete and the call graph
         updated to reflect that they have become dead.
      
      6) After all the inlining for a particular function, updating the
         LazyCallGraph and the CGSCC pass manager to reflect the
         function-local simplifications that are done immediately and
         internally by the inline utilties. These are the exact same
         fundamental set of CG updates done by arbitrary function passes.
      
      7) Adding a bunch of test cases to specifically target CGSCC and other
         subtle aspects in the new PM world.
      
      Many thanks to the careful review from Easwaran and Sanjoy and others!
      
      Differential Revision: https://reviews.llvm.org/D24226
      
      llvm-svn: 290161
      1d963114
    • Rui Ueyama's avatar
    • Chandler Carruth's avatar
      Fix the spelling of 'bitfield' in diagnostics to be consistently 'bit-field'. · cbe1eba0
      Chandler Carruth authored
      The latter agrees with most existing diagnostics and the C and C++ standards.
      
      Differential Revision: https://reviews.llvm.org/D26530
      
      llvm-svn: 290159
      cbe1eba0
    • Adrian Prantl's avatar
      Reapply r289926: attempt to fix windows build · dc6e0169
      Adrian Prantl authored
      llvm-svn: 290158
      dc6e0169
    • Rui Ueyama's avatar
      Set Config->ColorDiagnostics early so that all error messages are colored. · 398f55f6
      Rui Ueyama authored
      Previously, some errors that were checked before we set to
      Config->ColorDiagnostics weren't colored. This patch moves the code
      to set the variable so that such error messages are colored just like
      other error messages.
      
      llvm-svn: 290157
      398f55f6