LLVM API Documentation

llvm::BlackfinTargetLowering Class Reference

#include <BlackfinISelLowering.h>

Inheritance diagram for llvm::BlackfinTargetLowering:
[legend]
Collaboration diagram for llvm::BlackfinTargetLowering:
[legend]

List of all members.

Public Member Functions

 BlackfinTargetLowering (TargetMachine &TM)
virtual MVT::SimpleValueType getSetCCResultType (EVT VT) const
virtual SDValue LowerOperation (SDValue Op, SelectionDAG &DAG)
virtual void ReplaceNodeResults (SDNode *N, SmallVectorImpl< SDValue > &Results, SelectionDAG &DAG)
int getVarArgsFrameOffset () const
ConstraintType getConstraintType (const std::string &Constraint) const
std::pair< unsigned, const
TargetRegisterClass * > 
getRegForInlineAsmConstraint (const std::string &Constraint, EVT VT) const
std::vector< unsigned > getRegClassForInlineAsmConstraint (const std::string &Constraint, EVT VT) const
virtual bool isOffsetFoldingLegal (const GlobalAddressSDNode *GA) const
const char * getTargetNodeName (unsigned Opcode) const
unsigned getFunctionAlignment (const Function *F) const
 getFunctionAlignment - Return the Log2 alignment of this function.


Detailed Description

Definition at line 32 of file BlackfinISelLowering.h.


Constructor & Destructor Documentation

BlackfinTargetLowering::BlackfinTargetLowering ( TargetMachine &  TM  ) 

Definition at line 41 of file BlackfinISelLowering.cpp.

References llvm::ISD::ADDE, llvm::TargetLowering::addRegisterClass(), llvm::ISD::AND, llvm::ISD::BR_CC, llvm::ISD::BR_JT, llvm::ISD::BSWAP, llvm::TargetLowering::computeRegisterProperties(), llvm::ISD::CTLZ, llvm::ISD::CTPOP, llvm::ISD::CTTZ, llvm::TargetLowering::Custom, llvm::ISD::DBG_LABEL, llvm::ISD::DBG_STOPPOINT, llvm::ISD::DEBUG_LOC, llvm::ISD::DECLARE, llvm::ISD::EH_LABEL, llvm::TargetLowering::Expand, llvm::ISD::EXTLOAD, llvm::ISD::GlobalAddress, llvm::MVT::i1, llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::ISD::JumpTable, llvm::ISD::MEMBARRIER, llvm::ISD::MULHS, llvm::ISD::MULHU, llvm::ISD::OR, llvm::MVT::Other, llvm::TargetLowering::Promote, llvm::ISD::READCYCLECOUNTER, llvm::ISD::SDIV, llvm::ISD::SDIVREM, llvm::ISD::SELECT_CC, llvm::TargetLowering::setBooleanContents(), llvm::ISD::SETCC, llvm::TargetLowering::setIntDivIsCheap(), llvm::TargetLowering::setLoadExtAction(), llvm::TargetLowering::setOperationAction(), llvm::TargetLowering::setShiftAmountType(), llvm::TargetLowering::setStackPointerRegisterToSaveRestore(), llvm::ISD::SEXTLOAD, llvm::ISD::SHL_PARTS, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SMUL_LOHI, llvm::ISD::SRA_PARTS, llvm::ISD::SREM, llvm::ISD::SRL_PARTS, llvm::ISD::STACKRESTORE, llvm::ISD::STACKSAVE, llvm::ISD::SUBE, llvm::ISD::UDIV, llvm::ISD::UDIVREM, llvm::ISD::UMUL_LOHI, llvm::ISD::UREM, llvm::ISD::VACOPY, llvm::ISD::VAEND, llvm::ISD::XOR, llvm::TargetLowering::ZeroOrOneBooleanContent, and llvm::ISD::ZEXTLOAD.


Member Function Documentation

MVT::SimpleValueType BlackfinTargetLowering::getSetCCResultType ( EVT  VT  )  const [virtual]

getSetCCResultType - Return the ValueType of the result of SETCC operations. Also used to obtain the target's preferred type for the condition operand of SELECT and BRCOND nodes. In the case of BRCOND the argument passed is MVT::Other since there are no other operands to get a type hint from.

Reimplemented from llvm::TargetLowering.

Definition at line 140 of file BlackfinISelLowering.cpp.

References llvm::MVT::i32.

SDValue BlackfinTargetLowering::LowerOperation ( SDValue  Op,
SelectionDAG &  DAG 
) [virtual]

