llvm.org GIT mirror llvm / 7774be4
Teach DAGISelEmitter about zero_reg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37900 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 12 years ago
1 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
621621 } else if (R->getName() == "ptr_rc") {
622622 Other[0] = MVT::iPTR;
623623 return Other;
624 } else if (R->getName() == "node" || R->getName() == "srcvalue") {
624 } else if (R->getName() == "node" || R->getName() == "srcvalue" ||
625 R->getName() == "zero_reg") {
625626 // Placeholder.
626627 return Unknown;
627628 }
27102711 getEnumName(N->getTypeNum(0)) + ");");
27112712 NodeOps.push_back("Tmp" + utostr(ResNo));
27122713 return NodeOps;
2714 } else if (DI->getDef()->getName() == "zero_reg") {
2715 emitCode("SDOperand Tmp" + utostr(ResNo) +
2716 " = CurDAG->getRegister(0, " +
2717 getEnumName(N->getTypeNum(0)) + ");");
2718 NodeOps.push_back("Tmp" + utostr(ResNo));
2719 return NodeOps;
27132720 }
27142721 } else if (IntInit *II = dynamic_cast(N->getLeafValue())) {
27152722 unsigned ResNo = TmpNo++;