1. 30 Oct, 2019 1 commit
    • Pruthvi's avatar
      [MLIR] Graph pass to lower standardDialect to llvm module (#3810) · 3f3153f5
      Pruthvi authored
      * Re-organize files. Create MLIR backend classes
      
      * WIP
      
      * Refactored. Code compiles
      
      * Moved context to Runtime class to outlive compilation and execution
      
      * style-apply
      
      * Base Runtime class. Few other modifications
      
      * Minor fixes
      
      * Fixed Runtime::run() to take type-erased pointer
      
      * renamed core compiler
      
      * rename backend compiler
      
      * rename runtime compiler
      
      * PR feedback
      
      * Fix build fails
      
      * - refactor LowerNGDialect
      - addgraph pass to lower standardDialect to llvm module
      
      * Addressed PR Comments
      
      * i) Style fix ii) restore deleted file
      3f3153f5
  2. 29 Oct, 2019 1 commit
    • Nagy Mostafa's avatar
      [MLIR] MLIR Compiler refactoring (#3786) · f143bb13
      Nagy Mostafa authored
      * Re-organize files. Create MLIR backend classes
      
      * WIP
      
      * Refactored. Code compiles
      
      * Moved context to Runtime class to outlive compilation and execution
      
      * style-apply
      
      * Base Runtime class. Few other modifications
      
      * Minor fixes
      
      * Fixed Runtime::run() to take type-erased pointer
      
      * renamed core compiler
      
      * rename backend compiler
      
      * rename runtime compiler
      
      * PR feedback
      
      * Fix build fails
      f143bb13
  3. 23 Oct, 2019 1 commit
  4. 10 Oct, 2019 3 commits
  5. 09 Oct, 2019 2 commits
  6. 03 Oct, 2019 1 commit
  7. 02 Oct, 2019 1 commit
    • Diego Caballero's avatar
      [MLIR] Pass optimization level to MLIR ExecutionEngine (#3703) · 1ddda541
      Diego Caballero authored
      An optional optimization level was added to ExecutionEngine, initialized
      to None by default. This caused fast-isel to be used in LLVM CG,
      overriding all the flags related to not using fast-isel.
      
      In this PR we pass the right optimization level to ExecutionEngine.
      1ddda541
  8. 30 Sep, 2019 1 commit
    • Diego Caballero's avatar
      [MLIR] Improve gather op lowering (#3667) · 3aa4db1d
      Diego Caballero authored
      * [MLIR] Add support for parsing nGraph tensor type
      
      Initial commit that enables nGraph parsing. It's needed for testing.
      
      * [MLIR] Enable nGraph dialect in ngraph-opt
      
      This PR registers nGraph dialect in ngraph-opt and prepares
      nGraph lowering pass for LIT testing, fixing all the related issues.
      Among other things, lowering pass has to be turned into a function pass,
      dead argument in constructor was removed and `convert-ngraph-to-affine`
      flag was added.
      
      * Fix issue with function name and multiple functions
      
      * Extend module_function.mlir lit test
      
      * [MLIR] Add support for parsing nGraph element types
      
      It introduces initial support for parsing nGraph signed/unsigned
      integer and floating point data types.
      
      * [MLIR] Improve gather op lowering
      
      This PR interchanges indices and param loops in gather lowering so
      that a better memory access patter is generated. Fusion of gather
      with other ops is also observed with this change.
      3aa4db1d
  9. 28 Sep, 2019 1 commit
    • Diego Caballero's avatar
      [MLIR] Enable nGraph dialect in ngraph-opt (#3657) · 9db8f874
      Diego Caballero authored
      * [MLIR] Add support for parsing nGraph tensor type
      
      Initial commit that enables nGraph parsing. It's needed for testing.
      
      * [MLIR] Enable nGraph dialect in ngraph-opt
      
      This PR registers nGraph dialect in ngraph-opt and prepares
      nGraph lowering pass for LIT testing, fixing all the related issues.
      Among other things, lowering pass has to be turned into a function pass,
      dead argument in constructor was removed and `convert-ngraph-to-affine`
      flag was added.
      
      * Fix issue with function name and multiple functions
      
      * Extend module_function.mlir lit test
      
      * Improve module_function.mlir test
      
      Remove ngraph to affine dialect conversion since we just need to verify
      that we can parse and print modules and functions.
      Add verification for parsing the printed code.
      
      * [MLIR] Add support for parsing nGraph element types (#3665)
      
      * [MLIR] Add support for parsing nGraph element types
      
      It introduces initial support for parsing nGraph signed/unsigned
      integer and floating point data types.
      
      * Improve LIT tests
      
      Test parsing and printing of types separately from lowering to affine
      since these tests will evolve differently, particularly for tensor
      types.
      
      * Missed file
      
      I left this file behind in the previous commit
      9db8f874
  10. 25 Sep, 2019 1 commit
  11. 24 Sep, 2019 2 commits
    • Diego Caballero's avatar
      [MLIR] Add support for parsing nGraph tensor type (#3654) · e2bddf19
      Diego Caballero authored
      * [MLIR] Add support for parsing nGraph tensor type
      
      Initial commit that enables nGraph parsing. It's needed for testing.
      
      * Clang format
      
      * Fix return in parser
      e2bddf19
    • Diego Caballero's avatar
      [MLIR] Add `ngraph` prefix to MLIR flags (#3625) · 1c9a1996
      Diego Caballero authored
      * [MLIR] Add `ngraph` prefix to MLIR flags
      
      Some flags collision with some MLIR flags.
      
      * [MLIR] Add support for nGraph tensor type in parser
      
      Initial commit that enables nGraph parsing. It's needed for testing.
      
      * Rename ngraph print flag
      
      * Rename ngraph dump mlir flags
      
      * Clang format
      
      * Revert "[MLIR] Add support for nGraph tensor type in parser"
      
      This reverts commit ae371d6a5c8ea590322d5d3b9ba110159d4bf5fa.
      1c9a1996
  12. 19 Sep, 2019 1 commit
  13. 18 Sep, 2019 2 commits
  14. 17 Sep, 2019 2 commits
  15. 16 Sep, 2019 1 commit
  16. 10 Sep, 2019 3 commits
    • Nagy Mostafa's avatar
      [MLIR] Remove Fake Instructions (#3568) · 1fb6fa96
      Nagy Mostafa authored
      * WIP
      
      * Fixes
      
      * Increase bitwidth for arg idx attrib
      
      * Minor fixes
      
      * style-apply
      1fb6fa96
    • Diego Caballero's avatar
      [MLIR] Introduce ngraph-opt tool (#3560) · f159e196
      Diego Caballero authored
      * [MLIR] Enable LIT testing in CMAKE
      
      This PR enables LIT testing in nGraph for MLIR Compiler, introduced in
      PR3523. We can now do `make check-mlir-lit` to run LIT tests.
      
      * Address feedback
      
      * Revisit PR after cmake clean-up
      
      * [MLIR] Introduce ngraph-opt tool
      
      To be used, among other things, for LIT testing.
      `elementwise_binary_ops.mlir` shows a simple LIT test
      using ngraph-opt.
      
      Dummy affine_lowering/lit_test.mlir test that served as initial testing
      of LIT tool configuration is now removed.
      
      * Address feedback
      f159e196
    • Nagy Mostafa's avatar
      [MLIR] Bump commits (#3584) · 3287ca6f
      Nagy Mostafa authored
      * Bump MLIR version and minor fixes in nGraph
      
      * advance commit ids
      
      * fix commit id
      3287ca6f
  17. 06 Sep, 2019 1 commit
  18. 05 Sep, 2019 1 commit
  19. 04 Sep, 2019 2 commits
    • Amy Zhuang's avatar
    • Diego Caballero's avatar
      [MLIR] Clean up MLIR related CMake files (#3541) · f6425cbd
      Diego Caballero authored
      * [MLIR] Move MLIR compiler files to contrib/mlir/compiler
      
      We'll add contrib/mlir/tools directory in subsequent PRs for ngrpah-opt
      and other tools.
      
      * [MLIR] Clean up MLIR related CMake files
      
      This PR prepares the introduction of src/contrib/mlir/tools and LIT testing by
      refactoring and cleaning up the common part with src/contrib/mlir/compiler:
      
      - Common code for src/contrib/mlir/tools and src/contrib/mlir/compiler is
      moved to src/contrib/mlir/CMakeList.txt.
      - More generic code, common for src/contrib/mlir/* and LIT configuration
      files, is moved to cmake/external_mlir.cmake with pre-existing similar code.
      - Redundant environment var LLVM_DIR is removed in favor of LLVM_CMAKE_PATH.
      - Redundant cmake messages are removed.
      
      * Replacing LLVM_CMAKE_PATH with LLVM_DIR
      f6425cbd
  20. 30 Aug, 2019 2 commits
  21. 29 Aug, 2019 1 commit
    • Nagy Mostafa's avatar
      [MLIR] Fixes for cpu_fusion.validate_fuse_gru_inputs (#3511) · ef58667f
      Nagy Mostafa authored
      * WIP
      
      * Fix incorrect CK output adjustment
      
      * Bug fix and enroce sanity check
      
      * Change cycle search depth, and fix sanity check
      
      * cpu_fusion.validate_fuse_gru_inputs passes.
      
      * Fix as_single_output to be able to always create a GOE
      
      * minor fix. style-apply
      
      * Clean up debug msgs
      
      * Switch to backward cycle check
      
      * Enable failing test
      
      * PR fixes
      
      * Address feedback: Add fwd cycle checks. Make cycle checking depth configurable
      ef58667f
  22. 28 Aug, 2019 1 commit
  23. 27 Aug, 2019 1 commit
    • Diego Caballero's avatar
      [MLIR] Introduce flag -print-ngraph-ir-after-all. (#3457) · b71f2462
      Diego Caballero authored
      This PR is a stepping stone towards unifying nGraph MLIRCompiler printing
      flags with those used in MLIR. It enables flag -print-ir-after-all
      implemented in MLIR pass manager and adds flag -print-ngraph-ir-after-all
      to MLIRCompiler so that we can use it to dump IR for those transformations
      that we do directly in MLIRCompiler without using a proper pass. Eventually,
      everything should be working as a pass and the nGraph variant of the
      flag shouldn't be needed. NGRAPH_MLIR_DUMP_ALL macro is no longer
      needed.
      b71f2462
  24. 23 Aug, 2019 1 commit
    • Diego Caballero's avatar
      [mlir] Bump mlir repo 8/20/2019 (#3493) · 4fddf5ad
      Diego Caballero authored
      * [MLIR] Bump MLIR repo 8/20/2019
      
      MLIR_
      commit 0cdb20a6add19bc96c20dad28589a1e54e4d8469
      Author: Lei Zhang <antiagainst@google.com>
      Date:   Tue Aug 20 13:33:41 2019 -0700
      
          Add spv.specConstant and spv._reference_of
      
      LLVM:
      commit 3b9a27b6908040881dad394022f8c472c15c0784
      Author: Simon Pilgrim <llvm-dev@redking.me.uk>
      Date:   Tue Aug 20 17:54:37 2019 +0000
      
          Fix typo in comment. NFCI.
      
      * Address Bob's feedback
      4fddf5ad
  25. 20 Aug, 2019 1 commit
  26. 19 Aug, 2019 1 commit
  27. 17 Aug, 2019 2 commits
  28. 16 Aug, 2019 2 commits