Tutorial Linalg1: implement conversion to the LLVM Dialect
authorAlex Zinenko <zinenko@google.com>
Wed, 3 Apr 2019 17:38:47 +0000 (10:38 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 4 Apr 2019 01:36:09 +0000 (18:36 -0700)
commit5fb62b47c3d139a54ba681933551cb7154f0caa0
treee8aec9da1ee49b5ae030ad53e1c48f680f700bb2
parent4e972bd5a54ef35a75114811914a705eeebfbb6a
Tutorial Linalg1: implement conversion to the LLVM Dialect

    Implement conversion from the Linalg dialect to the LLVM dialect using a simple
    set of DialectOpConverters and by plugging them into the dialect conversion
    infrastructure.  View and Range Linalg types are converted into descriptors
    that store the dynamic values in an LLVM aggregate type, similarly to memrefs.
    Slice operations create new descriptors based on the original descriptors and
    thus remove the constraint on ViewTypes not being acceptable as function
    arguments.

--

PiperOrigin-RevId: 241760189
mlir/tutorial/Linalg1/Conversion.cpp [new file with mode: 0644]
mlir/tutorial/Linalg1/Example.cpp
mlir/tutorial/Linalg1/include/linalg1/ConvertToLLVMDialect.h [new file with mode: 0644]
mlir/tutorial/Linalg1/include/linalg1/SliceOp.h
mlir/tutorial/Linalg1/lib/ConvertToLLVMDialect.cpp [new file with mode: 0644]
mlir/tutorial/Linalg1/lib/SliceOp.cpp