Skip to content
  1. Sep 13, 2018
  2. Sep 12, 2018
    • Vedant Kumar's avatar
      [llvm-cov] Delete custom JSON serialization code (NFC) · 2963c490
      Vedant Kumar authored
      Teach llvm-cov to use the new llvm JSON library, and remove some
      redundant/brittle JSON serialization tests.
      
      llvm-svn: 342088
      2963c490
    • Lang Hames's avatar
      [ORC] Merge ExecutionSessionBase with ExecutionSession by moving a couple of · 8be0d2e3
      Lang Hames authored
      template methods in JITDylib out-of-line.
      
      This also splits JITDylib::define into a pair of template methods, one taking an
      lvalue reference and the other an rvalue reference. This simplifies the
      templates at the cost of a small amount of code duplication.
      
      llvm-svn: 342087
      8be0d2e3
    • Lang Hames's avatar
      [ORC] Add a special 'main' JITDylib that is created on ExecutionSession · 13014d3c
      Lang Hames authored
      construction, a new convenience lookup method, and add-to layer methods.
      
      ExecutionSession now creates a special 'main' JITDylib upon construction. All
      subsequently created JITDylibs are added to the main JITDylib's search order by
      default (controlled by the AddToMainDylibSearchOrder parameter to
      ExecutionSession::createDylib). The main JITDylib's search order will be used in
      the future to properly handle cross-JITDylib weak symbols, with the first
      definition in this search order selected.
      
      This commit also adds a new ExecutionSession::lookup convenience method that
      performs a blocking lookup using the main JITDylib's search order, as this will
      be a very common operation for clients.
      
      Finally, new convenience overloads of IRLayer and ObjectLayer's add methods are
      introduced that add the given program representations to the main dylib, which
      is likely to be the common case.
      
      llvm-svn: 342086
      13014d3c
    • Heejin Ahn's avatar
      [WebAssembly] Make tied inline asm operands work again · 300f42fb
      Heejin Ahn authored
      Summary:
      rL341389 broke code with tied register operands in inline assembly. For
      example, `asm("" : "=r"(var) : "0"(var));`
      The code above specifies the input operand to be in the same register
      with the output operand, tying the two register. This patch makes this
      kind of code work again.
      
      Reviewers: dschuff
      
      Subscribers: sbc100, jgravelle-google, eraman, sunfish, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D51991
      
      llvm-svn: 342084
      300f42fb
    • Sanjay Patel's avatar
      revert r341288 - [Reassociate] swap binop operands to increase factoring potential · d341988c
      Sanjay Patel authored
      This causes or exposes indeterminism that is visible in the output of -reassociate.
      
      llvm-svn: 342083
      d341988c
    • Sanjay Patel's avatar
      [InstCombine] add tests for unsigned add overflow; NFC · 31017cd1
      Sanjay Patel authored
      llvm-svn: 342082
      31017cd1
    • Michael Berg's avatar
      Guard FMF context by excluding some FP operators from FPMathOperator · 22a53cbc
      Michael Berg authored
      Summary:
      Some FPMathOperators succeed and the retrieve FMF context when they never have it, we should omit these cases to keep from removing FMF context.
      
      For instance when we visit some FPMathOperator mapped Instructions which never have FMF flags and a Node was associated which does have FMF flags, that Node today will have all its flags cleared via the intersect operation.  With this change, we exclude associating Nodes that never have FPMathOperator status under FMF.
      
      Reviewers: spatel, wristow, arsenm, hfinkel, aemerson
      
      Reviewed By: spatel
      
      Subscribers: llvm-commits, wdng
      
      Differential Revision: https://reviews.llvm.org/D51145
      
      llvm-svn: 342081
      22a53cbc
    • Zachary Turner's avatar
      [PDB] Emit old fpo data to the PDB file. · a1f85f8b
      Zachary Turner authored
      r342003 added support for emitting FPO data from the
      DEBUG_S_FRAMEDATA subsection of the .debug$S section to the PDB
      file.  However, that is not the end of the story.  FPO can end
      up in two different destinations in a PDB, each corresponding to
      a different FPO data source.
      
      The case handled by r342003 involves copying data from the
      DEBUG_S_FRAMEDATA subsection of the .debug$S section to the
      "New FPO" stream in the PDB, which is then referred to by the
      DBI stream.  The case handled by this patch involves copying
      records from the .debug$F section of an object file to the "FPO"
      stream (or perhaps more aptly, the "Old FPO" stream) in the PDB
      file, which is also referred to by the DBI stream.
      
      The formats are largely similar, and the difference is mostly
      only visible in masm generated object files, such as some of the
      low-level CRT object files like memcpy.  MASM doesn't appear to
      support writing the DEBUG_S_FRAMEDATA subsection, and instead
      just writes these records to the .debug$F section.
      
      Although clang-cl does not emit a .debug$F section ever, lld still
      needs to support it so we have good debugging for CRT functions.
      
      Differential Revision: https://reviews.llvm.org/D51958
      
      llvm-svn: 342080
      a1f85f8b
Loading