LLVM API Documentation

Defines | Functions | Variables
LowerExpectIntrinsic.cpp File Reference
#include "llvm/Transforms/Scalar.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/Metadata.h"
#include "llvm/Pass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include <vector>
Include dependency graph for LowerExpectIntrinsic.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "lower-expect-intrinsic"

Functions

 STATISTIC (IfHandled,"Number of 'expect' intrinsic instructions handled")
 INITIALIZE_PASS (LowerExpectIntrinsic,"lower-expect","Lower 'expect' ""Intrinsics", false, false) FunctionPass *llvm

Variables

static cl::opt< uint32_t > LikelyBranchWeight ("likely-branch-weight", cl::Hidden, cl::init(64), cl::desc("Weight of the branch likely to be taken (default = 64)"))
static cl::opt< uint32_t > UnlikelyBranchWeight ("unlikely-branch-weight", cl::Hidden, cl::init(4), cl::desc("Weight of the branch unlikely to be taken (default = 4)"))

Define Documentation

#define DEBUG_TYPE   "lower-expect-intrinsic"

Definition at line 31 of file LowerExpectIntrinsic.cpp.


Function Documentation

INITIALIZE_PASS ( LowerExpectIntrinsic  ,
"lower-expect"  ,
"Lower 'expect' ""Intrinsics"  ,
false  ,
false   
)

Definition at line 183 of file LowerExpectIntrinsic.cpp.

STATISTIC ( IfHandled  ,
"Number of 'expect' intrinsic instructions handled"   
)

Variable Documentation

cl::opt<uint32_t> LikelyBranchWeight("likely-branch-weight", cl::Hidden, cl::init(64), cl::desc("Weight of the branch likely to be taken (default = 64)")) [static]
cl::opt<uint32_t> UnlikelyBranchWeight("unlikely-branch-weight", cl::Hidden, cl::init(4), cl::desc("Weight of the branch unlikely to be taken (default = 4)")) [static]