LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
BlockFrequency.cpp File Reference
#include "llvm/Support/BranchProbability.h"
#include "llvm/Support/BlockFrequency.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
Include dependency graph for BlockFrequency.cpp:

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_ostreamllvm::operator<< (raw_ostream &OS, const BlockFrequency &Freq)
 

Function Documentation

static uint64_t divrem96bit ( uint32_t  W[3],
uint32_t  D,
uint32_t *  Rout 
)
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 void mult96bit ( uint64_t  freq,
uint32_t  N,
uint32_t  W[3] 
)
static

Multiply FREQ by N and store result in W array.

Definition at line 22 of file BlockFrequency.cpp.

References N.