llvm::StructurizeCFGPass

Pass that transforms regions into structured control flow.

Synopsis

Declared in <llvm/Transforms/Scalar/StructurizeCFG.h>

struct StructurizeCFGPass
    : RequiredPassInfoMixin<StructurizeCFGPass>

Description

Rewrites arbitrary CFGs into a structured form (if/then/else and loops) suitable for targets that require structured control flow. Optionally skips regions that are already uniform.

Base Classes

NameDescription
RequiredPassInfoMixin<StructurizeCFGPass>A CRTP mix-in for passes that should not be skipped.

Member Functions

NameDescription
StructurizeCFGPass [constructor]Construct a StructurizeCFG pass.
printPipeline Print this pass's pipeline representation to OS.
run Run the pass over the function.

Static Member Functions

NameDescription
isRequired Return true; required passes cannot be skipped.