1. Jun 23, 2020
  2. Jun 22, 2020
    • Arthur Eubanks's avatar
      [NPM] Bail out when -foo and --passes=foo are both specified · 9c56e94a
      Arthur Eubanks authored
      Summary:
      Currently when --passes is used, any passes specified via -foo are
      ignored. Explicitly bail out when that happens.
      
      This requires changing some tests. Most were straightforward, but
      codegenprepare-produced-address-math.ll is tricky. One of its RUNs runs
      CodeGenPrepare. I tried porting CodeGenPrepare to the NPM, but ended up
      getting stuck when I needed a TargetMachine. NPM doesn't have support
      for MachineFunctions yet. So I just deleted that RUN line, since it was
      mass-added in https://reviews.llvm.org/D54848 and is likely not that
      useful.
      
      Reviewers: echristo, hans
      
      Subscribers: llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D82271
      9c56e94a
    • Florian Hahn's avatar
      [DSE,MSSA] Add additional tests with non-removable stores (NFC). · b458d8ce
      Florian Hahn authored
      Add a few additional tests with volatile stores, which cannot be
      removedt stas.
      b458d8ce
    • Eric Schweitz's avatar
      [flang] Finish adding AbstractConverter.h · 3a84d84a
      Eric Schweitz authored
      This adds the abstract converter interface. The abstract converter is an
      interface that supports the conversion of front-end data structures to
      MLIR. This interface will be instantiated by the bridge in a future
      commit.
      
      Differential revision: https://reviews.llvm.org/D82268
      3a84d84a
    • AlexEichenberger's avatar
      [MLIR] Remove TableGen redundant calls to native calls when creating new... · 01641197
      AlexEichenberger authored
      [MLIR] Remove TableGen redundant calls to native calls when creating new operations in DRR TableGen files
      
      Summary:
      Currently, the TableGen rewrite generates redundant native calls in MLIR DRR files. This is a problem as some native calls may involve significant computations (e.g. when performing constant propagation where every values in a large tensor is touched).
      
      The pattern was as follow:
      
      ```c++
      if (native-call(args)) tblgen_attrs.emplace_back(rewriter, attribute, native-call(args))
      ```
      
      The replacement pattern compute `native-call(args)` once and then use it both in the `if` condition and the `emplace_back` call.
      
      Differential Revision: https://reviews.llvm.org/D82101
      01641197
    • Stanislav Mekhanoshin's avatar
      Pre-commited test update. NFC. · f633b076
      Stanislav Mekhanoshin authored
      f633b076
    • Jay Foad's avatar
      [AMDGPU] Generate test checks · ce7a1dc4
      Jay Foad authored
      ce7a1dc4
    • stozer's avatar
      [DebugInfo] Update MachineInstr to help support variadic DBG_VALUE instructions · 539381da
      stozer authored
      Following on from this RFC[0] from a while back, this is the first patch towards
      implementing variadic debug values.
      
      This patch specifically adds a set of functions to MachineInstr for performing
      operations specific to debug values, and replacing uses of the more general
      functions where appropriate. The most prevalent of these is replacing
      getOperand(0) with getDebugOperand(0) for debug-value-specific code, as the
      operands corresponding to values will no longer be at index 0, but index 2 and
      upwards: getDebugOperand(x) == getOperand(x+2). Similar replacements have been
      added for the other operands, along with some helper functions to replace
      oft-repeated code and operate on a variable number of value operands.
      
      [0] http://lists.llvm.org/pipermail/llvm-dev/2020-February/139376.html<Paste>
      
      Differential Revision: https://reviews.llvm.org/D81852
      539381da
    • Guillaume Chatelet's avatar
      [ARC] Add missing return statement · 597a9070
      Guillaume Chatelet authored
      597a9070
    • Stanislav Mekhanoshin's avatar
      Pre-commit SLP test. NFC. · 736b0d0c
      Stanislav Mekhanoshin authored
      736b0d0c
    • Denys Petrov's avatar
      [analyzer] Remove forbidden characters from a filename for a graph dump on Windows · be9c5818
      Denys Petrov authored
      Summary:
      Windows forbidden file path characters are used in a field `file`, while creating a dump `dot` file using an argument -analyzer-dump-egraph. It specifically relates to angle brackets when using `<scratch space>`, `<built-in>`, `<command line>` values in filenames. It causes that script exploded-graph-rewriter.py incorrectly parses the dump.
      
      Fix:
      Remove forbidden characters from filename for Windows platform, when creating graph dump file.
      
      Differential Revision: https://reviews.llvm.org/D82103
      be9c5818
    • HazemAbdelhafez's avatar
      [mlir][spirv] Enhance AccessChainOp index type handling · 02022ff2
      HazemAbdelhafez authored
      This patch extends the AccessChainOp index type handling to be able to deal with
      all Integer type indices (i.e., all bit-widths and signedness symantics).
      
      There were two ways of achieving this:
      1- Backward compatible: The new way of handling the indices will assume that
         an index type is i32 by default if not specified in the assembly format,
         this way all the old tests would pass correctly.
      2- Enforce the format: This unifies the spv.AccessChain Op format and all the old
         tests had to be updated to reflect this change or else they fail.
      
      I picked option-2 to unify the Op format and avoid having optional index-type fields
      that can lead to somewhat confusing tests format and multiple representations for
      the same Op with undocumented assumption that an index is i32 unless stated.
      Nonetheless, reverting to option-1 should be straightforward if preferred or needed.
      
      Differential Revision: https://reviews.llvm.org/D81763
      02022ff2
    • Erich Keane's avatar
      Implement constexpr BinaryOperator for vector types · b30c1667
      Erich Keane authored
      These operations do member-wise versions of the all of the listed
      operations.  This patch implements all of the binaryoperators for these
      types. Note that the test is required to use codegen as I could not come
      up with a good way to validate the values without the array-subscript
      operator implemented (which is likely a much more involved change).
      
      Differential Reivision: https://reviews.llvm.org/D79755
      b30c1667
    • Sanjay Patel's avatar
      [VectorCombine] add helper to replace uses and rename · 98c2f4ee
      Sanjay Patel authored
      The tests are regenerated to show a path that missed renaming,
      but there should be no functional difference from this patch.
      98c2f4ee
    • Valentin Clement's avatar
      Revert commit 9e525309 because of dependencies issue · 8383ac61
      Valentin Clement authored
      This reverts commit 9e525309.
      8383ac61
    • Valentin Clement's avatar
      [openmp] Base of tablegen generated OpenMP common declaration · 9e525309
      Valentin Clement authored
      Summary:
      As discussed previously when landing patch for OpenMP in Flang, the idea is
      to share common part of the OpenMP declaration between the different Frontend.
      While doing this it was thought that moving to tablegen instead of Macros will also
      give a cleaner and more powerful way of generating these declaration.
      This first part of a future series of patches is setting up the base .td file for
      DirectiveLanguage as well as the OpenMP version of it. The base file is meant to
      be used by other directive language such as OpenACC.
      In this first patch, the Directive and Clause enums are generated with tablegen
      instead of the macros on OMPConstants.h. The next pacth will extend this
      to other enum and move the Flang frontend to use it.
      
      Reviewers: jdoerfert, DavidTruby, fghanim, ABataev, jdenny, hfinkel, jhuber6, kiranchandramohan, kiranktp
      
      Reviewed By: jdoerfert, jdenny
      
      Subscribers: cfe-commits, mgorny, yaxunl, hiraditya, guansong, jfb, sstefan1, aaron.ballman, llvm-commits
      
      Tags: #llvm, #openmp, #clang
      
      Differential Revision: https://reviews.llvm.org/D81736
      9e525309
    • Xing GUO's avatar
      [DWARFYAML][debug_info] Add support for error handling. · 03480c80
      Xing GUO authored
      This patch helps add support for error handling in `DWARFYAML::emitDebugInfo()`.
      
      Reviewed By: jhenderson
      
      Differential Revision: https://reviews.llvm.org/D82275
      03480c80
    • Xing GUO's avatar
      [DWARFYAML][debug_info] Use 'AbbrCode' to index the abbreviation. · 3a48a632
      Xing GUO authored
      Before this patch, we use `(uint32_t)AbbrCode - (uint32_t)FirstAbbrCode` to index the abbreviation. It's impossible for we to use the preceeding abbreviation of the previous one (e.g., if the previous DIE's `AbbrCode` is 2, we are unable to use the abbreviation with index 1). In this patch, we use `AbbrCode` to index the abbreviation directly.
      
      Reviewed By: jhenderson
      
      Differential Revision: https://reviews.llvm.org/D82173
      3a48a632