commit | f8a3ad8c14b5c473bcce742534bd97c7454b8907 | [log] [tgz] |
---|---|---|
author | Alex Zinenko <zinenko@google.com> | Wed Nov 28 07:07:56 2018 -0800 |
committer | jpienaar <jpienaar@google.com> | Fri Mar 29 14:11:10 2019 -0700 |
tree | 01524b6e9c2e9af8be57296dba21dbfb8be4c8a4 | |
parent | ef888cac78e00f68b7417f6362d51aeb5e27109e [diff] |
LLVM IR lowering: support 'dim' operation. Add support for translating 'dim' opreation on MemRefs to LLVM IR. For a static size, this operation merely defines an LLVM IR constant value that may not appear in the output IR if not used (and had not been removed before by DCE). For a dynamic size, this operation is translated into an access to the MemRef descriptor that contains the dynamic size. PiperOrigin-RevId: 223160774