LLVM  14.0.0git
Public Member Functions | List of all members
llvm::DefaultInlineAdvice Class Reference

#include "llvm/Analysis/InlineAdvisor.h"

Inheritance diagram for llvm::DefaultInlineAdvice:
Inheritance graph
Collaboration diagram for llvm::DefaultInlineAdvice:
Collaboration graph

Public Member Functions

 DefaultInlineAdvice (InlineAdvisor *Advisor, CallBase &CB, Optional< InlineCost > OIC, OptimizationRemarkEmitter &ORE, bool EmitRemarks=true)
- Public Member Functions inherited from llvm::InlineAdvice
 InlineAdvice (InlineAdvisor *Advisor, CallBase &CB, OptimizationRemarkEmitter &ORE, bool IsInliningRecommended)
 InlineAdvice (InlineAdvice &&)=delete
 InlineAdvice (const InlineAdvice &)=delete
virtual ~InlineAdvice ()
void recordInlining ()
 Exactly one of the record* APIs must be called. More...
void recordInliningWithCalleeDeleted ()
 Call after inlining succeeded, and resulted in deleting the callee. More...
void recordUnsuccessfulInlining (const InlineResult &Result)
 Call after the decision for a call site was to not inline. More...
void recordUnattemptedInlining ()
 Call to indicate inlining was not attempted. More...
bool isInliningRecommended () const
 Get the inlining recommendation. More...
const DebugLocgetOriginalCallSiteDebugLoc () const
const BasicBlockgetOriginalCallSiteBasicBlock () const

Additional Inherited Members

- Protected Member Functions inherited from llvm::InlineAdvice
virtual void recordUnattemptedInliningImpl ()
- Protected Attributes inherited from llvm::InlineAdvice
InlineAdvisor *const Advisor
Function *const Caller
 Caller and Callee are pre-inlining. More...
Function *const Callee
const DebugLoc DLoc
const BasicBlock *const Block
const bool IsInliningRecommended

Detailed Description

Definition at line 117 of file InlineAdvisor.h.

Constructor & Destructor Documentation

◆ DefaultInlineAdvice()

llvm::DefaultInlineAdvice::DefaultInlineAdvice ( InlineAdvisor Advisor,
CallBase CB,
Optional< InlineCost OIC,
OptimizationRemarkEmitter ORE,
bool  EmitRemarks = true 

Definition at line 119 of file InlineAdvisor.h.

The documentation for this class was generated from the following files: