Lines Matching refs:PipelineText

454                                         StringRef &PipelineText,  in parseLoopPassPipeline()  argument
459 if (PipelineText.startswith("loop(")) { in parseLoopPassPipeline()
463 PipelineText = PipelineText.substr(strlen("loop(")); in parseLoopPassPipeline()
464 if (!parseLoopPassPipeline(NestedLPM, PipelineText, VerifyEachPass, in parseLoopPassPipeline()
466 PipelineText.empty()) in parseLoopPassPipeline()
468 assert(PipelineText[0] == ')'); in parseLoopPassPipeline()
469 PipelineText = PipelineText.substr(1); in parseLoopPassPipeline()
475 size_t End = PipelineText.find_first_of(",)"); in parseLoopPassPipeline()
476 if (!parseLoopPassName(LPM, PipelineText.substr(0, End))) in parseLoopPassPipeline()
481 PipelineText = PipelineText.substr(End); in parseLoopPassPipeline()
484 if (PipelineText.empty() || PipelineText[0] == ')') in parseLoopPassPipeline()
487 assert(PipelineText[0] == ','); in parseLoopPassPipeline()
488 PipelineText = PipelineText.substr(1); in parseLoopPassPipeline()
493 StringRef &PipelineText, in parseFunctionPassPipeline() argument
498 if (PipelineText.startswith("function(")) { in parseFunctionPassPipeline()
502 PipelineText = PipelineText.substr(strlen("function(")); in parseFunctionPassPipeline()
503 if (!parseFunctionPassPipeline(NestedFPM, PipelineText, VerifyEachPass, in parseFunctionPassPipeline()
505 PipelineText.empty()) in parseFunctionPassPipeline()
507 assert(PipelineText[0] == ')'); in parseFunctionPassPipeline()
508 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline()
512 } else if (PipelineText.startswith("loop(")) { in parseFunctionPassPipeline()
516 PipelineText = PipelineText.substr(strlen("loop(")); in parseFunctionPassPipeline()
517 if (!parseLoopPassPipeline(NestedLPM, PipelineText, VerifyEachPass, in parseFunctionPassPipeline()
519 PipelineText.empty()) in parseFunctionPassPipeline()
521 assert(PipelineText[0] == ')'); in parseFunctionPassPipeline()
522 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline()
528 size_t End = PipelineText.find_first_of(",)"); in parseFunctionPassPipeline()
529 if (!parseFunctionPassName(FPM, PipelineText.substr(0, End))) in parseFunctionPassPipeline()
534 PipelineText = PipelineText.substr(End); in parseFunctionPassPipeline()
537 if (PipelineText.empty() || PipelineText[0] == ')') in parseFunctionPassPipeline()
540 assert(PipelineText[0] == ','); in parseFunctionPassPipeline()
541 PipelineText = PipelineText.substr(1); in parseFunctionPassPipeline()
546 StringRef &PipelineText, in parseCGSCCPassPipeline() argument
551 if (PipelineText.startswith("cgscc(")) { in parseCGSCCPassPipeline()
555 PipelineText = PipelineText.substr(strlen("cgscc(")); in parseCGSCCPassPipeline()
556 if (!parseCGSCCPassPipeline(NestedCGPM, PipelineText, VerifyEachPass, in parseCGSCCPassPipeline()
558 PipelineText.empty()) in parseCGSCCPassPipeline()
560 assert(PipelineText[0] == ')'); in parseCGSCCPassPipeline()
561 PipelineText = PipelineText.substr(1); in parseCGSCCPassPipeline()
565 } else if (PipelineText.startswith("function(")) { in parseCGSCCPassPipeline()
569 PipelineText = PipelineText.substr(strlen("function(")); in parseCGSCCPassPipeline()
570 if (!parseFunctionPassPipeline(NestedFPM, PipelineText, VerifyEachPass, in parseCGSCCPassPipeline()
572 PipelineText.empty()) in parseCGSCCPassPipeline()
574 assert(PipelineText[0] == ')'); in parseCGSCCPassPipeline()
575 PipelineText = PipelineText.substr(1); in parseCGSCCPassPipeline()
582 size_t End = PipelineText.find_first_of(",)"); in parseCGSCCPassPipeline()
583 if (!parseCGSCCPassName(CGPM, PipelineText.substr(0, End))) in parseCGSCCPassPipeline()
587 PipelineText = PipelineText.substr(End); in parseCGSCCPassPipeline()
590 if (PipelineText.empty() || PipelineText[0] == ')') in parseCGSCCPassPipeline()
593 assert(PipelineText[0] == ','); in parseCGSCCPassPipeline()
594 PipelineText = PipelineText.substr(1); in parseCGSCCPassPipeline()
613 StringRef &PipelineText, in parseModulePassPipeline() argument
618 if (PipelineText.startswith("module(")) { in parseModulePassPipeline()
622 PipelineText = PipelineText.substr(strlen("module(")); in parseModulePassPipeline()
623 if (!parseModulePassPipeline(NestedMPM, PipelineText, VerifyEachPass, in parseModulePassPipeline()
625 PipelineText.empty()) in parseModulePassPipeline()
627 assert(PipelineText[0] == ')'); in parseModulePassPipeline()
628 PipelineText = PipelineText.substr(1); in parseModulePassPipeline()
632 } else if (PipelineText.startswith("cgscc(")) { in parseModulePassPipeline()
636 PipelineText = PipelineText.substr(strlen("cgscc(")); in parseModulePassPipeline()
637 if (!parseCGSCCPassPipeline(NestedCGPM, PipelineText, VerifyEachPass, in parseModulePassPipeline()
639 PipelineText.empty()) in parseModulePassPipeline()
641 assert(PipelineText[0] == ')'); in parseModulePassPipeline()
642 PipelineText = PipelineText.substr(1); in parseModulePassPipeline()
647 } else if (PipelineText.startswith("function(")) { in parseModulePassPipeline()
651 PipelineText = PipelineText.substr(strlen("function(")); in parseModulePassPipeline()
652 if (!parseFunctionPassPipeline(NestedFPM, PipelineText, VerifyEachPass, in parseModulePassPipeline()
654 PipelineText.empty()) in parseModulePassPipeline()
656 assert(PipelineText[0] == ')'); in parseModulePassPipeline()
657 PipelineText = PipelineText.substr(1); in parseModulePassPipeline()
663 size_t End = PipelineText.find_first_of(",)"); in parseModulePassPipeline()
664 if (!parseModulePassName(MPM, PipelineText.substr(0, End), DebugLogging)) in parseModulePassPipeline()
669 PipelineText = PipelineText.substr(End); in parseModulePassPipeline()
672 if (PipelineText.empty() || PipelineText[0] == ')') in parseModulePassPipeline()
675 assert(PipelineText[0] == ','); in parseModulePassPipeline()
676 PipelineText = PipelineText.substr(1); in parseModulePassPipeline()
684 StringRef PipelineText, bool VerifyEachPass, in parsePassPipeline() argument
689 if (parseModulePassPipeline(MPM, PipelineText, VerifyEachPass, DebugLogging)) in parsePassPipeline()
690 return PipelineText.empty(); in parsePassPipeline()
695 PipelineText.substr(0, PipelineText.find_first_of(",)")); in parsePassPipeline()
701 if (PipelineText.startswith("cgscc(") || isCGSCCPassName(FirstName)) { in parsePassPipeline()
703 if (!parseCGSCCPassPipeline(CGPM, PipelineText, VerifyEachPass, in parsePassPipeline()
705 !PipelineText.empty()) in parsePassPipeline()
714 if (PipelineText.startswith("function(") || isFunctionPassName(FirstName)) { in parsePassPipeline()
716 if (!parseFunctionPassPipeline(FPM, PipelineText, VerifyEachPass, in parsePassPipeline()
718 !PipelineText.empty()) in parsePassPipeline()
725 if (PipelineText.startswith("loop(") || isLoopPassName(FirstName)) { in parsePassPipeline()
727 if (!parseLoopPassPipeline(LPM, PipelineText, VerifyEachPass, in parsePassPipeline()
729 !PipelineText.empty()) in parsePassPipeline()
740 bool PassBuilder::parseAAPipeline(AAManager &AA, StringRef PipelineText) { in parseAAPipeline() argument
741 while (!PipelineText.empty()) { in parseAAPipeline()
743 std::tie(Name, PipelineText) = PipelineText.split(','); in parseAAPipeline()