LLVM 22.0.0git
FunctionPropertiesAnalysis.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 COUNT_OPERAND(OPTYPE)
#define PRINT_PROPERTY(PROP_NAME)

Functions

LLVM_ABI cl::opt< boolllvm::EnableDetailedFunctionProperties ("enable-detailed-function-properties", cl::Hidden, cl::init(false), cl::desc("Whether or not to compute detailed function properties."))

Variables

static cl::opt< unsignedllvm::BigBasicBlockInstructionThreshold ("big-basic-block-instruction-threshold", cl::Hidden, cl::init(500), cl::desc("The minimum number of instructions a basic block should contain " "before being considered big."))
static cl::opt< unsignedllvm::MediumBasicBlockInstructionThreshold ("medium-basic-block-instruction-threshold", cl::Hidden, cl::init(15), cl::desc("The minimum number of instructions a basic block should contain " "before being considered medium-sized."))
static cl::opt< unsignedCallWithManyArgumentsThreshold ("call-with-many-arguments-threshold", cl::Hidden, cl::init(4), cl::desc("The minimum number of arguments a function call must have before " "it is considered having many arguments."))

Macro Definition Documentation

◆ COUNT_OPERAND

#define COUNT_OPERAND ( OPTYPE)
Value:
if (isa<OPTYPE>(Operand)) { \
OPTYPE##OperandCount += Direction; \
continue; \
}
bool isa(const From &Val)
isa<X> - Return true if the parameter to the template is an instance of one of the template type argu...
Definition Casting.h:548

◆ PRINT_PROPERTY

#define PRINT_PROPERTY ( PROP_NAME)
Value:
OS << #PROP_NAME ": " << PROP_NAME << "\n";

Referenced by llvm::FunctionPropertiesInfo::print().

Variable Documentation

◆ CallWithManyArgumentsThreshold

cl::opt< unsigned > CallWithManyArgumentsThreshold("call-with-many-arguments-threshold", cl::Hidden, cl::init(4), cl::desc("The minimum number of arguments a function call must have before " "it is considered having many arguments.")) ( "call-with-many-arguments-threshold" ,
cl::Hidden ,
cl::init(4) ,
cl::desc("The minimum number of arguments a function call must have before " "it is considered having many arguments.")  )
static