mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -221,6 +221,7 @@ public:
|
|||||||
/// specified node to have the specified return type, Target opcode, and
|
/// specified node to have the specified return type, Target opcode, and
|
||||||
/// operands. Note that target opcodes are stored as
|
/// operands. Note that target opcodes are stored as
|
||||||
/// ISD::BUILTIN_OP_END+TargetOpcode in the node opcode field.
|
/// ISD::BUILTIN_OP_END+TargetOpcode in the node opcode field.
|
||||||
|
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc);
|
||||||
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
|
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
|
||||||
SDOperand Op1);
|
SDOperand Op1);
|
||||||
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
|
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
|
||||||
|
@ -1881,6 +1881,12 @@ SDOperand SelectionDAG::getNode(unsigned Opcode,
|
|||||||
/// specified node to have the specified return type, Target opcode, and
|
/// specified node to have the specified return type, Target opcode, and
|
||||||
/// operands. Note that target opcodes are stored as
|
/// operands. Note that target opcodes are stored as
|
||||||
/// ISD::BUILTIN_OP_END+TargetOpcode in the node opcode field.
|
/// ISD::BUILTIN_OP_END+TargetOpcode in the node opcode field.
|
||||||
|
void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT,
|
||||||
|
unsigned TargetOpc) {
|
||||||
|
RemoveNodeFromCSEMaps(N);
|
||||||
|
N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc);
|
||||||
|
N->setValueTypes(VT);
|
||||||
|
}
|
||||||
void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT,
|
void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT,
|
||||||
unsigned TargetOpc, SDOperand Op1) {
|
unsigned TargetOpc, SDOperand Op1) {
|
||||||
RemoveNodeFromCSEMaps(N);
|
RemoveNodeFromCSEMaps(N);
|
||||||
|
Reference in New Issue
Block a user