LLVM  10.0.0svn
VPlanHCFGBuilder.cpp File Reference

This file implements the construction of a VPlan-based Hierarchical CFG (H-CFG) for an incoming IR. More...

#include "VPlanHCFGBuilder.h"
#include "LoopVectorizationPlanner.h"
#include "llvm/Analysis/LoopIterator.h"
Include dependency graph for VPlanHCFGBuilder.cpp:

Go to the source code of this file.

## Macros

#define DEBUG_TYPE   "loop-vectorize"

## Detailed Description

This file implements the construction of a VPlan-based Hierarchical CFG (H-CFG) for an incoming IR.

This construction comprises the following components and steps:

Definition in file VPlanHCFGBuilder.cpp.

## ◆ DEBUG_TYPE

 #define DEBUG_TYPE   "loop-vectorize"
1. PlainCFGBuilder class: builds a plain VPBasicBlock-based CFG that faithfully represents the CFG in the incoming IR. A VPRegionBlock (Top Region) is created to enclose and serve as parent of all the VPBasicBlocks in the plain CFG. NOTE: At this point, there is a direct correspondence between all the VPBasicBlocks created for the initial plain CFG and the incoming BasicBlocks. However, this might change in the future.

Definition at line 28 of file VPlanHCFGBuilder.cpp.