Lines Matching refs:Name

526 parseFunctionPipelineName(StringRef Name) {  in parseFunctionPipelineName()  argument
528 if (!Name.consume_front("function")) in parseFunctionPipelineName()
530 if (Name.empty()) in parseFunctionPipelineName()
532 if (!Name.consume_front("<") || !Name.consume_back(">")) in parseFunctionPipelineName()
534 while (!Name.empty()) { in parseFunctionPipelineName()
535 auto [Front, Back] = Name.split(';'); in parseFunctionPipelineName()
536 Name = Back; in parseFunctionPipelineName()
547 static std::optional<int> parseDevirtPassName(StringRef Name) { in parseDevirtPassName() argument
548 if (!Name.consume_front("devirt<") || !Name.consume_back(">")) in parseDevirtPassName()
551 if (Name.getAsInteger(0, Count) || Count < 0) in parseDevirtPassName()
1214 static bool startsWithDefaultPipelineAliasPrefix(StringRef Name) { in startsWithDefaultPipelineAliasPrefix() argument
1215 return Name.starts_with("default") || Name.starts_with("thinlto") || in startsWithDefaultPipelineAliasPrefix()
1216 Name.starts_with("lto"); in startsWithDefaultPipelineAliasPrefix()
1228 static bool callbacksAcceptPassName(StringRef Name, CallbacksT &Callbacks) { in callbacksAcceptPassName() argument
1232 if (CB(Name, DummyPM, {})) in callbacksAcceptPassName()
1239 static bool isModulePassName(StringRef Name, CallbacksT &Callbacks) { in isModulePassName() argument
1241 if (startsWithDefaultPipelineAliasPrefix(Name)) in isModulePassName()
1242 return DefaultAliasRegex.match(Name); in isModulePassName()
1244 StringRef NameNoBracket = Name.take_until([](char C) { return C == '<'; }); in isModulePassName()
1247 if (Name == "module") in isModulePassName()
1249 if (Name == "cgscc") in isModulePassName()
1253 if (Name == "coro-cond") in isModulePassName()
1257 if (Name == NAME) \ in isModulePassName()
1260 if (PassBuilder::checkParametrizedPassName(Name, NAME)) \ in isModulePassName()
1263 if (Name == "require<" NAME ">" || Name == "invalidate<" NAME ">") \ in isModulePassName()
1267 return callbacksAcceptPassName<ModulePassManager>(Name, Callbacks); in isModulePassName()
1271 static bool isCGSCCPassName(StringRef Name, CallbacksT &Callbacks) { in isCGSCCPassName() argument
1273 StringRef NameNoBracket = Name.take_until([](char C) { return C == '<'; }); in isCGSCCPassName()
1274 if (Name == "cgscc") in isCGSCCPassName()
1280 if (parseDevirtPassName(Name)) in isCGSCCPassName()
1284 if (Name == NAME) \ in isCGSCCPassName()
1287 if (PassBuilder::checkParametrizedPassName(Name, NAME)) \ in isCGSCCPassName()
1290 if (Name == "require<" NAME ">" || Name == "invalidate<" NAME ">") \ in isCGSCCPassName()
1294 return callbacksAcceptPassName<CGSCCPassManager>(Name, Callbacks); in isCGSCCPassName()
1298 static bool isFunctionPassName(StringRef Name, CallbacksT &Callbacks) { in isFunctionPassName() argument
1300 StringRef NameNoBracket = Name.take_until([](char C) { return C == '<'; }); in isFunctionPassName()
1303 if (Name == "loop" || Name == "loop-mssa" || Name == "machine-function") in isFunctionPassName()
1307 if (Name == NAME) \ in isFunctionPassName()
1310 if (PassBuilder::checkParametrizedPassName(Name, NAME)) \ in isFunctionPassName()
1313 if (Name == "require<" NAME ">" || Name == "invalidate<" NAME ">") \ in isFunctionPassName()
1317 return callbacksAcceptPassName<FunctionPassManager>(Name, Callbacks); in isFunctionPassName()
1321 static bool isMachineFunctionPassName(StringRef Name, CallbacksT &Callbacks) { in isMachineFunctionPassName() argument
1323 if (Name == "machine-function") in isMachineFunctionPassName()
1327 if (Name == NAME) \ in isMachineFunctionPassName()
1331 if (PassBuilder::checkParametrizedPassName(Name, NAME)) \ in isMachineFunctionPassName()
1335 if (Name == "require<" NAME ">" || Name == "invalidate<" NAME ">") \ in isMachineFunctionPassName()
1340 return callbacksAcceptPassName<MachineFunctionPassManager>(Name, Callbacks); in isMachineFunctionPassName()
1344 static bool isLoopNestPassName(StringRef Name, CallbacksT &Callbacks, in isLoopNestPassName() argument
1348 if (PassBuilder::checkParametrizedPassName(Name, "lnicm")) { in isLoopNestPassName()
1354 if (Name == NAME) \ in isLoopNestPassName()
1358 return callbacksAcceptPassName<LoopPassManager>(Name, Callbacks); in isLoopNestPassName()
1362 static bool isLoopPassName(StringRef Name, CallbacksT &Callbacks, in isLoopPassName() argument
1366 if (PassBuilder::checkParametrizedPassName(Name, "licm")) { in isLoopPassName()
1372 if (Name == NAME) \ in isLoopPassName()
1375 if (PassBuilder::checkParametrizedPassName(Name, NAME)) \ in isLoopPassName()
1378 if (Name == "require<" NAME ">" || Name == "invalidate<" NAME ">") \ in isLoopPassName()
1382 return callbacksAcceptPassName<LoopPassManager>(Name, Callbacks); in isLoopPassName()
1444 auto &Name = E.Name; in parseModulePass() local
1449 if (Name == "module") { in parseModulePass()
1456 if (Name == "coro-cond") { in parseModulePass()
1463 if (Name == "cgscc") { in parseModulePass()
1470 if (auto Params = parseFunctionPipelineName(Name)) { in parseModulePass()
1484 if (C(Name, MPM, InnerPipeline)) in parseModulePass()
1489 formatv("invalid use of '{0}' pass as module pipeline", Name).str(), in parseModulePass()
1495 if (startsWithDefaultPipelineAliasPrefix(Name)) { in parseModulePass()
1497 if (!DefaultAliasRegex.match(Name, &Matches)) in parseModulePass()
1499 formatv("unknown default pipeline alias '{0}'", Name).str(), in parseModulePass()
1537 if (Name == NAME) { \ in parseModulePass()
1542 if (checkParametrizedPassName(Name, NAME)) { \ in parseModulePass()
1543 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseModulePass()
1550 if (Name == "require<" NAME ">") { \ in parseModulePass()
1556 if (Name == "invalidate<" NAME ">") { \ in parseModulePass()
1562 if (Name == NAME) { \ in parseModulePass()
1567 if (checkParametrizedPassName(Name, NAME)) { \ in parseModulePass()
1568 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseModulePass()
1576 if (Name == NAME) { \ in parseModulePass()
1581 if (checkParametrizedPassName(Name, NAME)) { \ in parseModulePass()
1582 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseModulePass()
1589 if (Name == NAME) { \ in parseModulePass()
1595 if (Name == NAME) { \ in parseModulePass()
1601 if (checkParametrizedPassName(Name, NAME)) { \ in parseModulePass()
1602 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseModulePass()
1613 if (C(Name, MPM, InnerPipeline)) in parseModulePass()
1616 formatv("unknown module pass '{0}'", Name).str(), in parseModulePass()
1622 auto &Name = E.Name; in parseCGSCCPass() local
1627 if (Name == "cgscc") { in parseCGSCCPass()
1635 if (auto Params = parseFunctionPipelineName(Name)) { in parseCGSCCPass()
1644 if (auto MaxRepetitions = parseDevirtPassName(Name)) { in parseCGSCCPass()
1654 if (C(Name, CGPM, InnerPipeline)) in parseCGSCCPass()
1659 formatv("invalid use of '{0}' pass as cgscc pipeline", Name).str(), in parseCGSCCPass()
1665 if (Name == NAME) { \ in parseCGSCCPass()
1670 if (checkParametrizedPassName(Name, NAME)) { \ in parseCGSCCPass()
1671 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseCGSCCPass()
1678 if (Name == "require<" NAME ">") { \ in parseCGSCCPass()
1685 if (Name == "invalidate<" NAME ">") { \ in parseCGSCCPass()
1691 if (Name == NAME) { \ in parseCGSCCPass()
1696 if (checkParametrizedPassName(Name, NAME)) { \ in parseCGSCCPass()
1697 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseCGSCCPass()
1704 if (Name == NAME) { \ in parseCGSCCPass()
1710 if (Name == NAME) { \ in parseCGSCCPass()
1716 if (checkParametrizedPassName(Name, NAME)) { \ in parseCGSCCPass()
1717 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseCGSCCPass()
1728 if (C(Name, CGPM, InnerPipeline)) in parseCGSCCPass()
1731 formatv("unknown cgscc pass '{0}'", Name).str(), in parseCGSCCPass()
1737 auto &Name = E.Name; in parseFunctionPass() local
1742 if (Name == "function") { in parseFunctionPass()
1750 if (Name == "loop" || Name == "loop-mssa") { in parseFunctionPass()
1755 bool UseMemorySSA = (Name == "loop-mssa"); in parseFunctionPass()
1757 return Pipeline.Name.contains("simple-loop-unswitch"); in parseFunctionPass()
1760 return Pipeline.Name == "loop-predication"; in parseFunctionPass()
1766 if (Name == "machine-function") { in parseFunctionPass()
1775 if (C(Name, FPM, InnerPipeline)) in parseFunctionPass()
1780 formatv("invalid use of '{0}' pass as function pipeline", Name).str(), in parseFunctionPass()
1786 if (Name == NAME) { \ in parseFunctionPass()
1791 if (checkParametrizedPassName(Name, NAME)) { \ in parseFunctionPass()
1792 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseFunctionPass()
1799 if (Name == "require<" NAME ">") { \ in parseFunctionPass()
1805 if (Name == "invalidate<" NAME ">") { \ in parseFunctionPass()
1815 if (Name == NAME) { \ in parseFunctionPass()
1820 if (Name == NAME) { \ in parseFunctionPass()
1825 if (checkParametrizedPassName(Name, NAME)) { \ in parseFunctionPass()
1826 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseFunctionPass()
1836 if (C(Name, FPM, InnerPipeline)) in parseFunctionPass()
1839 formatv("unknown function pass '{0}'", Name).str(), in parseFunctionPass()
1845 StringRef Name = E.Name; in parseLoopPass() local
1850 if (Name == "loop") { in parseLoopPass()
1860 if (C(Name, LPM, InnerPipeline)) in parseLoopPass()
1865 formatv("invalid use of '{0}' pass as loop pipeline", Name).str(), in parseLoopPass()
1871 if (Name == NAME) { \ in parseLoopPass()
1876 if (Name == NAME) { \ in parseLoopPass()
1881 if (checkParametrizedPassName(Name, NAME)) { \ in parseLoopPass()
1882 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseLoopPass()
1889 if (Name == "require<" NAME ">") { \ in parseLoopPass()
1896 if (Name == "invalidate<" NAME ">") { \ in parseLoopPass()
1904 if (C(Name, LPM, InnerPipeline)) in parseLoopPass()
1906 return make_error<StringError>(formatv("unknown loop pass '{0}'", Name).str(), in parseLoopPass()
1912 StringRef Name = E.Name; in parseMachinePass() local
1918 if (Name == NAME) { \ in parseMachinePass()
1923 if (Name == NAME) { \ in parseMachinePass()
1929 if (checkParametrizedPassName(Name, NAME)) { \ in parseMachinePass()
1930 auto Params = parsePassParameters(PARSER, Name, NAME); \ in parseMachinePass()
1937 if (Name == "require<" NAME ">") { \ in parseMachinePass()
1943 if (Name == "invalidate<" NAME ">") { \ in parseMachinePass()
1951 if (C(Name, MFPM, E.InnerPipeline)) in parseMachinePass()
1954 formatv("unknown machine pass '{0}'", Name).str(), in parseMachinePass()
1958 bool PassBuilder::parseAAPassName(AAManager &AA, StringRef Name) { in parseAAPassName() argument
1960 if (Name == NAME) { \ in parseAAPassName()
1966 if (Name == NAME) { \ in parseAAPassName()
1974 if (C(Name, AA)) in parseAAPassName()
2061 StringRef FirstName = Pipeline->front().Name; in parsePassPipeline()
2110 StringRef FirstName = Pipeline->front().Name; in parsePassPipeline()
2133 StringRef FirstName = Pipeline->front().Name; in parsePassPipeline()
2184 StringRef Name; in parseAAPipeline() local
2185 std::tie(Name, PipelineText) = PipelineText.split(','); in parseAAPipeline()
2186 if (!parseAAPassName(AA, Name)) in parseAAPipeline()
2188 formatv("unknown alias analysis name '{0}'", Name).str(), in parseAAPipeline()