Unboxing for static memrefs.
authorDimitrios Vytiniotis <dvytin@google.com>
Tue, 26 Feb 2019 13:48:41 +0000 (05:48 -0800)
committerjpienaar <jpienaar@google.com>
Fri, 29 Mar 2019 23:43:20 +0000 (16:43 -0700)
commit41c37c624634bb740d5ba89255fb64d3fd9962fe
tree83ec95b79c33ab669e9b9eacc3e2ccf925070f01
parent1da1b4c32104d40992341f181b50a9a79539759c
Unboxing for static memrefs.

When lowering to MLIR(LLVMDialect) we unbox the structs that result
from converting static memrefs, that is, singleton structs
that just contain a raw pointer. This allows us to get rid of all
"extractvalue" instructions in the common case where shapes are fully
known.

PiperOrigin-RevId: 235706021
mlir/g3doc/ConversionToLLVMDialect.md
mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp
mlir/test/LLVMIR/convert-memref-ops.mlir