LLVM API Documentation

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

SparcV9PreSelection.cpp File Reference

#include "SparcV9Internals.h"
#include "SparcV9BurgISel.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/InstVisitor.h"
#include "llvm/Support/GetElementPtrTypeIterator.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Transforms/Scalar.h"
#include <algorithm>

Include dependency graph for SparcV9PreSelection.cpp:

Go to the source code of this file.

Functions

static GetElementPtrInstgetGlobalAddr (Value *ptr, Instruction &insertBefore)
static bool nonConstant (const Use &U)
static InstructionDecomposeConstantExpr (ConstantExpr *CE, Instruction &insertBefore)
static bool ConstantTypeMustBeLoaded (const Type *CVT)
FunctionPassllvm::createPreSelectionPass (const TargetMachine &TM)


Function Documentation

static bool ConstantTypeMustBeLoaded const Type CVT  )  [inline, static]
 

Definition at line 164 of file SparcV9PreSelection.cpp.

References llvm::Type::isIntegral(), and llvm::Type::isPrimitiveType().

static Instruction* DecomposeConstantExpr ConstantExpr CE,
Instruction insertBefore
[static]
 

Definition at line 109 of file SparcV9PreSelection.cpp.

References C, getGlobalAddr(), llvm::ConstantExpr::getOpcode(), llvm::ConstantExpr::getOperand(), llvm::Value::getType(), nonConstant(), llvm::User::op_begin(), llvm::User::op_end(), and llvm::Select.

static GetElementPtrInst* getGlobalAddr Value ptr,
Instruction insertBefore
[static]
 

Definition at line 95 of file SparcV9PreSelection.cpp.

References U.

Referenced by DecomposeConstantExpr().

static bool nonConstant const Use U  )  [inline, static]
 

Definition at line 105 of file SparcV9PreSelection.cpp.

Referenced by DecomposeConstantExpr().