[llvm] [VPlan] Hook IR blocks into VPlan during skeleton creation (NFC) (PR #114292)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 15:43:58 PST 2024
================
@@ -3942,12 +3928,9 @@ class VPlan {
#endif
/// Returns the VPRegionBlock of the vector loop.
- VPRegionBlock *getVectorLoopRegion() {
- return cast<VPRegionBlock>(getEntry()->getSingleSuccessor());
- }
- const VPRegionBlock *getVectorLoopRegion() const {
- return cast<VPRegionBlock>(getEntry()->getSingleSuccessor());
- }
+ VPRegionBlock *getVectorLoopRegion();
+
+ const VPRegionBlock *getVectorLoopRegion() const;
/// Returns the preheader of the vector loop region.
VPBasicBlock *getVectorPreheader() {
----------------
ayalz wrote:
Unrelated: better have getVectorLoopRegion() and getVectorPreHeader() listed next to other VPBB gets, ordered from getEntry() - along with documentation, getVectorPreHeader(), getVectorLoopRegion(), getMiddleBlock(), getScalarPreheader(), getScalarHeader().
https://github.com/llvm/llvm-project/pull/114292
More information about the llvm-commits
mailing list