Skip to content

ASTtools::transformToBlockShell

Create an SgBasicBlock shell around an existing SgBasicBlock.

Synopsis

Declared in <src/midend/programTransformation/astOutlining/StmtRewrite.hh>

SgBasicBlock*
transformToBlockShell(SgBasicBlock* b_orig);

Description

Given a basic block, B, this routine creates a new basic block, B', moves all statements in B to B', inserts B' into B, and returns B'.

Return Value

This class represents the concept of a block (not a basic block from control flow analysis).

Parameters

Name

Description

b_orig

This class represents the concept of a block (not a basic block from control flow analysis).

Created with MrDocs