LLVM API Documentation
#include "llvm/Support/BranchProbability.h"
#include "llvm/Support/BlockFrequency.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
Go to the source code of this file.
Namespaces | |
llvm | |
List of target independent CodeGen pass IDs. | |
Functions | |
static void | mult96bit (uint64_t freq, uint32_t N, uint32_t W[3]) |
Multiply FREQ by N and store result in W array. More... | |
static uint64_t | divrem96bit (uint32_t W[3], uint32_t D, uint32_t *Rout) |
raw_ostream & | llvm::operator<< (raw_ostream &OS, const BlockFrequency &Freq) |
|
static |
Divide 96-bit value stored in W[2]:W[1]:W[0] by D. Since our word size is a 32 bit unsigned integer, we can use a short division algorithm.
Definition at line 37 of file BlockFrequency.cpp.
|
static |
Multiply FREQ by N and store result in W array.
Definition at line 22 of file BlockFrequency.cpp.
References N.