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, MVT ValueType)
SDValue get_vec_i16imm (SDNode *N, SelectionDAG &DAG, MVT ValueType)
SDValue get_vec_i10imm (SDNode *N, SelectionDAG &DAG, MVT ValueType)
SDValue get_vec_i8imm (SDNode *N, SelectionDAG &DAG, MVT ValueType)
SDValue get_ILHUvec_imm (SDNode *N, SelectionDAG &DAG, MVT 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 LowerSplat_v2i64 (MVT OpVT, SelectionDAG &DAG, uint64_t splat)
SDValue getBorrowGenerateShufMask (SelectionDAG &DAG)
 Generate the borrow-generate shuffle mask.
SDValue getCarryGenerateShufMask (SelectionDAG &DAG)
 Generate the carry-generate shuffle mask.


Detailed Description

Utility functions specific to CellSPU:.

Enumeration Type Documentation

anonymous enum

Enumerator:
PROC_NONE 
DEFAULT_PROC 

Definition at line 28 of file SPUSubtarget.h.


Function Documentation

SDValue llvm::SPU::get_ILHUvec_imm ( SDNode *  N,
SelectionDAG &  DAG,
MVT  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 1432 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 1455 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 1446 of file SPUISelLowering.cpp.

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

SDValue llvm::SPU::get_vec_i10imm ( SDNode *  N,
SelectionDAG &  DAG,
MVT  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 1387 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,
MVT  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 1364 of file SPUISelLowering.cpp.

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

SDValue llvm::SPU::get_vec_i8imm ( SDNode *  N,
SelectionDAG &  DAG,
MVT  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 1413 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,
MVT  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 1342 of file SPUISelLowering.cpp.

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

SDValue llvm::SPU::getBorrowGenerateShufMask ( SelectionDAG &  DAG  ) 

SDValue llvm::SPU::getCarryGenerateShufMask ( SelectionDAG &  DAG  ) 

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 845 of file SPUISelLowering.cpp.

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

SDValue llvm::SPU::LowerSplat_v2i64 ( MVT  OpVT,
SelectionDAG &  DAG,
uint64_t  splat 
)