Skip to content
  1. Jan 22, 2021
  2. Jan 21, 2021
    • River Riddle's avatar
      [mlir] Add an interface for Cast-Like operations · 6ccf2d62
      River Riddle authored
      A cast-like operation is one that converts from a set of input types to a set of output types. The arity of the inputs may be from 0-N, whereas the arity of the outputs may be anything from 1-N. Cast-like operations are removable in cases where they produce a "no-op", i.e when the input types and output types match 1-1.
      
      Differential Revision: https://reviews.llvm.org/D94831
      6ccf2d62
  3. Jan 20, 2021
  4. Jan 19, 2021
  5. Jan 16, 2021
  6. Jan 15, 2021
  7. Jan 14, 2021
  8. Jan 13, 2021
  9. Jan 12, 2021
    • Nicolas Vasilache's avatar
      [mlir][Linalg] NFC - Refactor fusion APIs · 80f07854
      Nicolas Vasilache authored
      This revision uniformizes fusion APIs to allow passing OpOperand, OpResult and adds a finer level of control fusion.
      
      Differential Revision: https://reviews.llvm.org/D94493
      80f07854
    • Alex Zinenko's avatar
      [mlir] use built-in vector types instead of LLVM dialect types when possible · bd30a796
      Alex Zinenko authored
      Continue the convergence between LLVM dialect and built-in types by using the
      built-in vector type whenever possible, that is for fixed vectors of built-in
      integers and built-in floats. LLVM dialect vector type is still in use for
      pointers, less frequent floating point types that do not have a built-in
      equivalent, and scalable vectors. However, the top-level `LLVMVectorType` class
      has been removed in favor of free functions capable of inspecting both built-in
      and LLVM dialect vector types: `LLVM::getVectorElementType`,
      `LLVM::getNumVectorElements` and `LLVM::getFixedVectorType`. Additional work is
      necessary to design an implemented the extensions to built-in types so as to
      remove the `LLVMFixedVectorType` entirely.
      
      Note that the default output format for the built-in vectors does not have
      whitespace around the `x` separator, e.g., `vector<4xf32>` as opposed to the
      LLVM dialect vector type format that does, e.g., `!llvm.vec<4 x fp128>`. This
      required changing the FileCheck patterns in several tests.
      
      Reviewed By: mehdi_amini, silvas
      
      Differential Revision: https://reviews.llvm.org/D94405
      bd30a796
    • Rob Suderman's avatar
      [MLIR][Linalg] Refactor transforms to use linalg::getDynOperands helper · f75f391f
      Rob Suderman authored
      getDynOperands behavior is commonly used in a number of passes. Refactored to
      use a helper function and avoid code reuse.
      
      Differential Revision: https://reviews.llvm.org/D94340
      f75f391f
  10. Jan 11, 2021
  11. Jan 10, 2021
  12. Jan 09, 2021
    • Aart Bik's avatar
      [mlir][vector] modified scatter/gather syntax, pass_thru mandatory · 6728af16
      Aart Bik authored
      This change makes the scatter/gather syntax more consistent with
      the syntax of all the other memory operations in the Vector dialect
      (order of types, use of [] for index, etc.). This will make the MLIR
      code easier to read. In addition, the pass_thru parameter of the
      gather has been made mandatory (there is very little benefit in
      using the implicit "undefined" values).
      
      Reviewed By: nicolasvasilache
      
      Differential Revision: https://reviews.llvm.org/D94352
      6728af16
    • Lei Zhang's avatar
      [mlir][spirv] Replace SPIRVOpLowering with OpConversionPattern · 7c3ae48f
      Lei Zhang authored
      The dialect conversion framework was enhanced to handle type
      conversion automatically. OpConversionPattern already contains
      a pointer to the TypeConverter. There is no need to duplicate it
      in a separate subclass. This removes the only reason for a
      SPIRVOpLowering subclass. It adapts to use core infrastructure
      and simplifies the code.
      
      Also added a utility function to OpConversionPattern for getting
      TypeConverter as a certain subclass.
      
      Reviewed By: hanchung
      
      Differential Revision: https://reviews.llvm.org/D94080
      7c3ae48f
Loading