LLVM API Documentation
#include <InstrEmitter.h>
Public Member Functions | |
MachineInstr * | EmitDbgValue (SDDbgValue *SD, DenseMap< SDValue, unsigned > &VRBaseMap) |
void | EmitNode (SDNode *Node, bool IsClone, bool IsCloned, DenseMap< SDValue, unsigned > &VRBaseMap) |
MachineBasicBlock * | getBlock () |
getBlock - Return the current basic block. | |
MachineBasicBlock::iterator | getInsertPos () |
getInsertPos - Return the current insertion position. | |
InstrEmitter (MachineBasicBlock *mbb, MachineBasicBlock::iterator insertpos) | |
Static Public Member Functions | |
static unsigned | CountResults (SDNode *Node) |
Definition at line 29 of file InstrEmitter.h.
InstrEmitter::InstrEmitter | ( | MachineBasicBlock * | mbb, |
MachineBasicBlock::iterator | insertpos | ||
) |
InstrEmitter - Construct an InstrEmitter and set it to start inserting at the given position in the given block.
Definition at line 1020 of file InstrEmitter.cpp.
unsigned InstrEmitter::CountResults | ( | SDNode * | Node | ) | [static] |
CountResults - The results of target nodes have register or immediate operands first, then an optional chain, and optional flag operands (which do not go into the machine instrs.)
CountResults - The results of target nodes have register or immediate operands first, then an optional chain, and optional glue operands (which do not go into the resulting MachineInstr).
Definition at line 45 of file InstrEmitter.cpp.
References llvm::SDNode::getNumValues(), llvm::SDNode::getValueType(), llvm::MVT::Glue, N, and llvm::MVT::Other.
MachineInstr * InstrEmitter::EmitDbgValue | ( | SDDbgValue * | SD, |
DenseMap< SDValue, unsigned > & | VRBaseMap | ||
) |
EmitDbgValue - Generate machine instruction for a dbg_value node.
Definition at line 649 of file InstrEmitter.cpp.
References llvm::MachineInstrBuilder::addCImm(), llvm::MachineInstrBuilder::addFPImm(), llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addMetadata(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::SDDbgValue::CONST, llvm::TargetOpcode::DBG_VALUE, llvm::RegState::Debug, llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::find(), llvm::SDDbgValue::FRAMEIX, llvm::MCInstrInfo::get(), llvm::SDDbgValue::getConst(), llvm::SDDbgValue::getDebugLoc(), llvm::SDDbgValue::getFrameIx(), llvm::SDDbgValue::getKind(), llvm::SDDbgValue::getMDPtr(), llvm::SDValue::getNumOperands(), llvm::SDDbgValue::getOffset(), llvm::SDDbgValue::getResNo(), llvm::SDDbgValue::getSDNode(), llvm::SDDbgValue::isIndirect(), and llvm::SDDbgValue::SDNODE.
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule(), and ProcessSDDbgValues().
void llvm::InstrEmitter::EmitNode | ( | SDNode * | Node, |
bool | IsClone, | ||
bool | IsCloned, | ||
DenseMap< SDValue, unsigned > & | VRBaseMap | ||
) | [inline] |
EmitNode - Generate machine code for a node and needed dependencies.
Definition at line 119 of file InstrEmitter.h.
References llvm::SDNode::isMachineOpcode().
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule().
MachineBasicBlock* llvm::InstrEmitter::getBlock | ( | ) | [inline] |
getBlock - Return the current basic block.
Definition at line 128 of file InstrEmitter.h.
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule(), ProcessSDDbgValues(), and ProcessSourceNode().
getInsertPos - Return the current insertion position.
Definition at line 131 of file InstrEmitter.h.
Referenced by llvm::ScheduleDAGSDNodes::EmitSchedule(), ProcessSDDbgValues(), and ProcessSourceNode().