1. 01 Jan, 2020 1 commit
  2. 17 Dec, 2019 1 commit
    • Diego Caballero's avatar
      [MLIR] Improve lit test config files and tools (#4010) · 6e38579b
      Diego Caballero authored
      This PR fixes some of the inconveniences that we had with lit in nGraph
      and aligns configuration files with MLIR/LLVM.
      In particular:
        - `make install` is not needed to run lit test with the latest
          compiled version of testing tools (ngraph-opt).
        - LD_LIBRARY_PATH doesn't need to be modified.
      6e38579b
  3. 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
  4. 09 Oct, 2019 1 commit
  5. 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
  6. 18 Sep, 2019 1 commit
  7. 10 Sep, 2019 1 commit
    • 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