class DefaultInlineAdvisor

Declaration

class DefaultInlineAdvisor : public InlineAdvisor { /* full declaration omitted */ };

Description

The default (manual heuristics) implementation of the InlineAdvisor. This implementation does not need to keep state between inliner pass runs, and is reusable as-is for inliner pass test scenarios, as well as for regular use.

Declared at: llvm/include/llvm/Analysis/InlineAdvisor.h:229

Inherits from: InlineAdvisor

Member Variables

private llvm::InlineParams Params

Inherited from InlineAdvisor:

protected M
protected FAM
protected IC
protected AnnotatedInlinePassName
protected ImportedFunctionsStats

Method Overview

  • public DefaultInlineAdvisor(llvm::Module & M, llvm::FunctionAnalysisManager & FAM, llvm::InlineParams Params, llvm::InlineContext IC)
  • private std::unique_ptr<InlineAdvice> getAdviceImpl(llvm::CallBase & CB)

Inherited from InlineAdvisor:

Methods

DefaultInlineAdvisor(
    llvm::Module& M,
    llvm::FunctionAnalysisManager& FAM,
    llvm::InlineParams Params,
    llvm::InlineContext IC)

Declared at: llvm/include/llvm/Analysis/InlineAdvisor.h:231

Parameters

llvm::Module& M
llvm::FunctionAnalysisManager& FAM
llvm::InlineParams Params
llvm::InlineContext IC

std::unique_ptr<InlineAdvice> getAdviceImpl(
    llvm::CallBase& CB)

Declared at: llvm/include/llvm/Analysis/InlineAdvisor.h:236

Parameters

llvm::CallBase& CB