LowerOperation - This callback is invoked for operations that are unsupported by the target, which are registered to use 'custom' lowering, and whose defined values are all legal. If the target has no operations that require custom lowering, it need not implement this. The default implementation of this aborts.

Reimplemented from llvm::TargetLowering.

Definition at line 452 of file BlackfinISelLowering.cpp.

References llvm::ISD::ADDE, llvm::SDNode::dump(), llvm::ISD::FRAMEADDR, llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::ISD::GlobalAddress, llvm::ISD::GlobalTLSAddress, llvm::ISD::JumpTable, llvm_unreachable, llvm::ISD::RETURNADDR, and llvm::ISD::SUBE.

void BlackfinTargetLowering::ReplaceNodeResults ( SDNode *  N,
SmallVectorImpl< SDValue > &  Results,
SelectionDAG &  DAG 
) [virtual]

ReplaceNodeResults - This callback is invoked when a node result type is illegal for the target, and the operation was registered to use 'custom' lowering for that result type. The target places new result values for the node in Results (their number and types must exactly match those of the original return values of the node), or leaves Results empty, which indicates that the node is not to be custom lowered after all.

If the target has no operations that require custom lowering, it need not implement this. The default implementation aborts.

Reimplemented from llvm::TargetLowering.

Definition at line 470 of file BlackfinISelLowering.cpp.

References llvm::ISD::BUILD_PAIR, llvm::SelectionDAG::getCopyFromReg(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::SDValue::getValue(), llvm::MVT::i32, llvm::MVT::i64, llvm_unreachable, llvm::SmallVectorImpl< T >::push_back(), and llvm::ISD::READCYCLECOUNTER.

int llvm::BlackfinTargetLowering::getVarArgsFrameOffset (  )  const [inline]

Definition at line 42 of file BlackfinISelLowering.h.

BlackfinTargetLowering::ConstraintType BlackfinTargetLowering::getConstraintType ( const std::string &  Constraint  )  const [virtual]

getConstraintType - Given a constraint letter, return the type of constraint it is for this target.

Reimplemented from llvm::TargetLowering.

Definition at line 509 of file BlackfinISelLowering.cpp.

References llvm::TargetLowering::C_Register, llvm::TargetLowering::C_RegisterClass, and llvm::TargetLowering::getConstraintType().

std::pair< unsigned, const TargetRegisterClass * > BlackfinTargetLowering::getRegForInlineAsmConstraint ( const std::string &  Constraint,
EVT  VT 
) const [virtual]

getRegForInlineAsmConstraint - Return register no and class for a C_Register constraint.

Reimplemented from llvm::TargetLowering.

Definition at line 552 of file BlackfinISelLowering.cpp.

References llvm::TargetLowering::getRegForInlineAsmConstraint(), llvm::MVT::i16, and P1.

std::vector< unsigned > BlackfinTargetLowering::getRegClassForInlineAsmConstraint ( const std::string &  Constraint,
EVT  VT 
) const [virtual]

getRegClassForInlineAsmConstraint - Given a constraint letter (e.g. "r"), return a list of registers that can be used to satisfy the constraint. This should only be used for C_RegisterClass constraints.

Reimplemented from llvm::TargetLowering.

Definition at line 588 of file BlackfinISelLowering.cpp.

References P1, and P2.

bool BlackfinTargetLowering::isOffsetFoldingLegal ( const GlobalAddressSDNode *  GA  )  const [virtual]

isOffsetFoldingLegal - Return true if folding a constant offset with the given GlobalAddress is legal. It is frequently not legal in PIC relocation models.

Reimplemented from llvm::TargetLowering.

Definition at line 612 of file BlackfinISelLowering.cpp.

const char * BlackfinTargetLowering::getTargetNodeName ( unsigned  Opcode  )  const [virtual]

getTargetNodeName() - This method returns the name of a target specific DAG node.

Reimplemented from llvm::TargetLowering.

Definition at line 131 of file BlackfinISelLowering.cpp.

References llvm::BFISD::CALL, llvm::BFISD::RET_FLAG, and llvm::BFISD::Wrapper.

unsigned BlackfinTargetLowering::getFunctionAlignment ( const Function *  F  )  const [virtual]

getFunctionAlignment - Return the Log2 alignment of this function.

Implements llvm::TargetLowering.

Definition at line 498 of file BlackfinISelLowering.cpp.


The documentation for this class was generated from the following files: