Skip to content

Outliner::outline

All overloads of Outliner::outline

Outlines the given statement. The main programming interface.

Synopsis

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

[[visibility("default")]]
Result
outline(SgStatement* s);

Description

This function pre-process the target stmt first and outlines the specified statement, s. It creates a new outlined function definition, f, inserts f into the first scope surrounding s that may contain a function (or member function) definition, replaces s with a call to f, and finally returns f.

It can also does pre-processing only if directed by the internal flag, which is specified by user command line option and processed by commandLineProcessing();

Programmers are expected to tell if a statement is outlineable before calling this function.

Return Value

Stores the main results of an outlining transformation.

Parameters

Name Description
s This class represents the notion of a statement.

Created with MrDocs