[Polly] Decompose object construction and detection algorithm. NFC.
authorMichael Kruse <llvm-project@meinersbur.de>
Fri, 13 Aug 2021 17:26:35 +0000 (12:26 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Fri, 13 Aug 2021 17:44:37 +0000 (12:44 -0500)
commit0232c1d10dd79f5c8f9530d636655488eb3c9e7e
tree390ba91439f9c05316cbeb562747d0f9375d2fe4
parent581a80304c671b6cb2b1b1f87feb9fbe14875f2a
[Polly] Decompose object construction and detection algorithm. NFC.

Avoid doing the detection work inside the constructor. In addition to
polymorphism being unintuitive in constructors and other design problems
such as if an exception is thrown, the ScopDetection class is usable
without detection in the sense of "no Scop found" or "function skipped".
polly/include/polly/ScopDetection.h
polly/lib/Analysis/ScopDetection.cpp