Retrieve the total of all weights from MD_prof data.
Declared in <llvm/IR/ProfDataUtils.h>
bool
extractProfTotalWeight(
MDNode const* ProfileData,
uint64_t& TotalWeights);
True on success with profile total weights filled in. False if no metadata was found.
| Name | Description |
|---|---|
| ProfileData | The profile data to extract the total weight from |
| TotalWeights [out] | input variable to fill with total weights |