Skip to content
  1. Nov 29, 2018
  2. Nov 28, 2018
    • Sanjay Patel's avatar
      [x86] try select simplification for target-specific nodes · 2de20931
      Sanjay Patel authored
      This failed to select (which might be a separate bug) in
      X86ISelDAGToDAG because we try to create a select node
      that can be simplified away after rL347227.
      
      This change avoids the problem by simplifying the SHRUNKBLEND
      node sooner. In the test case, we manage to realize that the
      true/false values of the select (SHRUNKBLEND) are the same thing,
      so it simplifies away completely.
      
      llvm-svn: 347818
      2de20931
    • Jonas Devlieghere's avatar
      [driver] Some NFC cleanup · b02baf0a
      Jonas Devlieghere authored
      This patch includes some small things I noticed while refactoring the
      driver but didn't want to include in that patch.
      
      llvm-svn: 347817
      b02baf0a
    • Eric Fiselier's avatar
      Revert "Move internal usages of `alignof`/`__alignof` to use `_LIBCPP_ALIGNOF`. " · 9d25ada4
      Eric Fiselier authored
      This reverts commit 087f065cb0c7463f521a62599884493aaee2ea12.
      
      The tests were failing on 32 bit builds, and I don't have time
      to clean them up right now. I'll recommit tomorrow with fixed tests.
      
      llvm-svn: 347816
      9d25ada4
    • Matthew Voss's avatar
    • Jonas Devlieghere's avatar
      Make standalone build find tabelgen · dd7369a3
      Jonas Devlieghere authored
      The standalone build couldn't find tablegen because we didn't include
      it. This patch rectifies that.
      
      llvm-svn: 347814
      dd7369a3
    • Kuba Mracek's avatar
      [lldb] Add GetCurrentException APIs to SBThread, add frame recognizer for... · e60bc53b
      Kuba Mracek authored
      [lldb] Add GetCurrentException APIs to SBThread, add frame recognizer for objc_exception_throw for Obj-C runtimes
      
      This adds new APIs and a command to deal with exceptions (mostly Obj-C exceptions): SBThread and Thread get GetCurrentException API, which returns an SBValue/ValueObjectSP with the current exception for a thread. "Current" means an exception that is currently being thrown, caught or otherwise processed. In this patch, we only know about the exception when in objc_exception_throw, but subsequent patches will expand this (and add GetCurrentExceptionBacktrace, which will return an SBThread/ThreadSP containing a historical thread backtrace retrieved from the exception object. Currently unimplemented, subsequent patches will implement this).
      
      Extracting the exception from objc_exception_throw is implemented by adding a frame recognizer.
      
      This also add a new sub-command "thread exception", which prints the current exception.
      
      Differential Revision: https://reviews.llvm.org/D43886
      
      llvm-svn: 347813
      e60bc53b
    • Erich Keane's avatar
      Allow cpu-dispatch forward declarations. · a3e7a167
      Erich Keane authored
      As a followup to r347805, allow forward declarations of cpu-dispatch and
      cpu-specific for the same reasons.
      
      Change-Id: Ic1bde9be369b1f8f1d47d58e6fbdc2f9dfcdd785
      llvm-svn: 347812
      a3e7a167
    • Adrian Prantl's avatar
      Ensure sanitizer check function calls have a !dbg location · c9f2473b
      Adrian Prantl authored
      Function calls without a !dbg location inside a function that has a
      DISubprogram make it impossible to construct inline information and
      are rejected by the verifier. This patch ensures that sanitizer check
      function calls have a !dbg location, by carrying forward the location
      of the preceding instruction or by inserting an artificial location if
      necessary.
      
      This fixes a crash when compiling the attached testcase with -Os.
      
      rdar://problem/45311226
      
      Differential Revision: https://reviews.llvm.org/D53459
      
      Note: This reapllies r344915, modified to reuse the IRBuilder's
      DebugLoc if one exists instead of picking the one from CGDebugInfo
      since the latter may get reset when emitting thunks such as block
      helpers in the middle of emitting another function.
      
      llvm-svn: 347810
      c9f2473b
    • Juergen Ributzka's avatar
      Revert "[TextAPI] TBD Reader/Writer" · dec06963
      Juergen Ributzka authored
      Reverting to unbreak bots.
      
      llvm-svn: 347809
      dec06963
    • Juergen Ributzka's avatar
      [TextAPI] TBD Reader/Writer · eb6759bb
      Juergen Ributzka authored
      Add basic infrastructure for reading and writting TBD files (version 1 - 3).
      
      The TextAPI library is not used by anything yet (besides the unit tests). Tool
      support will be added in a separate commit.
      
      The TBD format is currently documented in the implementation file (TextStub.cpp).
      
      https://reviews.llvm.org/D53945
      
      llvm-svn: 347808
      eb6759bb
    • Paul Robinson's avatar
      416b12f7
    • Paul Robinson's avatar
      [DebugInfo] IR/Bitcode changes for DISubprogram flags. · adcdc1bd
      Paul Robinson authored
      Packing the flags into one bitcode word will save effort in
      adding new flags in the future.
      
      Differential Revision: https://reviews.llvm.org/D54755
      
      llvm-svn: 347806
      adcdc1bd
    • Erich Keane's avatar
      Correct 'target' default behavior on redecl, allow forward declaration. · 7304f0a6
      Erich Keane authored
      Declarations without the attribute were disallowed because it would be
      ambiguous which 'target' it was supposed to be on.  For example:
      
      void ___attribute__((target("v1"))) foo();
      void foo(); // Redecl of above, or fwd decl of below?
      void ___attribute__((target("v2"))) foo();
      
      However, a first declaration doesn't have that problem, and erroring
      prevents it from working in cases where the forward declaration is
      useful.
      
      Additionally, a forward declaration of target==default wouldn't properly
      cause multiversioning, so this patch fixes that.
      
      The patch was not split since the 'default' fix would require
      implementing the same check for that case, followed by undoing the same
      change for the fwd-decl implementation.
      
      Change-Id: I66f2c5bc2477bcd3f7544b9c16c83ece257077b0
      llvm-svn: 347805
      7304f0a6
    • Vedant Kumar's avatar
      [Coverage] Specify the Itanium ABI triple for a C++ test · 83db1d21
      Vedant Kumar authored
      llvm-svn: 347804
      83db1d21
    • Vedant Kumar's avatar
      [Coverage] Do not visit artificial stmts in defaulted methods (PR39822) · 7225a261
      Vedant Kumar authored
      There is no reason to emit coverage mappings for artificial statements
      contained within defaulted methods, as these statements are not visible
      to users.
      
      Only emit a mapping for the body of the defaulted method (clang treats
      the text of the "default" keyword as the body when reporting locations).
      This allows users to see how often the default method is called, but
      trims down the coverage mapping by skipping visitation of the children
      of the method.
      
      The immediate motivation for this change is that the lexer's
      getPreciseTokenLocEnd API cannot return the correct location when given
      an artificial statement (with a somewhat made-up location) as an input.
      
      Test by Orivej Desh!
      
      Fixes llvm.org/PR39822.
      
      llvm-svn: 347803
      7225a261
Loading