This class provides interface to collect and use lexical scoping information from machine instruction.

Synopsis

Declared in <llvm/CodeGen/LexicalScopes.h>

class LexicalScopes;

Member Functions

Name

Description

LexicalScopes [constructor]

Constructors

operator= [deleted]

Deleted copy assignment; LexicalScopes is not copyable.

dominates

Return true if DebugLoc's lexical scope dominates at least one machine instruction's lexical scope in a given machine basic block.

empty

Return true if there is no lexical scope information available.

findAbstractScope

Find an abstract scope or return null.

findInlinedScope

Find an inlined scope for the given scope/inlined‐at.

findLexicalScope

findLexicalScope overloads

getAbstractScopesList

Return a reference to list of abstract scopes.

getCurrentFunctionScope

Return lexical scope for the current function.

getFunction

Get function to which the given subprogram is attached, if exists.

getMachineBasicBlocks

Populate given set using machine basic blocks which have machine instructions that belong to lexical scope identified by DebugLoc.

getOrCreateAbstractScope

Find or create an abstract lexical scope.

initialize

Scan module to build subprogram‐to‐function map.

resetFunction

Reset the instance so that it's prepared for another function.

resetModule

Reset the instance so that it's prepared for another module.

scanFunction

Scan machine function and constuct lexical scope nest, resets the instance if necessary.

Created with MrDocs