mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Simplify SelectRoot's interface, and factor out some common code
from all targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -153,7 +153,7 @@ void ReplaceUses(SDNode *F, SDNode *T) DISABLE_INLINE {
|
||||
|
||||
/// SelectRoot - Top level entry to DAG instruction selector.
|
||||
/// Selects instructions starting at the root of the current DAG.
|
||||
SDValue SelectRoot(SDValue Root) {
|
||||
void SelectRoot() {
|
||||
SelectRootInit();
|
||||
unsigned NumBytes = (DAGSize + 7) / 8;
|
||||
ISelQueued = new unsigned char[NumBytes];
|
||||
@@ -197,7 +197,7 @@ SDValue SelectRoot(SDValue Root) {
|
||||
ISelQueued = NULL;
|
||||
delete[] ISelSelected;
|
||||
ISelSelected = NULL;
|
||||
return Dummy.getValue();
|
||||
CurDAG->setRoot(Dummy.getValue());
|
||||
}
|
||||
|
||||
#endif /* LLVM_CODEGEN_DAGISEL_HEADER_H */
|
||||
|
Reference in New Issue
Block a user