mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 04:24:22 +00:00
Add a new argument to ReplaceAllUsesWith to keep track of nodes deleted by
this method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23254 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -328,9 +328,16 @@ public:
|
|||||||
/// version if 'From' is known to have a single result, use the second
|
/// version if 'From' is known to have a single result, use the second
|
||||||
/// if you have two nodes with identical results, use the third otherwise.
|
/// if you have two nodes with identical results, use the third otherwise.
|
||||||
///
|
///
|
||||||
void ReplaceAllUsesWith(SDOperand From, SDOperand Op);
|
/// These methods all take an optional vector, which (if not null) is
|
||||||
void ReplaceAllUsesWith(SDNode *From, SDNode *To);
|
/// populated with any nodes that are deleted from the SelectionDAG, due to
|
||||||
void ReplaceAllUsesWith(SDNode *From, const std::vector<SDOperand> &To);
|
/// new equivalences that are discovered.
|
||||||
|
///
|
||||||
|
void ReplaceAllUsesWith(SDOperand From, SDOperand Op,
|
||||||
|
std::vector<SDNode*> *Deleted = 0);
|
||||||
|
void ReplaceAllUsesWith(SDNode *From, SDNode *To,
|
||||||
|
std::vector<SDNode*> *Deleted = 0);
|
||||||
|
void ReplaceAllUsesWith(SDNode *From, const std::vector<SDOperand> &To,
|
||||||
|
std::vector<SDNode*> *Deleted = 0);
|
||||||
|
|
||||||
|
|
||||||
/// DeleteNode - Remove the specified node from the system. This node must
|
/// DeleteNode - Remove the specified node from the system. This node must
|
||||||
@ -343,6 +350,7 @@ private:
|
|||||||
void RemoveNodeFromCSEMaps(SDNode *N);
|
void RemoveNodeFromCSEMaps(SDNode *N);
|
||||||
SDNode *AddNonLeafNodeToCSEMaps(SDNode *N);
|
SDNode *AddNonLeafNodeToCSEMaps(SDNode *N);
|
||||||
void DeleteNodeIfDead(SDNode *N, void *NodeSet);
|
void DeleteNodeIfDead(SDNode *N, void *NodeSet);
|
||||||
|
void DeleteNodeNotInCSEMaps(SDNode *N);
|
||||||
|
|
||||||
/// SimplifySetCC - Try to simplify a setcc built with the specified operands
|
/// SimplifySetCC - Try to simplify a setcc built with the specified operands
|
||||||
/// and cc. If unable to simplify it, return a null SDOperand.
|
/// and cc. If unable to simplify it, return a null SDOperand.
|
||||||
|
Reference in New Issue
Block a user