diff options
author | Tom Eccles <tom.eccles@arm.com> | 2023-01-10 16:08:58 +0000 |
---|---|---|
committer | Tom Eccles <tom.eccles@arm.com> | 2023-02-10 16:14:17 +0000 |
commit | 81a79ee446fe499e217144ae1cd505ede9021712 (patch) | |
tree | f84d27befdfa134c7cfe83e917e79d8d9bf12ef9 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | af39acda8873cc75db116e326588447f018a99d9 (diff) | |
download | llvm-81a79ee446fe499e217144ae1cd505ede9021712.zip llvm-81a79ee446fe499e217144ae1cd505ede9021712.tar.gz llvm-81a79ee446fe499e217144ae1cd505ede9021712.tar.bz2 |
[mlir] Add function for checking if a block is inside a loop
This function returns whether a block is nested inside of a loop. There
can be three kinds of loop:
1) The block is nested inside of a LoopLikeOpInterface
2) The block is nested inside another block which is in a loop
3) There is a cycle in the control flow graph
This will be useful for Flang's stack arrays pass, which moves array
allocations from the heap to the stack. Special handling is needed when
allocations occur inside of loops to ensure additional stack space is
not allocated on each loop iteration.
Differential Revision: https://reviews.llvm.org/D141401
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions