LLVM 20.0.0git
|
Describes the uses of a parameter by the function. More...
#include "llvm/IR/ModuleSummaryIndex.h"
Classes | |
struct | Call |
Describes the use of a value in a call instruction, specifying the call's target, the value's parameter number, and the possible range of offsets from the beginning of the value that are passed. More... | |
Public Member Functions | |
ParamAccess ()=default | |
ParamAccess (uint64_t ParamNo, const ConstantRange &Use) | |
Public Attributes | |
uint64_t | ParamNo = 0 |
ConstantRange | Use {RangeWidth, true} |
The range contains byte offsets from the parameter pointer which accessed by the function. | |
std::vector< Call > | Calls |
In the per-module summary, it summarizes the byte offset applied to each pointer parameter before passing to each corresponding callee. | |
Static Public Attributes | |
static constexpr uint32_t | RangeWidth = 64 |
Describes the uses of a parameter by the function.
Definition at line 839 of file ModuleSummaryIndex.h.
|
default |
|
inline |
Definition at line 868 of file ModuleSummaryIndex.h.
std::vector<Call> llvm::FunctionSummary::ParamAccess::Calls |
In the per-module summary, it summarizes the byte offset applied to each pointer parameter before passing to each corresponding callee.
In the combined summary, it's empty and information is propagated by inter-procedural analysis and applied to the Use field.
Definition at line 865 of file ModuleSummaryIndex.h.
uint64_t llvm::FunctionSummary::ParamAccess::ParamNo = 0 |
Definition at line 855 of file ModuleSummaryIndex.h.
|
staticconstexpr |
Definition at line 840 of file ModuleSummaryIndex.h.
Referenced by llvm::generateParamAccessSummary(), and writeFunctionTypeMetadataRecords().
ConstantRange llvm::FunctionSummary::ParamAccess::Use {RangeWidth, true} |
The range contains byte offsets from the parameter pointer which accessed by the function.
In the per-module summary, it only includes accesses made by the function instructions. In the combined summary, it also includes accesses by nested function calls.
Definition at line 860 of file ModuleSummaryIndex.h.