LLVM IR Dialect: port DimOp lowering from the translator
authorAlex Zinenko <zinenko@google.com>
Tue, 12 Feb 2019 21:47:25 +0000 (13:47 -0800)
committerjpienaar <jpienaar@google.com>
Fri, 29 Mar 2019 23:26:23 +0000 (16:26 -0700)
commit465746f262af5aa17af4fe09f31b93a1d7ad75f5
tree5997e2c240124335de69c36f81c44f81eb000222
parent2f11f8684615bc1e0ae9b15bc39a69afe553b03f
LLVM IR Dialect: port DimOp lowering from the translator

DimOp is converted to a constant LLVM IR dialect operation for static
dimensions and to an access to the dynamic size info stored in the memref
descriptor for the dynamic dimensions.  This behavior is consistent with the
existing mlir-translator.

This completes the porting of MLIR -> LLVM lowering to the dialect conversion
infrastructure.

PiperOrigin-RevId: 233665634
mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp
mlir/test/LLVMIR/convert-memref-ops.mlir