CodeQL library for C/C++
Search

Class IRFunction

The IR for a function.

Import path

import semmle.code.cpp.ir.IR

Direct supertypes

Indirect supertypes

Inherited fields

Predicates

getABlock

Gets all blocks in this function.

getAnInstruction

Gets all instructions in this function.

getEnterFunctionInstruction

Gets the entry point for this function.

getEntryBlock

Gets the block containing the entry point of this function.

getExitFunctionInstruction

Gets the exit point for this function.

getReturnInstruction

Gets the single return instruction for this function.

getReturnVariable

Gets the variable used to hold the return value of this function. If this function does not return a value, this predicate does not hold.

Inherited predicates

getFunction

Gets the function whose IR is represented.

from IRFunctionBase
getLocation

Gets the location of the function.

from IRFunctionBase
toString

Gets a textual representation of this element.

from IRFunctionBase