diff options
| author | Alex Zinenko <zinenko@google.com> | 2019-04-04 01:43:21 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-04-05 07:40:21 -0700 |
| commit | 8b790434e55c44367cefa46657f8ab4425374b9c (patch) | |
| tree | 06b4ecdaf240b1b035dda8b2df3df67e91fa23cf /mlir/lib/Transforms | |
| parent | 092f3facad466522cfeab80ee92f6950176be7aa (diff) | |
| download | bcm5719-llvm-8b790434e55c44367cefa46657f8ab4425374b9c.tar.gz bcm5719-llvm-8b790434e55c44367cefa46657f8ab4425374b9c.zip | |
Example Linalg3: support Load/Store conversion from Linalg to LLVM IR dialect
Load and Store Linalg operations are converter to their LLVM IR counterparts
preceded by a sequence of operations that recover the effective address of the
accessed element. The address is computed given the subscripts and the view
descriptor as
base_pointer + base_offset + SUM_i subscript_i * stride_i.
Manual testing shows that the resulting LLVM IR for the matrix multiplication
example can be compiled and executed, producing correct results.
--
PiperOrigin-RevId: 241889003
Diffstat (limited to 'mlir/lib/Transforms')
0 files changed, 0 insertions, 0 deletions

