llvm.org GIT mirror llvm / 9c5d4de
silence warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31392 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
2 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
7878 };
7979 }
8080
81 static const char *SPARCCondCodeToString(SPCC::CondCodes CC) {
81 inline static const char *SPARCCondCodeToString(SPCC::CondCodes CC) {
8282 switch (CC) {
8383 default: assert(0 && "Unknown condition code");
8484 case SPCC::ICC_NE: return "ne";
22582258 unsigned OpNo = 0;
22592259 bool NodeHasChain = NodeHasProperty (N, SDNPHasChain, ISE);
22602260 bool HasChain = PatternHasProperty(N, SDNPHasChain, ISE);
2261 bool HasOutFlag = PatternHasProperty(N, SDNPOutFlag, ISE);
22622261 bool EmittedUseCheck = false;
22632262 if (HasChain) {
22642263 if (NodeHasChain)
22652264 OpNo = 1;
22662265 if (!isRoot) {
2267 const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator());
22682266 // Multiple uses of actual result?
22692267 emitCheck(RootName + ".hasOneUse()");
22702268 EmittedUseCheck = true;
23282326 (PatternHasProperty(N, SDNPInFlag, ISE) ||
23292327 PatternHasProperty(N, SDNPOptInFlag, ISE) ||
23302328 PatternHasProperty(N, SDNPOutFlag, ISE))) {
2331 const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator());
23322329 if (!EmittedUseCheck) {
23332330 // Multiple uses of actual result?
23342331 emitCheck(RootName + ".hasOneUse()");
33173314 PatternsByOpcode[Node->getOperator()].push_back(&PatternsToMatch[i]);
33183315 } else {
33193316 const ComplexPattern *CP;
3320 if (IntInit *II =
3321 dynamic_cast(Node->getLeafValue())) {
3317 if (dynamic_cast(Node->getLeafValue())) {
33223318 PatternsByOpcode[getSDNodeNamed("imm")].push_back(&PatternsToMatch[i]);
33233319 } else if ((CP = NodeGetComplexPattern(Node, *this))) {
33243320 std::vector OpNodes = CP->getRootNodes();