LLVM 20.0.0git
|
#include "llvm/Transforms/IPO/FunctionSpecialization.h"
Friends | |
class | InstVisitor< InstCostVisitor, Constant * > |
Definition at line 153 of file FunctionSpecialization.h.
|
inline |
Definition at line 174 of file FunctionSpecialization.h.
Compute the codesize savings for replacing argument A
with constant C
.
Definition at line 163 of file FunctionSpecialization.cpp.
References A, llvm::CallingConv::C, llvm::dbgs(), isBlockExecutable(), and LLVM_DEBUG.
Cost InstCostVisitor::getCodeSizeSavingsFromPendingPHIs | ( | ) |
Definition at line 151 of file FunctionSpecialization.cpp.
References isBlockExecutable().
Cost InstCostVisitor::getLatencySavingsForKnownConstants | ( | ) |
Compute the latency savings from replacing all arguments with constants for a specialization candidate.
As this function computes the latency savings for all Instructions in KnownConstants at once, it should be called only after every instruction has been visited, i.e. after:
to ensure that the latency savings are calculated for all Instructions we have visited and found to be constant.
Definition at line 189 of file FunctionSpecialization.cpp.
References llvm::dbgs(), llvm::TargetTransformInfo::getInstructionCost(), I, llvm::Latency, LLVM_DEBUG, and llvm::TargetTransformInfo::TCK_Latency.
|
inline |
Definition at line 179 of file FunctionSpecialization.h.
References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::contains(), and llvm::SCCPSolver::isBlockExecutable().
Referenced by getCodeSizeSavingsForArg(), and getCodeSizeSavingsFromPendingPHIs().
|
friend |
Definition at line 187 of file FunctionSpecialization.h.