aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
diff options
context:
space:
mode:
authorTom Eccles <tom.eccles@arm.com>2023-01-10 16:08:58 +0000
committerTom Eccles <tom.eccles@arm.com>2023-02-10 16:14:17 +0000
commit81a79ee446fe499e217144ae1cd505ede9021712 (patch)
treef84d27befdfa134c7cfe83e917e79d8d9bf12ef9 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
parentaf39acda8873cc75db116e326588447f018a99d9 (diff)
downloadllvm-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