LLVM API Documentation

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)

Variables

const TargetInstrInfoinstrInfo


Function Documentation

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

Definition at line 189 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 llvm::CallingConv::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.

References U.

Referenced by DecomposeConstantExpr().


Variable Documentation

const TargetInstrInfo& instrInfo

Definition at line 39 of file SparcV9PreSelection.cpp.