Extract branch weights from MD_prof metadata
Declared in <llvm/IR/ProfDataUtils.h>
bool
extractBranchWeights(
MDNode const* ProfileData,
SmallVectorImpl<uint32_t>& Weights);
True if weights were extracted, False otherwise. When false Weights will be cleared.
| Name | Description |
|---|---|
| ProfileData | A pointer to an MDNode. |
| Weights [out] | An output vector to fill with branch weights |