|
LLVM 24.0.0git
|
#include "llvm/Analysis/InlineCost.h"#include "AnalysisOptions.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SetVector.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/AssumptionCache.h"#include "llvm/Analysis/BlockFrequencyInfo.h"#include "llvm/Analysis/CodeMetrics.h"#include "llvm/Analysis/ConstantFolding.h"#include "llvm/Analysis/DomConditionCache.h"#include "llvm/Analysis/EphemeralValuesCache.h"#include "llvm/Analysis/InstructionSimplify.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/Analysis/MemoryBuiltins.h"#include "llvm/Analysis/OptimizationRemarkEmitter.h"#include "llvm/Analysis/ProfileSummaryInfo.h"#include "llvm/Analysis/TargetLibraryInfo.h"#include "llvm/Analysis/TargetTransformInfo.h"#include "llvm/Analysis/ValueTracking.h"#include "llvm/Config/llvm-config.h"#include "llvm/IR/AssemblyAnnotationWriter.h"#include "llvm/IR/CallingConv.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/GetElementPtrTypeIterator.h"#include "llvm/IR/GlobalAlias.h"#include "llvm/IR/InlineAsm.h"#include "llvm/IR/InstVisitor.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Operator.h"#include "llvm/IR/PatternMatch.h"#include "llvm/Support/Debug.h"#include "llvm/Support/FormattedStream.h"#include "llvm/Support/raw_ostream.h"#include <climits>#include <limits>#include <optional>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. | |
| #define DEBUG_PRINT_STAT | ( | x | ) |
| #define DEBUG_TYPE "inline-cost" |
Definition at line 54 of file InlineCost.cpp.
|
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 | ( | NumCallsAnalyzed | , |
| "Number of call sites analyzed" | ) |