LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Reassociate.cpp File Reference

#include "llvm/Transforms/Scalar.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Type.h"
#include "llvm/Pass.h"
#include "llvm/Constant.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/Statistic.h"

Include dependency graph for Reassociate.cpp:

Go to the source code of this file.

Functions

FunctionPassllvm::createReassociatePass ()
static ValueNegateValue (Value *V, BasicBlock::iterator &BI)


Function Documentation

static Value* NegateValue Value V,
BasicBlock::iterator &  BI
[static]
 

Definition at line 178 of file Reassociate.cpp.

References Add(), llvm::Value::getName(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), and llvm::Value::hasOneUse().


Variable Documentation

Statistic NumChanged("reassociate","Number of insts reassociated") [static]
 

Statistic NumLinear("reassociate","Number of insts linearized") [static]
 

Statistic NumSwapped("reassociate","Number of insts with operands swapped") [static]
 

RegisterOpt<Reassociate> X("reassociate","Reassociate expressions") [static]