LLVM API Documentation
#include <MSP430ISelLowering.h>
Public Member Functions | |
| MSP430TargetLowering (MSP430TargetMachine &TM) | |
| virtual SDValue | LowerOperation (SDValue Op, SelectionDAG &DAG) |
| LowerOperation - Provide custom lowering hooks for some operations. | |
| virtual const char * | getTargetNodeName (unsigned Opcode) const |
| virtual unsigned | getFunctionAlignment (const Function *F) const |
| getFunctionAlignment - Return the Log2 alignment of this function. | |
| SDValue | LowerShifts (SDValue Op, SelectionDAG &DAG) |
| SDValue | LowerGlobalAddress (SDValue Op, SelectionDAG &DAG) |
| SDValue | LowerExternalSymbol (SDValue Op, SelectionDAG &DAG) |
| SDValue | LowerBR_CC (SDValue Op, SelectionDAG &DAG) |
| SDValue | LowerSELECT_CC (SDValue Op, SelectionDAG &DAG) |
| SDValue | LowerSIGN_EXTEND (SDValue Op, SelectionDAG &DAG) |
| MachineBasicBlock * | EmitInstrWithCustomInserter (MachineInstr *MI, MachineBasicBlock *BB) const |
Definition at line 66 of file MSP430ISelLowering.h.
| MSP430TargetLowering::MSP430TargetLowering | ( | MSP430TargetMachine & | TM | ) | [explicit] |
Definition at line 40 of file MSP430ISelLowering.cpp.
References llvm::TargetLowering::addRegisterClass(), llvm::ISD::BR_CC, llvm::ISD::BR_JT, llvm::ISD::BRCOND, llvm::ISD::BRIND, llvm::TargetLowering::computeRegisterProperties(), llvm::ISD::CTLZ, llvm::ISD::CTPOP, llvm::ISD::CTTZ, llvm::TargetLowering::Custom, llvm::TargetLowering::Expand, llvm::ISD::ExternalSymbol, llvm::ISD::EXTLOAD, llvm::ISD::GlobalAddress, llvm::MVT::i1, llvm::MVT::i16, llvm::MVT::i8, llvm::ISD::MUL, llvm::ISD::MULHS, llvm::ISD::MULHU, llvm::MVT::Other, llvm::TargetLowering::Promote, llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::TargetLowering::SchedulingForLatency, llvm::ISD::SDIV, llvm::ISD::SDIVREM, llvm::ISD::SELECT, llvm::ISD::SELECT_CC, llvm::TargetLowering::setBooleanContents(), llvm::ISD::SETCC, llvm::TargetLowering::setIntDivIsCheap(), llvm::TargetLowering::setLoadExtAction(), llvm::TargetLowering::setOperationAction(), llvm::TargetLowering::setSchedulingPreference(), llvm::TargetLowering::setShiftAmountType(), llvm::TargetLowering::setStackPointerRegisterToSaveRestore(), llvm::TargetLowering::setTruncStoreAction(), llvm::ISD::SEXTLOAD, llvm::ISD::SHL, llvm::ISD::SHL_PARTS, llvm::ISD::SIGN_EXTEND, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SMUL_LOHI, llvm::ISD::SRA, llvm::ISD::SRA_PARTS, llvm::ISD::SREM, llvm::ISD::SRL, llvm::ISD::SRL_PARTS, llvm::ISD::UDIV, llvm::ISD::UDIVREM, llvm::ISD::UMUL_LOHI, llvm::ISD::UREM, llvm::TargetLowering::ZeroOrOneBooleanContent, and llvm::ISD::ZEXTLOAD.
| SDValue MSP430TargetLowering::LowerOperation | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) | [virtual] |
LowerOperation - Provide custom lowering hooks for some operations.
Reimplemented from llvm::TargetLowering.
Definition at line 129 of file MSP430ISelLowering.cpp.
References llvm::ISD::BR_CC, llvm::ISD::ExternalSymbol, llvm::SDValue::getOpcode(), llvm::ISD::GlobalAddress, llvm_unreachable, LowerBR_CC(), LowerExternalSymbol(), LowerGlobalAddress(), LowerSELECT_CC(), LowerShifts(), LowerSIGN_EXTEND(), llvm::ISD::SELECT_CC, llvm::ISD::SHL, llvm::ISD::SIGN_EXTEND, llvm::ISD::SRA, and llvm::ISD::SRL.
| const char * MSP430TargetLowering::getTargetNodeName | ( | unsigned | Opcode | ) | const [virtual] |
getTargetNodeName - This method returns the name of a target specific DAG node.
Reimplemented from llvm::TargetLowering.
Definition at line 622 of file MSP430ISelLowering.cpp.
References llvm::MSP430ISD::BR_CC, llvm::MSP430ISD::CALL, llvm::MSP430ISD::CMP, llvm::MSP430ISD::RET_FLAG, llvm::MSP430ISD::RLA, llvm::MSP430ISD::RRA, llvm::MSP430ISD::RRC, llvm::MSP430ISD::SELECT_CC, and llvm::MSP430ISD::Wrapper.
getFunctionAlignment - Return the Log2 alignment of this function.
Implements llvm::TargetLowering.
Definition at line 146 of file MSP430ISelLowering.cpp.
References llvm::Function::hasFnAttr(), and llvm::Attribute::OptimizeForSize.
| SDValue MSP430TargetLowering::LowerShifts | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 478 of file MSP430ISelLowering.cpp.
References llvm::SDNode::getDebugLoc(), llvm::SDValue::getNode(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SDNode::getOperand(), llvm::SDValue::getValueType(), llvm::MSP430ISD::RLA, llvm::MSP430ISD::RRA, llvm::MSP430ISD::RRC, llvm::ISD::SHL, llvm::ISD::SRL, and VT.
Referenced by LowerOperation().
| SDValue MSP430TargetLowering::LowerGlobalAddress | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 510 of file MSP430ISelLowering.cpp.
References llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::TargetLowering::getPointerTy(), llvm::SelectionDAG::getTargetGlobalAddress(), GV, Offset, and llvm::MSP430ISD::Wrapper.
Referenced by LowerOperation().
| SDValue MSP430TargetLowering::LowerExternalSymbol | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 520 of file MSP430ISelLowering.cpp.
References llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::TargetLowering::getPointerTy(), llvm::SelectionDAG::getTargetExternalSymbol(), and llvm::MSP430ISD::Wrapper.
Referenced by LowerOperation().
| SDValue MSP430TargetLowering::LowerBR_CC | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 571 of file MSP430ISelLowering.cpp.
References llvm::MSP430ISD::BR_CC, llvm::MSP430::COND_INVALID, Dest, EmitCMP(), llvm::SelectionDAG::getConstant(), llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::MVT::i8, LHS, and RHS.
Referenced by LowerOperation().
| SDValue MSP430TargetLowering::LowerSELECT_CC | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 588 of file MSP430ISelLowering.cpp.
References llvm::MSP430::COND_INVALID, EmitCMP(), llvm::MVT::Flag, llvm::SelectionDAG::getConstant(), llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), llvm::MVT::i8, LHS, llvm::SmallVectorImpl< T >::push_back(), RHS, llvm::MSP430ISD::SELECT_CC, llvm::SmallVectorImpl< T >::size(), and VTs.
Referenced by LowerOperation().
| SDValue MSP430TargetLowering::LowerSIGN_EXTEND | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 609 of file MSP430ISelLowering.cpp.
References llvm::ISD::ANY_EXTEND, llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), llvm::SelectionDAG::getValueType(), llvm::SDValue::getValueType(), llvm::MVT::i16, llvm::ISD::SIGN_EXTEND_INREG, Val, and VT.
Referenced by LowerOperation().
| MachineBasicBlock * MSP430TargetLowering::EmitInstrWithCustomInserter | ( | MachineInstr * | MI, | |
| MachineBasicBlock * | BB | |||
| ) | const [virtual] |
Reimplemented from llvm::TargetLowering.
Definition at line 642 of file MSP430ISelLowering.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::MachineBasicBlock::addSuccessor(), llvm::BuildMI(), llvm::MachineFunction::CreateMachineBasicBlock(), llvm::MachineFunction::DeleteMachineInstr(), F, llvm::TargetInstrInfo::get(), llvm::MachineBasicBlock::getBasicBlock(), llvm::MachineInstr::getDebugLoc(), llvm::MachineOperand::getImm(), llvm::TargetMachine::getInstrInfo(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getReg(), llvm::TargetLowering::getTargetMachine(), llvm::MachineFunction::insert(), PHI, TII, and llvm::MachineBasicBlock::transferSuccessors().