Skip to content

Outliner::generateParameterStructureDeclaration

Generate a struct declaration to wrap all variables to be passed to the outlined function There are two ways to wrap a variable: Using its value vs. Using its address (pointer type)

Synopsis

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

[[visibility]]
SgClassDeclaration*
generateParameterStructureDeclaration(
    SgBasicBlock* s,
    std::string const& func_name_str,
    ASTtools::VarSymSet_t const& syms,
    ASTtools::VarSymSet_t& pdSyms,
    SgScopeStatement* func_scope);

Description

This function will also insert the declaration inside the global scope point right before the outlining target If the scope of the outlined function is different, a declaration will also be inserted there.

Return Value

This class represents the concept of a class declaration statement. It includes the

Parameters

Name

Description

s

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

syms

Stores a collection of SgVariableSymbols (var syms).

pdSyms

Stores a collection of SgVariableSymbols (var syms).

func_scope

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

Created with MrDocs