LLVM API Documentation
#include <PIC16ISelLowering.h>
Definition at line 77 of file PIC16ISelLowering.h.
| PIC16TargetLowering::PIC16TargetLowering | ( | PIC16TargetMachine & | TM | ) | [explicit] |
Definition at line 145 of file PIC16ISelLowering.cpp.
References llvm::ISD::ADD, llvm::RTLIB::ADD_F32, llvm::ISD::ADDC, llvm::ISD::ADDE, llvm::TargetLowering::addRegisterClass(), llvm::ISD::AND, llvm::ISD::BR_CC, llvm::ISD::BRCOND, llvm::ISD::BRIND, llvm::TargetLowering::computeRegisterProperties(), llvm::RTLIB::COS_F32, llvm::TargetLowering::Custom, llvm::RTLIB::DIV_F32, llvm::TargetLowering::Expand, llvm::ISD::ExternalSymbol, llvm::RTLIB::FPTOSINT_F32_I16, llvm::RTLIB::FPTOSINT_F32_I32, llvm::RTLIB::FPTOSINT_F32_I8, llvm::RTLIB::FPTOUINT_F32_I16, llvm::RTLIB::FPTOUINT_F32_I32, llvm::RTLIB::FPTOUINT_F32_I8, llvm::ISD::FrameIndex, getIntrinsicName(), getStdLibCallName(), llvm::TargetMachine::getSubtarget(), llvm::ISD::GlobalAddress, llvm::MVT::i1, llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, llvm::TargetLowering::Legal, llvm::ISD::LOAD, llvm::RTLIB::MEMCPY, llvm::RTLIB::MEMMOVE, llvm::RTLIB::MEMSET, llvm::ISD::MUL, llvm::RTLIB::MUL_F32, llvm::RTLIB::MUL_I16, llvm::RTLIB::MUL_I32, llvm::PIC16ISD::MUL_I8, llvm::ISD::MULHS, llvm::ISD::MULHU, llvm::RTLIB::O_F32, llvm::RTLIB::OEQ_F32, llvm::RTLIB::OGE_F32, llvm::RTLIB::OGT_F32, llvm::RTLIB::OLE_F32, llvm::RTLIB::OLT_F32, llvm::ISD::OR, llvm::MVT::Other, llvm::ISD::ROTL, llvm::ISD::ROTR, llvm::RTLIB::SDIV_I16, llvm::RTLIB::SDIV_I32, llvm::ISD::SELECT, llvm::ISD::SELECT_CC, llvm::ISD::SETCC, llvm::TargetLowering::setCmpLibcallCC(), llvm::ISD::SETEQ, llvm::TargetLowering::setLibcallName(), llvm::ISD::SETNE, llvm::TargetLowering::setOperationAction(), llvm::TargetLowering::setShiftAmountType(), llvm::TargetLowering::setTruncStoreAction(), llvm::ISD::SHL, llvm::RTLIB::SHL_I16, llvm::RTLIB::SHL_I32, llvm::ISD::SHL_PARTS, llvm::ISD::SIGN_EXTEND_INREG, llvm::RTLIB::SIN_F32, llvm::RTLIB::SINTTOFP_I32_F32, llvm::PIC16ISD::SLL_I8, llvm::ISD::SMUL_LOHI, llvm::ISD::SRA, llvm::RTLIB::SRA_I16, llvm::RTLIB::SRA_I32, llvm::PIC16ISD::SRA_I8, llvm::ISD::SRA_PARTS, llvm::RTLIB::SREM_I16, llvm::RTLIB::SREM_I32, llvm::ISD::SRL, llvm::RTLIB::SRL_I16, llvm::RTLIB::SRL_I32, llvm::PIC16ISD::SRL_I8, llvm::ISD::SRL_PARTS, llvm::ISD::STORE, llvm::ISD::SUB, llvm::RTLIB::SUB_F32, llvm::ISD::SUBC, llvm::ISD::SUBE, llvm::RTLIB::UDIV_I16, llvm::RTLIB::UDIV_I32, llvm::RTLIB::UINTTOFP_I32_F32, llvm::ISD::UMUL_LOHI, llvm::RTLIB::UNE_F32, llvm::RTLIB::UO_F32, llvm::RTLIB::UREM_I16, llvm::RTLIB::UREM_I32, and llvm::ISD::XOR.
| const char * PIC16TargetLowering::getTargetNodeName | ( | unsigned | Opcode | ) | const [virtual] |
getTargetNodeName - This method returns the name of a target specific DAG node.
Reimplemented from llvm::TargetLowering.
Definition at line 420 of file PIC16ISelLowering.cpp.
References llvm::PIC16ISD::Banksel, llvm::PIC16ISD::BCF, llvm::PIC16ISD::BRCOND, llvm::PIC16ISD::CALL, llvm::PIC16ISD::CALLW, llvm::PIC16ISD::Dummy, llvm::PIC16ISD::Hi, llvm::PIC16ISD::Lo, llvm::PIC16ISD::LRLF, llvm::PIC16ISD::LSLF, llvm::PIC16ISD::MTHI, llvm::PIC16ISD::MTLO, llvm::PIC16ISD::MTPCLATH, llvm::PIC16ISD::PIC16Connect, llvm::PIC16ISD::PIC16LdArg, llvm::PIC16ISD::PIC16LdWF, llvm::PIC16ISD::PIC16Load, llvm::PIC16ISD::PIC16Store, llvm::PIC16ISD::PIC16StWF, llvm::PIC16ISD::RET, llvm::PIC16ISD::RLF, llvm::PIC16ISD::RRF, llvm::PIC16ISD::SELECT_ICC, and llvm::PIC16ISD::SUBCC.
| MVT::SimpleValueType PIC16TargetLowering::getSetCCResultType | ( | EVT | ValType | ) | const [virtual] |
getSetCCResultType - Return the ISD::SETCC ValueType
Reimplemented from llvm::TargetLowering.
Definition at line 369 of file PIC16ISelLowering.cpp.
References llvm::MVT::i8.
| SDValue PIC16TargetLowering::LowerShift | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 949 of file PIC16ISelLowering.cpp.
References llvm::SDValue::getNode(), llvm::SDValue::getOperand(), llvm::SDNode::getOperand(), llvm::SDValue::getValueType(), llvm::MVT::i8, llvm::ISD::SHL, llvm::PIC16ISD::SLL_I8, llvm::ISD::SRA, llvm::PIC16ISD::SRA_I8, llvm::ISD::SRL, and llvm::PIC16ISD::SRL_I8.
Referenced by LowerOperation().
| SDValue PIC16TargetLowering::LowerMUL | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 979 of file PIC16ISelLowering.cpp.
References llvm::SDValue::getNode(), llvm::SDValue::getValueType(), llvm::MVT::i8, and llvm::PIC16ISD::MUL_I8.
Referenced by LowerOperation().
| SDValue PIC16TargetLowering::LowerADD | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 1522 of file PIC16ISelLowering.cpp.
References llvm::ISD::ADDC, llvm::ISD::ADDE, llvm::MVT::Flag, llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), and llvm::MVT::i8.
Referenced by LowerOperation().
| SDValue PIC16TargetLowering::LowerSUB | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 1551 of file PIC16ISelLowering.cpp.
References llvm::MVT::Flag, llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), llvm::SDValue::hasOneUse(), llvm::MVT::i8, llvm::ISD::SUB, llvm::ISD::SUBC, and llvm::ISD::SUBE.
Referenced by LowerOperation().
| SDValue PIC16TargetLowering::LowerBinOp | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 1501 of file PIC16ISelLowering.cpp.
References llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), and llvm::MVT::i8.
Referenced by LowerOperation().
| SDValue PIC16TargetLowering::LowerDirectCallReturn | ( | SDValue | RetLabel, | |
| SDValue | Chain, | |||
| SDValue | InFlag, | |||
| const SmallVectorImpl< ISD::InputArg > & | Ins, | |||
| DebugLoc | dl, | |||
| SelectionDAG & | DAG, | |||
| SmallVectorImpl< SDValue > & | InVals | |||
| ) |
Definition at line 1209 of file PIC16ISelLowering.cpp.
References llvm::MVT::Flag, getChain(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), getOutFlag(), llvm::SelectionDAG::getVTList(), llvm::MVT::i8, llvm::MVT::Other, llvm::PIC16ISD::PIC16LdWF, llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size().
Referenced by LowerCall().
| SDValue PIC16TargetLowering::LowerIndirectCallReturn | ( | SDValue | Chain, | |
| SDValue | InFlag, | |||
| SDValue | DataAddr_Lo, | |||
| SDValue | DataAddr_Hi, | |||
| const SmallVectorImpl< ISD::InputArg > & | Ins, | |||
| DebugLoc | dl, | |||
| SelectionDAG & | DAG, | |||
| SmallVectorImpl< SDValue > & | InVals | |||
| ) |
Definition at line 1181 of file PIC16ISelLowering.cpp.
References llvm::MVT::Flag, getChain(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), getOutFlag(), llvm::SelectionDAG::getVTList(), llvm::MVT::i8, llvm::MVT::Other, llvm::PIC16ISD::PIC16LdWF, llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size().
Referenced by LowerCall().
| SDValue PIC16TargetLowering::LowerDirectCallArguments | ( | SDValue | ArgLabel, | |
| SDValue | Chain, | |||
| SDValue | InFlag, | |||
| const SmallVectorImpl< ISD::OutputArg > & | Outs, | |||
| DebugLoc | dl, | |||
| SelectionDAG & | DAG | |||
| ) |
Definition at line 1126 of file PIC16ISelLowering.cpp.
References Arg, llvm::SmallVectorImpl< T >::clear(), llvm::MVT::Flag, getChain(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), getOutFlag(), llvm::EVT::getSizeInBits(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), llvm::MVT::i8, llvm::MVT::Other, llvm::PIC16ISD::PIC16StWF, and llvm::SmallVectorImpl< T >::size().
Referenced by LowerCall().
| SDValue PIC16TargetLowering::LowerIndirectCallArguments | ( | SDValue | Chain, | |
| SDValue | InFlag, | |||
| SDValue | DataAddr_Lo, | |||
| SDValue | DataAddr_Hi, | |||
| const SmallVectorImpl< ISD::OutputArg > & | Outs, | |||
| const SmallVectorImpl< ISD::InputArg > & | Ins, | |||
| DebugLoc | dl, | |||
| SelectionDAG & | DAG | |||
| ) |
Definition at line 1087 of file PIC16ISelLowering.cpp.
References Arg, llvm::SmallVectorImpl< T >::clear(), llvm::MVT::Flag, getChain(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), getOutFlag(), llvm::SelectionDAG::getVTList(), llvm::MVT::i8, llvm::MVT::Other, llvm::PIC16ISD::PIC16StWF, and llvm::SmallVectorImpl< T >::size().
Referenced by LowerCall().
| SDValue PIC16TargetLowering::LowerBR_CC | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 1862 of file PIC16ISelLowering.cpp.
References llvm::PIC16ISD::BRCOND, Dest, llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), getPIC16Cmp(), llvm::SDValue::getValue(), IntCCToPIC16CC(), LHS, LookThroughSetCC(), llvm::MVT::Other, and RHS.
Referenced by LowerOperation().
| SDValue PIC16TargetLowering::LowerSELECT_CC | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 1780 of file PIC16ISelLowering.cpp.
References llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), getPIC16Cmp(), llvm::SDValue::getValue(), llvm::SDValue::getValueType(), IntCCToPIC16CC(), LHS, LookThroughSetCC(), RHS, and llvm::PIC16ISD::SELECT_ICC.
Referenced by LowerOperation().
| SDValue PIC16TargetLowering::getPIC16Cmp | ( | SDValue | LHS, | |
| SDValue | RHS, | |||
| unsigned | OrigCC, | |||
| SDValue & | CC, | |||
| SelectionDAG & | DAG, | |||
| DebugLoc | dl | |||
| ) |
Definition at line 1714 of file PIC16ISelLowering.cpp.
References llvm::ISD::Constant, llvm::MVT::Flag, llvm::PIC16CC::GE, llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SelectionDAG::getVTList(), llvm::PIC16CC::GT, llvm::SDValue::hasOneUse(), llvm::MVT::i8, llvm::isSignedComparison(), llvm::PIC16CC::LE, llvm::PIC16CC::LT, llvm::PIC16ISD::SUBCC, llvm::PIC16CC::UGE, llvm::PIC16CC::UGT, llvm::PIC16CC::ULE, llvm::PIC16CC::ULT, VTs, and llvm::ISD::XOR.
Referenced by LowerBR_CC(), and LowerSELECT_CC().
| MachineBasicBlock * PIC16TargetLowering::EmitInstrWithCustomInserter | ( | MachineInstr * | MI, | |
| MachineBasicBlock * | MBB | |||
| ) | const [virtual] |
Reimplemented from llvm::TargetLowering.
Definition at line 1807 of file PIC16ISelLowering.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::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getReg(), llvm::TargetLowering::getTargetMachine(), llvm::MachineFunction::insert(), PHI, TII, and llvm::MachineBasicBlock::transferSuccessors().
| SDValue PIC16TargetLowering::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 1019 of file PIC16ISelLowering.cpp.
References llvm::ISD::ADD, llvm::ISD::ADDC, llvm::ISD::ADDE, llvm::ISD::AND, llvm::ISD::BR_CC, ExpandLoad(), ExpandStore(), llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::ISD::LOAD, LowerADD(), LowerBinOp(), LowerBR_CC(), LowerMUL(), LowerSELECT_CC(), LowerShift(), LowerSUB(), llvm::ISD::MUL, llvm::ISD::OR, llvm::ISD::SELECT_CC, llvm::ISD::SHL, llvm::ISD::SRA, llvm::ISD::SRL, llvm::ISD::STORE, llvm::ISD::SUB, llvm::ISD::SUBC, llvm::ISD::SUBE, and llvm::ISD::XOR.
Referenced by LowerOperationWrapper().
| void PIC16TargetLowering::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 450 of file PIC16ISelLowering.cpp.
References llvm::ISD::ADD, ExpandExternalSymbol(), ExpandFrameIndex(), ExpandGlobalAddress(), ExpandLoad(), ExpandStore(), llvm::ISD::ExternalSymbol, llvm::ISD::FrameIndex, llvm::SDNode::getOpcode(), llvm::ISD::GlobalAddress, llvm::ISD::LOAD, PopulateResults(), llvm::SmallVectorImpl< T >::push_back(), and llvm::ISD::STORE.
| void PIC16TargetLowering::LowerOperationWrapper | ( | SDNode * | N, | |
| SmallVectorImpl< SDValue > & | Results, | |||
| SelectionDAG & | DAG | |||
| ) | [virtual] |
LowerOperationWrapper - This callback is invoked by the type legalizer to legalize nodes with an illegal operand type but legal result types. It replaces the LowerOperation callback in the type Legalizer. The reason we can not do away with LowerOperation entirely is that LegalizeDAG isn't yet ready to use this callback. TODO: Consider merging with ReplaceNodeResults. 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. The default implementation calls LowerOperation.
Reimplemented from llvm::TargetLowering.
Definition at line 993 of file PIC16ISelLowering.cpp.
References ExpandLoad(), llvm::SDValue::getNode(), llvm::SDNode::getNumValues(), llvm::SDValue::getOpcode(), llvm::ISD::LOAD, LowerOperation(), and llvm::SmallVectorImpl< T >::push_back().
| SDValue PIC16TargetLowering::LowerFormalArguments | ( | SDValue | Chain, | |
| unsigned | CallConv, | |||
| bool | isVarArg, | |||
| const SmallVectorImpl< ISD::InputArg > & | Ins, | |||
| DebugLoc | dl, | |||
| SelectionDAG & | DAG, | |||
| SmallVectorImpl< SDValue > & | InVals | |||
| ) | [virtual] |
LowerFormalArguments - This hook must be implemented to lower the incoming (formal) arguments, described by the Ins array, into the specified DAG. The implementation should fill in the InVals array with legal-type argument values, and return the resulting token chain value.
Reimplemented from llvm::TargetLowering.
Definition at line 1597 of file PIC16ISelLowering.cpp.
References llvm::createESName(), F, llvm::PAN::getArgsLabel(), getChain(), llvm::SelectionDAG::getConstant(), llvm::MachineFunction::getFunction(), llvm::SelectionDAG::getMachineFunction(), llvm::Value::getName(), llvm::SelectionDAG::getNode(), llvm::SelectionDAG::getTargetExternalSymbol(), llvm::SelectionDAG::getVTList(), llvm::MVT::i8, InitReservedFrameCount(), llvm::MVT::Other, llvm::PIC16ISD::PIC16LdArg, llvm::SmallVectorImpl< T >::push_back(), ResetTmpOffsetMap(), llvm::SmallVectorImpl< T >::size(), and VTs.
| SDValue PIC16TargetLowering::LowerCall | ( | SDValue | Chain, | |
| SDValue | Callee, | |||
| unsigned | CallConv, | |||
| bool | isVarArg, | |||
| bool | isTailCall, | |||
| const SmallVectorImpl< ISD::OutputArg > & | Outs, | |||
| const SmallVectorImpl< ISD::InputArg > & | Ins, | |||
| DebugLoc | dl, | |||
| SelectionDAG & | DAG, | |||
| SmallVectorImpl< SDValue > & | InVals | |||
| ) | [virtual] |
LowerCall - This hook must be implemented to lower calls into the the specified DAG. The outgoing arguments to the call are described by the Outs array, and the values to be returned by the call are described by the Ins array. The implementation should fill in the InVals array with legal-type return values from the call, and return the resulting token chain value.
The isTailCall flag here is normative. If it is true, the implementation must emit a tail call. The IsEligibleForTailCallOptimization hook should be used to catch cases that cannot be handled.
Reimplemented from llvm::TargetLowering.
Definition at line 1341 of file PIC16ISelLowering.cpp.
References llvm::PIC16ISD::CALL, llvm::createESName(), llvm::dyn_cast(), llvm::MVT::Flag, G, llvm::PAN::getArgsLabel(), llvm::SelectionDAG::getCALLSEQ_END(), llvm::SelectionDAG::getCALLSEQ_START(), getChain(), llvm::SelectionDAG::getConstant(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), getOutFlag(), llvm::PAN::getRetvalLabel(), llvm::ExternalSymbolSDNode::getSymbol(), llvm::SelectionDAG::getTargetExternalSymbol(), llvm::SelectionDAG::getTargetGlobalAddress(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), GV, llvm::MVT::i16, llvm::MVT::i8, LowerDirectCallArguments(), LowerDirectCallReturn(), LowerIndirectCallArguments(), LowerIndirectCallReturn(), llvm::PIC16ISD::MTPCLATH, llvm::MVT::Other, llvm::PIC16ISD::PIC16Connect, and llvm::SmallVectorImpl< T >::size().
| SDValue PIC16TargetLowering::LowerReturn | ( | SDValue | Chain, | |
| unsigned | CallConv, | |||
| bool | isVarArg, | |||
| const SmallVectorImpl< ISD::OutputArg > & | Outs, | |||
| DebugLoc | dl, | |||
| SelectionDAG & | DAG | |||
| ) | [virtual] |
LowerReturn - This hook must be implemented to lower outgoing return values, described by the Outs array, into the specified DAG. The implementation should return the resulting token chain value.
Reimplemented from llvm::TargetLowering.
Definition at line 1249 of file PIC16ISelLowering.cpp.
References llvm::createESName(), F, llvm::SelectionDAG::getConstant(), llvm::PAN::getFrameLabel(), llvm::MachineFunction::getFunction(), llvm::SelectionDAG::getMachineFunction(), llvm::Value::getName(), llvm::SelectionDAG::getNode(), llvm::SelectionDAG::getTargetExternalSymbol(), llvm::SelectionDAG::getVTList(), llvm::MVT::i8, llvm::MVT::Other, llvm::PIC16ISD::PIC16Store, llvm::PIC16ISD::RET, llvm::SmallVectorImpl< T >::size(), and VTs.
| SDValue PIC16TargetLowering::ExpandStore | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 514 of file PIC16ISelLowering.cpp.
References llvm::ISD::ADD, llvm::StoreSDNode::getBasePtr(), getChain(), llvm::MemSDNode::getChain(), llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOpcode(), llvm::SDValue::getOperand(), llvm::SelectionDAG::getStore(), llvm::StoreSDNode::getValue(), llvm::SDValue::getValueType(), llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, llvm::MVT::Other, llvm::PIC16ISD::PIC16Store, Src, and llvm::ISD::TokenFactor.
Referenced by LowerOperation(), and ReplaceNodeResults().
| SDValue PIC16TargetLowering::ExpandLoad | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 834 of file PIC16ISelLowering.cpp.
References llvm::ISD::BUILD_PAIR, llvm::dyn_cast(), llvm::LoadSDNode::getBasePtr(), getChain(), llvm::MemSDNode::getChain(), llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::MemSDNode::getMemoryVT(), llvm::SelectionDAG::getNode(), llvm::EVT::getSizeInBits(), llvm::SDNode::getValueType(), llvm::SelectionDAG::getVTList(), llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i8, llvm::ISD::isEXTLoad(), llvm::ISD::isNON_EXTLoad(), llvm::ISD::isSEXTLoad(), llvm::ISD::isZEXTLoad(), llvm::Load, llvm::ISD::MERGE_VALUES, llvm::MVT::Other, llvm::PIC16ISD::PIC16Load, llvm::ISD::SRA, llvm::PPCISD::SRA, llvm::ISD::TokenFactor, and VT.
Referenced by LowerOperation(), LowerOperationWrapper(), and ReplaceNodeResults().
| SDValue PIC16TargetLowering::ExpandGlobalAddress | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 639 of file PIC16ISelLowering.cpp.
References llvm::ISD::BUILD_PAIR, llvm::dyn_cast(), G, llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::GlobalAddressSDNode::getGlobal(), llvm::SelectionDAG::getNode(), llvm::GlobalAddressSDNode::getOffset(), llvm::SelectionDAG::getTargetGlobalAddress(), llvm::PIC16ISD::Hi, llvm::SPISD::Hi, llvm::MVT::i16, llvm::MVT::i8, llvm::PIC16ISD::Lo, llvm::SPISD::Lo, and Offset.
Referenced by ReplaceNodeResults().
| SDValue PIC16TargetLowering::ExpandExternalSymbol | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 624 of file PIC16ISelLowering.cpp.
References llvm::ISD::BUILD_PAIR, llvm::dyn_cast(), ES, llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::ExternalSymbolSDNode::getSymbol(), llvm::SelectionDAG::getTargetExternalSymbol(), llvm::PIC16ISD::Hi, llvm::SPISD::Hi, llvm::MVT::i16, llvm::MVT::i8, llvm::PIC16ISD::Lo, llvm::SPISD::Lo, and Offset.
Referenced by ReplaceNodeResults().
| SDValue PIC16TargetLowering::ExpandFrameIndex | ( | SDNode * | N, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 479 of file PIC16ISelLowering.cpp.
References llvm::ISD::BUILD_PAIR, llvm::dyn_cast(), ES, FI, llvm::SelectionDAG::getConstant(), llvm::SDNode::getDebugLoc(), llvm::MachineFunction::getFunction(), llvm::SelectionDAG::getMachineFunction(), llvm::Value::getName(), llvm::SelectionDAG::getNode(), llvm::SDNode::getValueType(), llvm::PIC16ISD::Hi, llvm::SPISD::Hi, llvm::MVT::i16, llvm::MVT::i8, llvm::PIC16ISD::Lo, llvm::SPISD::Lo, MF, Name, and Offset.
Referenced by ReplaceNodeResults().
| SDValue PIC16TargetLowering::PerformDAGCombine | ( | SDNode * | N, | |
| DAGCombinerInfo & | DCI | |||
| ) | const [virtual] |
PerformDAGCombine - This method will be invoked for all target nodes and for any target-independent nodes that the target has registered with invoke it for.
The semantics are as follows: Return Value: SDValue.Val == 0 - No change was made SDValue.Val == N - N was replaced, is dead, and is already handled. otherwise - N should be replaced by the returned Operand.
In addition, methods provided by DAGCombinerInfo may be used to perform more complex transformations.
Reimplemented from llvm::TargetLowering.
Definition at line 1666 of file PIC16ISelLowering.cpp.
References llvm::SDNode::getOpcode(), PerformPIC16LoadCombine(), PerformStoreCombine(), llvm::PIC16ISD::PIC16Load, and llvm::ISD::STORE.
| SDValue PIC16TargetLowering::PerformPIC16LoadCombine | ( | SDNode * | N, | |
| DAGCombinerInfo & | DCI | |||
| ) | const |
Definition at line 1637 of file PIC16ISelLowering.cpp.
References llvm::TargetLowering::DAGCombinerInfo::DAG, llvm::SDNode::getOperand(), llvm::SDNode::hasNUsesOfValue(), and llvm::SelectionDAG::ReplaceAllUsesOfValueWith().
Referenced by PerformDAGCombine().
| SDValue PIC16TargetLowering::PerformStoreCombine | ( | SDNode * | N, | |
| DAGCombinerInfo & | DCI | |||
| ) | const |
Definition at line 322 of file PIC16ISelLowering.cpp.
Referenced by llvm::PIC16InstrInfo::loadRegFromStackSlot(), and llvm::PIC16InstrInfo::storeRegToStackSlot().
| void llvm::PIC16TargetLowering::ResetTmpOffsetMap | ( | ) | [inline] |
Definition at line 169 of file PIC16ISelLowering.h.
References SetTmpSize().
Referenced by LowerFormalArguments().
| void PIC16TargetLowering::InitReservedFrameCount | ( | const Function * | F | ) |
Definition at line 1581 of file PIC16ISelLowering.cpp.
References llvm::Function::arg_size(), llvm::Function::getReturnType(), llvm::Type::getTypeID(), and llvm::Type::VoidTyID.
Referenced by LowerFormalArguments().
| unsigned llvm::PIC16TargetLowering::GetTmpSize | ( | ) | [inline] |
Definition at line 173 of file PIC16ISelLowering.h.
| void llvm::PIC16TargetLowering::SetTmpSize | ( | unsigned | Size | ) | [inline] |
| virtual unsigned llvm::PIC16TargetLowering::getFunctionAlignment | ( | const Function * | ) | const [inline, virtual] |
getFunctionAlignment - Return the Log2 alignment of this function.
Implements llvm::TargetLowering.
Definition at line 177 of file PIC16ISelLowering.h.