aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2021-12-07 12:01:22 +0530
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2021-12-07 12:02:34 +0530
commit0fe61ecc2cef333250a152cd90d80d0b802b27db (patch)
tree49e63b1eed4303bf731a092ca3c32f60926e8ddc /clang/lib/Frontend/CompilerInvocation.cpp
parent061f22dda9fddbcdaa1fd10b9cfb0cf2e1fb937a (diff)
downloadllvm-0fe61ecc2cef333250a152cd90d80d0b802b27db.zip
llvm-0fe61ecc2cef333250a152cd90d80d0b802b27db.tar.gz
llvm-0fe61ecc2cef333250a152cd90d80d0b802b27db.tar.bz2
CycleInfo: Introduce cycles as a generalization of loops
LLVM loops cannot represent irreducible structures in the CFG. This change introduce the concept of cycles as a generalization of loops, along with a CycleInfo analysis that discovers a nested hierarchy of such cycles. This is based on Havlak (1997), Nesting of Reducible and Irreducible Loops. The cycle analysis is implemented as a generic template and then instatiated for LLVM IR and Machine IR. The template relies on a new GenericSSAContext template which must be specialized when used for each IR. This review is a restart of an older review request: https://reviews.llvm.org/D83094 Original implementation by Nicolai Hähnle <nicolai.haehnle@amd.com>, with recent refactoring by Sameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com> Differential Revision: https://reviews.llvm.org/D112696
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions