15 #ifndef LLVM_LIB_CODEGEN_SELECTIONDAG_INSTREMITTER_H 16 #define LLVM_LIB_CODEGEN_SELECTIONDAG_INSTREMITTER_H 24 class MachineInstrBuilder;
40 void EmitCopyFromReg(
SDNode *
Node,
unsigned ResNo,
41 bool IsClone,
bool IsCloned,
45 void CreateVirtualRegisters(
SDNode *Node,
48 bool IsClone,
bool IsCloned,
64 bool IsDebug,
bool IsClone,
bool IsCloned);
75 bool IsDebug,
bool IsClone,
bool IsCloned);
80 unsigned ConstrainForSubReg(
unsigned VReg,
unsigned SubIdx,
MVT VT,
81 bool isDivergent,
const DebugLoc &DL);
86 bool IsClone,
bool IsCloned);
92 void EmitCopyToRegClassNode(
SDNode *Node,
98 bool IsClone,
bool IsCloned);
103 static unsigned CountResults(
SDNode *Node);
118 EmitMachineNode(Node, IsClone, IsCloned, VRBaseMap);
120 EmitSpecialNode(Node, IsClone, IsCloned, VRBaseMap);
134 void EmitMachineNode(
SDNode *Node,
bool IsClone,
bool IsCloned,
136 void EmitSpecialNode(
SDNode *Node,
bool IsClone,
bool IsCloned,
This class represents lattice values for constants.
Describe properties that are true of each instruction in the target description file.
unsigned const TargetRegisterInfo * TRI
MachineBasicBlock * getBlock()
getBlock - Return the current basic block.
const HexagonInstrInfo * TII
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
TargetInstrInfo - Interface to description of machine instruction set.
unsigned const MachineRegisterInfo * MRI
#define LLVM_LIBRARY_VISIBILITY
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library...
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
bool isMachineOpcode() const
Test if this node has a post-isel opcode, directly corresponding to a MachineInstr opcode...
Represents one node in the SelectionDAG.
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
Representation of each machine instruction.
void EmitNode(SDNode *Node, bool IsClone, bool IsCloned, DenseMap< SDValue, unsigned > &VRBaseMap)
EmitNode - Generate machine code for a node and needed dependencies.
Holds the information from a dbg_label node through SDISel.
MachineBasicBlock::iterator getInsertPos()
getInsertPos - Return the current insertion position.
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...
Holds the information from a dbg_value node through SDISel.