LLVM API Documentation

llvm::SPU Namespace Reference

Utility functions specific to CellSPU:. More...


Enumerations

enum  { PROC_NONE, DEFAULT_PROC }

Functions

SDValue get_vec_u18imm (SDNode *N, SelectionDAG &DAG, EVT ValueType)
SDValue get_vec_i16imm (SDNode *N, SelectionDAG &DAG, EVT ValueType)
SDValue get_vec_i10imm (SDNode *N, SelectionDAG &DAG, EVT ValueType)
SDValue get_vec_i8imm (SDNode *N, SelectionDAG &DAG, EVT ValueType)
SDValue get_ILHUvec_imm (SDNode *N, SelectionDAG &DAG, EVT ValueType)
SDValue get_v4i32_imm (SDNode *N, SelectionDAG &DAG)
 get_v4i32_imm - Catch-all for general 32-bit constant vectors
SDValue get_v2i64_imm (SDNode *N, SelectionDAG &DAG)
 get_v4i32_imm - Catch-all for general 64-bit constant vectors
SDValue LowerConstantPool (SDValue Op, SelectionDAG &DAG, const SPUTargetMachine &TM)
 Alternate entry point for generating the address of a constant pool entry.
SDValue LowerV2I64Splat (EVT OpVT, SelectionDAG &DAG, uint64_t splat, DebugLoc dl)
 Simplify a EVT::v2i64 constant splat to CellSPU-ready form.


Detailed Description

Utility functions specific to CellSPU:.

Enumeration Type Documentation

anonymous enum

Enumerator:
PROC_NONE 
DEFAULT_PROC 

Definition at line 26 of file SPUSubtarget.h.


Function Documentation

SDValue llvm::SPU::get_ILHUvec_imm ( SDNode *  N,
SelectionDAG &  DAG,
EVT  ValueType 
)

get_ILHUvec_imm - Test if this vector is a vector filled with the same value and the value fits into a signed 16-bit constant, and if so, return the constant

Definition at line 1527 of file SPUISelLowering.cpp.

References llvm::SelectionDAG::getTargetConstant(), getVecImm(), llvm::MVT::i32, and llvm::MVT::i64.

SDValue llvm::SPU::get_v2i64_imm ( SDNode *  N,
SelectionDAG &  DAG 
)

get_v4i32_imm - Catch-all for general 64-bit constant vectors

Definition at line 1550 of file SPUISelLowering.cpp.

References llvm::SelectionDAG::getTargetConstant(), getVecImm(), and llvm::MVT::i64.

SDValue llvm::SPU::get_v4i32_imm ( SDNode *  N,
SelectionDAG &  DAG 
)

get_v4i32_imm - Catch-all for general 32-bit constant vectors

Definition at line 1541 of file SPUISelLowering.cpp.

References llvm::SelectionDAG::getTargetConstant(), getVecImm(), and llvm::MVT::i32.

SDValue llvm::SPU::get_vec_i10imm ( SDNode *  N,
SelectionDAG &  DAG,
EVT  ValueType 
)

get_vec_i10imm - Test if this vector is a vector filled with the same value and the value fits into a signed 10-bit constant, and if so, return the constant

Definition at line 1482 of file SPUISelLowering.cpp.

References llvm::SelectionDAG::getTargetConstant(), getVecImm(), llvm::MVT::i64, and llvm::isS10Constant().

SDValue llvm::SPU::get_vec_i16imm ( SDNode *  N,
SelectionDAG &  DAG,
EVT  ValueType 
)

get_vec_i16imm - Test if this vector is a vector filled with the same value and the value fits into a signed 16-bit constant, and if so, return the constant

Definition at line 1459 of file SPUISelLowering.cpp.

References llvm::SelectionDAG::getTargetConstant(), getVecImm(), and llvm::MVT::i64.

SDValue llvm::SPU::get_vec_i8imm ( SDNode *  N,
SelectionDAG &  DAG,
EVT  ValueType 
)

get_vec_i8imm - Test if this vector is a vector filled with the same value and the value fits into a signed 8-bit constant, and if so, return the constant.

Note:
: The incoming vector is v16i8 because that's the only way we can load constant vectors. Thus, we test to see if the upper and lower bytes are the same value.

Definition at line 1508 of file SPUISelLowering.cpp.

References llvm::SelectionDAG::getTargetConstant(), getVecImm(), llvm::MVT::i16, and llvm::MVT::i8.

SDValue llvm::SPU::get_vec_u18imm ( SDNode *  N,
SelectionDAG &  DAG,
EVT  ValueType 
)

get_vec_i18imm - Test if this vector is a vector filled with the same value and the value fits into an unsigned 18-bit constant, and if so, return the constant

Definition at line 1437 of file SPUISelLowering.cpp.

References llvm::SelectionDAG::getTargetConstant(), getVecImm(), and llvm::MVT::i64.

SDValue llvm::SPU::LowerConstantPool ( SDValue  Op,
SelectionDAG &  DAG,
const SPUTargetMachine &  TM 
)

Alternate entry point for generating the address of a constant pool entry.

Definition at line 936 of file SPUISelLowering.cpp.

References llvm::SPUTargetMachine::getSubtargetImpl(), and LowerConstantPool().

SDValue llvm::SPU::LowerV2I64Splat ( EVT  OpVT,
SelectionDAG &  DAG,
uint64_t  splat,
DebugLoc  dl 
)