aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNicolas Vasilache <ntv@google.com>2020-06-04 18:55:26 -0400
committerNicolas Vasilache <ntv@google.com>2020-06-04 18:59:03 -0400
commit3463d9835b02a2c1b22fabadb4ba1a175fea6dad (patch)
tree50c4e6d539781445578ac9bd391af202b85b8432 /clang/lib/CodeGen/CodeGenModule.cpp
parenta95c08db122ef33576cd8f35094afcd1ea668d68 (diff)
downloadllvm-3463d9835b02a2c1b22fabadb4ba1a175fea6dad.zip
llvm-3463d9835b02a2c1b22fabadb4ba1a175fea6dad.tar.gz
llvm-3463d9835b02a2c1b22fabadb4ba1a175fea6dad.tar.bz2
[mlir][Linalg] Add a hoistViewAllocOps helper function
This revision adds a helper function to hoist alloc/dealloc pairs and alloca op out of immediately enclosing scf::ForOp if both conditions are true: 1. all operands are defined outside the loop. 2. all uses are ViewLikeOp or DeallocOp. This is now considered Linalg-specific and will be generalized on a per-need basis. Differential Revision: https://reviews.llvm.org/D81152
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions