1. Sep 22, 2016
    • Chris Bieneman's avatar
      [CMake] Pass CLANG_VERSION_* variables into later stages · 2c4d54f3
      Chris Bieneman authored
      When supporting overriding clang versions we also need to pass those through to the next stage so they remain overridden.
      
      llvm-svn: 282109
      2c4d54f3
    • Albert Gutowski's avatar
      Add -Wignored-pragma-intrinsic flag · 8bfb2ef9
      Albert Gutowski authored
      Summary: People might want to receive warnings about pragmas but not about intrinsics that are implemented in intrin.h.
      
      Reviewers: thakis, hans
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D24775
      
      llvm-svn: 282108
      8bfb2ef9
    • Filipe Cabecinhas's avatar
      [asan] Reify ErrorGeneric · a8b5f5e9
      Filipe Cabecinhas authored
      Summary:
      Finish work on PR30351 (last one, after D24551, D24552, and D24554 land)
      
      Also replace the old ReportData structure/variable with the current_error_ static
      member of the ScopedInErrorReport class.
      
      This has the following side-effects:
        - Move ASAN_ON_ERROR(); call to the start of the destructor, instead
          of in StartReporting().
            - We only generate the error structure after the
              ScopedInErrorReport constructor finishes, so we can't call
              ASAN_ON_ERROR() during the constructor. I think this makes more
              sense, since we end up never running two of the ASAN_ON_ERROR()
              callback. This also works the same way as error reporting, since
              we end up having a lock around it. Otherwise we could end up
              with the ASAN_ON_ERROR() call for error 1, then the
              ASAN_ON_ERROR() call for error 2, and then lock the mutex for
              reporting error 1.
        - The __asan_get_report_* functions will be able to, in the future,
          provide information about other errors that aren't a "generic
          error". But we might want to rethink that API, since it's too
          restricted. Ideally we teach lldb about the current_error_ member of
          ScopedInErrorReport.
      
      Reviewers: vitalybuka, kcc, eugenis
      
      Subscribers: kubabrecka, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D24555
      
      llvm-svn: 282107
      a8b5f5e9
    • Jan Vesely's avatar
      Provide vstore_half helper to workaround clc restrictions · 0a5aac3f
      Jan Vesely authored
      clang won't accept half precision loads and stores without cl_khr_fp16 since r281904
      
      llvm-svn: 282106
      0a5aac3f
    • Todd Fiala's avatar
      add stop column highlighting support · 9666ba75
      Todd Fiala authored
      This change introduces optional marking of the column within a source
      line where a thread is stopped.  This marking will show up when the
      source code for a thread stop is displayed, when the debug info
      knows the column information, and if the optional column marking is
      enabled.
      
      There are two separate methods for handling the marking of the stop
      column:
      
      * via ANSI terminal codes, which are added inline to the source line
        display.  The default ANSI mark-up is to underline the column.
      
      * via a pure text-based caret that is added in the appropriate column
        in a newly-inserted blank line underneath the source line in
        question.
      
      There are some new options that control how this all works.
      
      * settings set stop-show-column
      
        This takes one of 4 values:
      
        * ansi-or-caret: use the ANSI terminal code mechanism if LLDB
          is running with color enabled; if not, use the caret-based,
          pure text method (see the "caret" mode below).
      
        * ansi: only use the ANSI terminal code mechanism to highlight
          the stop line.  If LLDB is running with color disabled, no
          stop column marking will occur.
      
        * caret: only use the pure text caret method, which introduces
          a newly-inserted line underneath the current line, where
          the only character in the new line is a caret that highlights
          the stop column in question.
      
        * none: no stop column marking will be attempted.
      
      * settings set stop-show-column-ansi-prefix
      
        This is a text format that indicates the ANSI formatting
        code to insert into the stream immediately preceding the
        column where the stop column character will be marked up.
        It defaults to ${ansi.underline}; however, it can contain
        any valid LLDB format codes, e.g.
      
            ${ansi.fg.red}${ansi.bold}${ansi.underline}
      
      * settings set stop-show-column-ansi-suffix
      
        This is the text format that specifies the ANSI terminal
        codes to end the markup that was started with the prefix
        described above.  It defaults to: ${ansi.normal}.  This
        should be sufficient for the common cases.
      
      Significant leg-work was done by Adrian Prantl.  (Thanks, Adrian!)
      
      differential review: https://reviews.llvm.org/D20835
      
      reviewers: clayborg, jingham
      llvm-svn: 282105
      9666ba75
    • Kevin Enderby's avatar
      Next set of additional error checks for invalid Mach-O files for bad LC_UUID · e71e13c7
      Kevin Enderby authored
      load commands.  Added a missing check and made the check for more than
      one like other other “more than one” checks.  And of course added test cases.
      
      llvm-svn: 282104
      e71e13c7
    • Jim Ingham's avatar
      Probably should add the breakpoint names test directory as well... · 1ac2f2c4
      Jim Ingham authored
      llvm-svn: 282103
      1ac2f2c4
    • Filipe Cabecinhas's avatar
      [asan] Store full AddressDescription objects in ErrorInvalidPointerPair · 490f96cb
      Filipe Cabecinhas authored
      Reviewers: kcc, vitalybuka, eugenis
      
      Subscribers: kubabrecka, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D24777
      
      llvm-svn: 282102
      490f96cb
    • Chad Rosier's avatar
      [LoopInterchange] Track all dependencies, not just anti dependencies. · 00eb8db3
      Chad Rosier authored
      Currently, we give up on loop interchange if we encounter a flow dependency
      anywhere in the loop list. Worse yet, we don't even track output dependencies.
      
      This patch updates the dependency matrix computation to track flow and output
      dependencies in the same way we track anti dependencies.
      
      This improves an internal workload by 2.2x.
      
      Note the loop interchange pass is off by default and it can be enabled with
      '-mllvm -enable-loopinterchange'
      
      Differential Revision: https://reviews.llvm.org/D24564
      
      llvm-svn: 282101
      00eb8db3
    • Teresa Johnson's avatar
      [ThinLTO] Emit files for distributed builds for all modules · 3f212b89
      Teresa Johnson authored
      With the new LTO API in r278338, we stopped emitting the individual
      index files and imports files for some modules in the distributed backend
      case (thinlto-index-only plugin option).
      
      Specifically, this is when the linker decides not to include a module in the
      link, because it was in an archive library and did not have a strong
      reference to it. Not creating the expected output files makes the
      distributed build system implementation more difficult, in terms of
      checking for the expected outputs of the thin link, and scheduling the
      backend jobs. To address this, the gold-plugin will write dummy empty
      .thinlto.bc and .imports files for modules not included in the link
      (which LTO never sees).
      
      Augmented a gold v1.12+ test, since that version of gold has the handling
      for notifying on modules not being included in the link.
      
      llvm-svn: 282100
      3f212b89
    • Rafael Espindola's avatar
      Implement ONLY_IF_RO/ONLY_IF_RW like bfd. · e746e52c
      Rafael Espindola authored
      The actual logic is to keep the output section if the output section
      would have been ro/rw.
      
      This is both simpler and more practical, as the intention is linker
      scripts is to always keep of of a pair of ONLY_IF_RO/ONLY_IF_RW.
      
      llvm-svn: 282099
      e746e52c
    • Davide Italiano's avatar
      [MIRParser] Delete dead code. NFCI. · 0f8b5d65
      Davide Italiano authored
      llvm-svn: 282098
      0f8b5d65
    • Nico Weber's avatar
      revert 281908 because 281909 got reverted · a4894388
      Nico Weber authored
      llvm-svn: 282097
      a4894388
    • Nico Weber's avatar
      b097c8fa
    • Nico Weber's avatar
      Remove obsolete XFAIL. · 08959d3b
      Nico Weber authored
      The sanitizer-windows bot is currently red because this test unexpectedly passes.
      
      llvm-svn: 282095
      08959d3b
    • Etienne Bergeron's avatar
      Fix typo in comment [NFC] · 5e697c67
      Etienne Bergeron authored
      llvm-svn: 282092
      5e697c67
    • Etienne Bergeron's avatar
      fix typo in comment [NFC] · a15c90e9
      Etienne Bergeron authored
      llvm-svn: 282091
      a15c90e9
    • Zachary Turner's avatar
      Fix failing regex tests. · 2552acd9
      Zachary Turner authored
      r282079 converted the regular expression interface to accept
      and return StringRefs instead of char pointers.  In one case
      a null pointer check was converted to an empty string check,
      but this was an incorrect conversion because an empty string
      is a valid regular expression.  Removing this check should
      fix the test failures.
      
      llvm-svn: 282090
      2552acd9
    • Teresa Johnson's avatar
      [docs] Add ThinLTO user documentation · 8de63464
      Teresa Johnson authored
      Summary: Add some user facing documentation on ThinLTO and how to use it.
      
      Reviewers: mehdi_amini
      
      Subscribers: mehdi_amini, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D24806
      
      llvm-svn: 282089
      8de63464
    • Arnold Schwaighofer's avatar
      Disable tail calls if there is an swifterror argument · de2490d0
      Arnold Schwaighofer authored
      ISel does not handle them correctly yet i.e we crash trying to emit tail call
      code.
      
      radar://28407842
      
      llvm-svn: 282088
      de2490d0
    • Matthew Simpson's avatar
      [LV] Don't emit unused scalars for uniform instructions · 15869f86
      Matthew Simpson authored
      If we identify an instruction as uniform after vectorization, we know that we
      should only use the value corresponding to the first vector lane of each unroll
      iteration. However, when scalarizing such instructions, we still produce values
      for the other vector lanes. This patch prevents us from generating the unused
      scalars.
      
      Differential Revision: https://reviews.llvm.org/D24275
      
      llvm-svn: 282087
      15869f86
    • Artem Tamazov's avatar
      [AMDGPU][mc] Add support for ds_add_[rtn_]f32. · 2e217b87
      Artem Tamazov authored
      Lit tests added.
      Resolves https://github.com/RadeonOpenCompute/hcc/issues/122.
      
      Differential Revision: https://reviews.llvm.org/D24765
      
      llvm-svn: 282086
      2e217b87
    • Etienne Bergeron's avatar
      [compiler-rt] Fix Asan build on Android · d34ee769
      Etienne Bergeron authored
      Summary:
      The dynamic shadow code is not detected correctly on Android.
      The android shadow seems to start at address zero.
      
      The bug is introduced here:
        https://reviews.llvm.org/D23363
      
      Started here: https://build.chromium.org/p/chromium.fyi/builders/ClangToTAndroidASan/builds/4029
      Likely due to an asan runtime change, filed https://llvm.org/bugs/show_bug.cgi?id=30462
      
      
      From asan_mapping.h:
      ```
      #if SANITIZER_WORDSIZE == 32
      #  if SANITIZER_ANDROID
      #    define SHADOW_OFFSET (0)   <<---- HERE
      #  elif defined(__mips__)
      ```
      Shadow address on android is 0.
      
      From asan_rtl.c:
      ```
        if (shadow_start == 0) {
          [...]
          shadow_start = FindAvailableMemoryRange(space_size, alignment, granularity);
        }
      ```
      We assumed that 0 is dynamic address.
      
      On windows, the address was determined with:
      ```
      #  elif SANITIZER_WINDOWS64
      #   define SHADOW_OFFSET __asan_shadow_memory_dynamic_address
      #  else
      ```
      and __asan_shadow_memory_dynamic_address is initially zero.
      
      Reviewers: rnk, eugenis, vitalybuka
      
      Subscribers: kcc, tberghammer, danalbert, kubabrecka, dberris, llvm-commits, chrisha
      
      Differential Revision: https://reviews.llvm.org/D24768
      
      llvm-svn: 282085
      d34ee769
    • Dehao Chen's avatar
      Change the basic block weight calculation algorithm to use max instead of voting. · 160fbc3f
      Dehao Chen authored
      Summary: Now that we have more precise debug info, we should change back to use maximum to get basic block weight.
      
      Reviewers: dnovillo
      
      Subscribers: andreadb, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D24788
      
      llvm-svn: 282084
      160fbc3f
    • Matthew Simpson's avatar
      [LV] Rename "Width" to "Lane" (NFC) · a95e8bb7
      Matthew Simpson authored
      llvm-svn: 282083
      a95e8bb7
    • Cameron McInally's avatar
      [AVX512] Fix return types on __builtin_ia32_gather3XivXdi builtins · 923ad2cd
      Cameron McInally authored
      The return types on the AVX512 __builtin_ia32_gather3XivXdi builtins are incorrect. The return type should match the type of the pass through vector.
      
      Differential Revision: https://reviews.llvm.org/D24785
      
      -This line, and those below, will be ignored--
      
      M    include/clang/Basic/BuiltinsX86.def
      
      llvm-svn: 282082
      923ad2cd
    • Cameron McInally's avatar
      [AVX512] Fix return types on int_x86_avx512_gatherXXX_di intrinsics · 2aa85e12
      Cameron McInally authored
      The return type should match the pass through vector type.
      
      Differential Revision: https://reviews.llvm.org/D24744
      
      llvm-svn: 282081
      2aa85e12
    • Zachary Turner's avatar
      Fix an inefficient StringRef conversion. · 9a4e3011
      Zachary Turner authored
      Since the original object was already an llvm::SmallString<>
      there's no point calling c_str() first.
      
      llvm-svn: 282080
      9a4e3011
    • Zachary Turner's avatar
      Make lldb::Regex use StringRef. · 95eae423
      Zachary Turner authored
      This updates getters and setters to use StringRef instead of
      const char *.  I tested the build on Linux, Windows, and OSX
      and saw no build or test failures.  I cannot test any BSD
      or Android variants, however I expect the required changes
      to be minimal or non-existant.
      
      llvm-svn: 282079
      95eae423
  2. Sep 21, 2016