LLVM API Documentation

llvm::PIC16TargetLowering Class Reference

#include <PIC16ISelLowering.h>

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

List of all members.

Public Member Functions

 PIC16TargetLowering (PIC16TargetMachine &TM)
virtual const char * getTargetNodeName (unsigned Opcode) const
virtual MVT getSetCCResultType (MVT ValType) const
 getSetCCResultType - Return the ISD::SETCC ValueType
SDValue LowerFORMAL_ARGUMENTS (SDValue Op, SelectionDAG &DAG)
SDValue LowerShift (SDValue Op, SelectionDAG &DAG)
SDValue LowerADD (SDValue Op, SelectionDAG &DAG)
SDValue LowerSUB (SDValue Op, SelectionDAG &DAG)
SDValue LowerBinOp (SDValue Op, SelectionDAG &DAG)
SDValue LowerCALL (SDValue Op, SelectionDAG &DAG)
SDValue LowerRET (SDValue Op, SelectionDAG &DAG)
SDValue LowerCallReturn (SDValue Op, SDValue Chain, SDValue FrameAddress, SDValue InFlag, SelectionDAG &DAG)
SDValue LowerCallArguments (SDValue Op, SDValue Chain, SDValue FrameAddress, SDValue InFlag, SelectionDAG &DAG)
SDValue LowerBR_CC (SDValue Op, SelectionDAG &DAG)
SDValue LowerSELECT_CC (SDValue Op, SelectionDAG &DAG)
SDValue getPIC16Cmp (SDValue LHS, SDValue RHS, unsigned OrigCC, SDValue &CC, SelectionDAG &DAG)
virtual MachineBasicBlock * EmitInstrWithCustomInserter (MachineInstr *MI, MachineBasicBlock *MBB)
virtual SDValue LowerOperation (SDValue Op, SelectionDAG &DAG)
virtual void ReplaceNodeResults (SDNode *N, SmallVectorImpl< SDValue > &Results, SelectionDAG &DAG)
virtual void LowerOperationWrapper (SDNode *N, SmallVectorImpl< SDValue > &Results, SelectionDAG &DAG)
SDValue ExpandStore (SDNode *N, SelectionDAG &DAG)
SDValue ExpandLoad (SDNode *N, SelectionDAG &DAG)
SDValue ExpandGlobalAddress (SDNode *N, SelectionDAG &DAG)
SDValue ExpandExternalSymbol (SDNode *N, SelectionDAG &DAG)
SDValue ExpandFrameIndex (SDNode *N, SelectionDAG &DAG)
SDValue PerformDAGCombine (SDNode *N, DAGCombinerInfo &DCI) const
SDValue PerformPIC16LoadCombine (SDNode *N, DAGCombinerInfo &DCI) const


Detailed Description

Definition at line 68 of file PIC16ISelLowering.h.


Constructor & Destructor Documentation

PIC16TargetLowering::PIC16TargetLowering ( PIC16TargetMachine &  TM  )  [explicit]


Member Function Documentation

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

MVT PIC16TargetLowering::getSetCCResultType ( MVT  ValType  )  const [virtual]

getSetCCResultType - Return the ISD::SETCC ValueType

Reimplemented from llvm::TargetLowering.

Definition at line 155 of file PIC16ISelLowering.cpp.

References llvm::MVT::i8.

SDValue PIC16TargetLowering::LowerFORMAL_ARGUMENTS ( SDValue  Op,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerShift ( SDValue  Op,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerADD ( SDValue  Op,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerSUB ( SDValue  Op,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerBinOp ( SDValue  Op,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerCALL ( SDValue  Op,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerRET ( SDValue  Op,
SelectionDAG &  DAG 
)

Definition at line 968 of file PIC16ISelLowering.cpp.

Referenced by LowerOperation().

SDValue PIC16TargetLowering::LowerCallReturn ( SDValue  Op,
SDValue  Chain,
SDValue  FrameAddress,
SDValue  InFlag,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerCallArguments ( SDValue  Op,
SDValue  Chain,
SDValue  FrameAddress,
SDValue  InFlag,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerBR_CC ( SDValue  Op,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::LowerSELECT_CC ( SDValue  Op,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::getPIC16Cmp ( SDValue  LHS,
SDValue  RHS,
unsigned  OrigCC,
SDValue &  CC,
SelectionDAG &  DAG 
)

MachineBasicBlock * PIC16TargetLowering::EmitInstrWithCustomInserter ( MachineInstr *  MI,
MachineBasicBlock *  MBB 
) [virtual]

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 797 of file PIC16ISelLowering.cpp.

References llvm::ISD::ADD, llvm::ISD::ADDC, llvm::ISD::ADDE, llvm::ISD::AND, llvm::ISD::BR_CC, llvm::ISD::CALL, ExpandLoad(), ExpandStore(), llvm::ISD::FORMAL_ARGUMENTS, llvm::SDValue::getNode(), llvm::SDValue::getOpcode(), llvm::ISD::LOAD, LowerADD(), LowerBinOp(), LowerBR_CC(), LowerCALL(), LowerFORMAL_ARGUMENTS(), LowerRET(), LowerSELECT_CC(), LowerShift(), LowerSUB(), llvm::ISD::OR, llvm::ISD::RET, 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 264 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 767 of file PIC16ISelLowering.cpp.

References llvm::ISD::CALL, ExpandLoad(), llvm::ISD::FORMAL_ARGUMENTS, llvm::SDValue::getNode(), llvm::SDNode::getNumValues(), llvm::SDValue::getOpcode(), llvm::ISD::LOAD, LowerCALL(), LowerFORMAL_ARGUMENTS(), LowerOperation(), and llvm::SmallVectorImpl< T >::push_back().

SDValue PIC16TargetLowering::ExpandStore ( SDNode *  N,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::ExpandLoad ( SDNode *  N,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::ExpandGlobalAddress ( SDNode *  N,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::ExpandExternalSymbol ( SDNode *  N,
SelectionDAG &  DAG 
)

SDValue PIC16TargetLowering::ExpandFrameIndex ( SDNode *  N,
SelectionDAG &  DAG 
)

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 1203 of file PIC16ISelLowering.cpp.

References llvm::SDNode::getOpcode(), PerformPIC16LoadCombine(), and llvm::PIC16ISD::PIC16Load.

SDValue PIC16TargetLowering::PerformPIC16LoadCombine ( SDNode *  N,
DAGCombinerInfo &  DCI 
) const


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