aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChristian Sigg <csigg@google.com>2020-11-16 11:41:59 +0100
committerChristian Sigg <csigg@google.com>2020-11-16 17:29:36 +0100
commit04481f26faff79027192bd27200956be16c11102 (patch)
tree2d918f9a83317c58cc8064026009b8ed54e28694 /llvm/lib/CodeGen/MachineFunction.cpp
parent6c02835d6c9290aa0a4f46dbce6827a8bd9466da (diff)
downloadllvm-04481f26faff79027192bd27200956be16c11102.zip
llvm-04481f26faff79027192bd27200956be16c11102.tar.gz
llvm-04481f26faff79027192bd27200956be16c11102.tar.bz2
[mlir] Require std.alloc() ops to have canonical layout during LLVM lowering.
The current code allows strided layouts, but the number of elements allocated is ambiguous. It could be either the number of elements in the shape (the current implementation), or the amount of elements required to not index out-of-bounds with the given maps (which would require evaluating the layout map). If we require the canonical layouts, the two will be the same. Reviewed By: nicolasvasilache, ftynse Differential Revision: https://reviews.llvm.org/D91523
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions