mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Teach DAGISelEmitter about zero_reg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37900 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8012b077dd
commit
7774be4a74
@ -622,7 +622,8 @@ static std::vector<unsigned char> getImplicitType(Record *R, bool NotRegisters,
|
||||
} else if (R->getName() == "ptr_rc") {
|
||||
Other[0] = MVT::iPTR;
|
||||
return Other;
|
||||
} else if (R->getName() == "node" || R->getName() == "srcvalue") {
|
||||
} else if (R->getName() == "node" || R->getName() == "srcvalue" ||
|
||||
R->getName() == "zero_reg") {
|
||||
// Placeholder.
|
||||
return Unknown;
|
||||
}
|
||||
@ -2711,6 +2712,12 @@ public:
|
||||
getEnumName(N->getTypeNum(0)) + ");");
|
||||
NodeOps.push_back("Tmp" + utostr(ResNo));
|
||||
return NodeOps;
|
||||
} else if (DI->getDef()->getName() == "zero_reg") {
|
||||
emitCode("SDOperand Tmp" + utostr(ResNo) +
|
||||
" = CurDAG->getRegister(0, " +
|
||||
getEnumName(N->getTypeNum(0)) + ");");
|
||||
NodeOps.push_back("Tmp" + utostr(ResNo));
|
||||
return NodeOps;
|
||||
}
|
||||
} else if (IntInit *II = dynamic_cast<IntInit*>(N->getLeafValue())) {
|
||||
unsigned ResNo = TmpNo++;
|
||||
|
Loading…
Reference in New Issue
Block a user