mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
add ReplaceAllUsesWith, and a helper to implemented it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c3484c518
commit
6542d95060
@ -239,10 +239,17 @@ public:
|
|||||||
SDOperand Op1, SDOperand Op2, SDOperand Op3) {
|
SDOperand Op1, SDOperand Op2, SDOperand Op3) {
|
||||||
return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Op1, Op2, Op3);
|
return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Op1, Op2, Op3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
|
||||||
|
/// This can cause recursive merging of nodes in the DAG.
|
||||||
|
///
|
||||||
|
void ReplaceAllUsesWith(SDNode *From, SDNode *To);
|
||||||
|
|
||||||
void dump() const;
|
void dump() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void RemoveNodeFromCSEMaps(SDNode *N);
|
void RemoveNodeFromCSEMaps(SDNode *N);
|
||||||
|
SDNode *AddNonLeafNodeToCSEMaps(SDNode *N);
|
||||||
void DeleteNodeIfDead(SDNode *N, void *NodeSet);
|
void DeleteNodeIfDead(SDNode *N, void *NodeSet);
|
||||||
|
|
||||||
/// SimplifySetCC - Try to simplify a setcc built with the specified operands
|
/// SimplifySetCC - Try to simplify a setcc built with the specified operands
|
||||||
|
Loading…
x
Reference in New Issue
Block a user