LLVM 24.0.0git
InlineCost.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Macros

#define DEBUG_TYPE   "inline-cost"
#define DEBUG_PRINT_STAT(x)

Functions

 STATISTIC (NumCallsAnalyzed, "Number of call sites analyzed")
std::optional< int > llvm::getStringFnAttrAsInt (const Attribute &Attr)
LLVM_ABI std::optional< int > llvm::getStringFnAttrAsInt (CallBase &CB, StringRef AttrKind)
std::optional< int > llvm::getStringFnAttrAsInt (Function *F, StringRef AttrKind)
static bool functionsHaveCompatibleAttributes (const AnalysisOptions &Opts, Function *Caller, Function *Callee, function_ref< const TargetLibraryInfo &(Function &)> &GetTLI)
 Test that there are no attribute conflicts between Caller and Callee that prevent inlining.

Macro Definition Documentation

◆ DEBUG_PRINT_STAT

#define DEBUG_PRINT_STAT ( x)
Value:
OS << " " #x ": " << x << "\n"

◆ DEBUG_TYPE

#define DEBUG_TYPE   "inline-cost"

Definition at line 54 of file InlineCost.cpp.

Function Documentation

◆ functionsHaveCompatibleAttributes()

bool functionsHaveCompatibleAttributes ( const AnalysisOptions & Opts,
Function * Caller,
Function * Callee,
function_ref< const TargetLibraryInfo &(Function &)> & GetTLI )
static

Test that there are no attribute conflicts between Caller and Callee that prevent inlining.

Definition at line 2983 of file InlineCost.cpp.

Referenced by llvm::getAttributeBasedInliningDecision().

◆ STATISTIC()

STATISTIC ( NumCallsAnalyzed ,
"Number of call sites analyzed"  )