Skip to content

doInline

Main inliner code. Accepts a function call as a parameter, and inlines only that single function call. Returns true if it succeeded, and false otherwise. The function call must be to a named function, static member function, or non‐virtual non‐static member function, and the function must be known (not through a function pointer or member function pointer). Also, the body of the function must already be visible. Recursive procedures are handled properly (when allowRecursion is set), by inlining one copy of the procedure into itself. Any other restrictions on what can be inlined are bugs in the inliner code.

Synopsis

Declared in <src/midend/programTransformation/astInlining/inliner.h>

[[visibility]]
bool
doInline(
    SgFunctionCallExp* funcall,
    bool allowRecursion = false);

Parameters

Name

Description

funcall

This class represents the concept of a C++ function call (which is an expression).

Created with MrDocs