llvm-project/mlir/test
Pierre Oechsel efcf0985ee [mlir] [EDSC] Add interface for yield-for loops.
Summary:
ModelBuilder was missing an api to easily generate yield-for-loops.
This diffs implements an interface allowing to write:
```
%2:2 = loop.for %i = %start to %end step %step iter_args(%arg0 = %init0, %arg1 = %init1) -> (f32, f32) {
  %sum = addf %arg0, %arg1 : f32
  loop.yield %arg1, %sum : f32, f32
}
%3 = addf %2#0, %2#1 : f32
```

as

```
auto results =
    LoopNestBuilder(&i, start, end, step, {&arg0, &arg1},  {init0, init1})([&] {
      auto sum = arg0 + arg1;
      loop_yield(ArrayRef<ValueHandle>{arg1, sum});
    });

// Add the two values accumulated by the yield-for-loop:
ValueHandle(results[0]) + ValueHandle(results[1]);
```

Differential Revision: https://reviews.llvm.org/D78093
2020-04-15 18:39:30 +02:00
..
Analysis [mlir] Extended Dominance analysis with a function to find the nearest common dominator of two given blocks. 2020-03-27 14:55:40 +01:00
Conversion [MLIR] Constant fold multiplies in deriveStaticUpperBound. 2020-04-14 13:04:16 +02:00
Dialect [mlir] LLVM dialect: support globals without linkage keyword, assuming 'external' 2020-04-15 10:58:32 +02:00
EDSC [mlir] [EDSC] Add interface for yield-for loops. 2020-04-15 18:39:30 +02:00
Examples [mlir][Tutorial] Make parsing an empty file print a better error. 2020-03-03 13:21:05 -08:00
IR Fix the MLIR integer attribute parser to be correct in the face of large integer attributes, it was previously artificially limited to 64 bits. 2020-04-13 21:50:36 -07:00
Pass Refactor the way that pass options are specified. 2019-12-23 16:48:22 -08:00
SDBM [mlir] Remove need for static global ctors from mlir-translate 2020-04-08 16:52:33 -06:00
Target Fix MLIR test case failure caused by 89e0662dee 2020-04-14 09:54:22 +05:30
Transforms [mlir][SymbolDCE][NFC] Fix the visibility of the symbols within the test and 2020-04-13 00:33:11 -07:00
Unit Add build files and update README. 2019-03-30 11:23:22 -07:00
lib [MLIR] Introduce applyOpPatternsAndFold for op local rewrites 2020-04-15 14:10:01 +05:30
mlir-cpu-runner [mlir][test] NFC - Rename cblas to mlir_test_cblas 2020-04-09 16:13:33 -04:00
mlir-cuda-runner Fix all-reduce int tests by host-registering memrefs. 2020-03-23 11:48:13 +01:00
mlir-linalg-ods-gen [mlir][Linalg] Create a tool to generate named Linalg ops from a Tensor Comprehensions-like specification. 2020-04-10 13:59:25 -04:00
mlir-opt Keep output file after successful execution of mlir-opt 2020-04-08 03:37:45 +00:00
mlir-tblgen [mlir][NFC] Replace mlir/Support/Functional.h with llvm equivalents. 2020-04-13 14:22:12 -07:00
mlir-vulkan-runner [mlir][vulkan-runner] Add support for 3D memrefs. 2020-04-03 15:10:40 +03:00
APITest.h Mass update the MLIR license header to mention "Part of the LLVM project" 2020-01-26 03:58:30 +00:00
CMakeLists.txt [mlir][Linalg] Create a tool to generate named Linalg ops from a Tensor Comprehensions-like specification. 2020-04-10 13:59:25 -04:00
lit.cfg.py [mlir][Linalg] Create a tool to generate named Linalg ops from a Tensor Comprehensions-like specification. 2020-04-10 13:59:25 -04:00
lit.site.cfg.py.in [MLIR] Add simple runner utilities for timing 2020-03-31 23:08:29 +05:30