class FunctionPropertiesUpdater

Declaration

class FunctionPropertiesUpdater { /* full declaration omitted */ };

Description

Correctly update FunctionPropertiesInfo post-inlining. A FunctionPropertiesUpdater keeps the state necessary for tracking the changes llvm::InlineFunction makes. The idea is that inlining will at most modify a few BBs of the Caller (maybe the entry BB and definitely the callsite BB) and potentially affect exception handling BBs in the case of invoke inlining.

Declared at: llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h:110

Member Variables

private llvm::FunctionPropertiesInfo& FPI
private const llvm::BasicBlock& CallSiteBB
private const llvm::Function& Caller
private DenseSet<const llvm::BasicBlock*> Successors

Method Overview

  • public FunctionPropertiesUpdater(llvm::FunctionPropertiesInfo & FPI, const llvm::CallBase & CB)
  • public void finish(llvm::FunctionAnalysisManager & FAM) const

Methods

FunctionPropertiesUpdater(
    llvm::FunctionPropertiesInfo& FPI,
    const llvm::CallBase& CB)

Declared at: llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h:112

Parameters

llvm::FunctionPropertiesInfo& FPI
const llvm::CallBase& CB

void finish(
    llvm::FunctionAnalysisManager& FAM) const

Declared at: llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h:114

Parameters

llvm::FunctionAnalysisManager& FAM