Lines Matching refs:ParamName

572     StringRef ParamName;  in parseSinglePassOption()  local
573 std::tie(ParamName, Params) = Params.split(';'); in parseSinglePassOption()
575 if (ParamName == OptionName) { in parseSinglePassOption()
579 formatv("invalid {1} pass parameter '{0}' ", ParamName, PassName) in parseSinglePassOption()
594 StringRef ParamName; in parseHardwareLoopOptions() local
595 std::tie(ParamName, Params) = Params.split(';'); in parseHardwareLoopOptions()
596 if (ParamName.consume_front("hardware-loop-decrement=")) { in parseHardwareLoopOptions()
598 if (ParamName.getAsInteger(0, Count)) in parseHardwareLoopOptions()
600 formatv("invalid HardwareLoopPass parameter '{0}' ", ParamName).str(), in parseHardwareLoopOptions()
605 if (ParamName.consume_front("hardware-loop-counter-bitwidth=")) { in parseHardwareLoopOptions()
607 if (ParamName.getAsInteger(0, Count)) in parseHardwareLoopOptions()
609 formatv("invalid HardwareLoopPass parameter '{0}' ", ParamName).str(), in parseHardwareLoopOptions()
614 if (ParamName == "force-hardware-loops") { in parseHardwareLoopOptions()
616 } else if (ParamName == "force-hardware-loop-phi") { in parseHardwareLoopOptions()
618 } else if (ParamName == "force-nested-hardware-loop") { in parseHardwareLoopOptions()
620 } else if (ParamName == "force-hardware-loop-guard") { in parseHardwareLoopOptions()
624 formatv("invalid HardwarePass parameter '{0}' ", ParamName).str(), in parseHardwareLoopOptions()
635 StringRef ParamName; in parseLoopUnrollOptions() local
636 std::tie(ParamName, Params) = Params.split(';'); in parseLoopUnrollOptions()
637 std::optional<OptimizationLevel> OptLevel = parseOptLevel(ParamName); in parseLoopUnrollOptions()
643 if (ParamName.consume_front("full-unroll-max=")) { in parseLoopUnrollOptions()
645 if (ParamName.getAsInteger(0, Count)) in parseLoopUnrollOptions()
647 formatv("invalid LoopUnrollPass parameter '{0}' ", ParamName).str(), in parseLoopUnrollOptions()
653 bool Enable = !ParamName.consume_front("no-"); in parseLoopUnrollOptions()
654 if (ParamName == "partial") { in parseLoopUnrollOptions()
656 } else if (ParamName == "peeling") { in parseLoopUnrollOptions()
658 } else if (ParamName == "profile-peeling") { in parseLoopUnrollOptions()
660 } else if (ParamName == "runtime") { in parseLoopUnrollOptions()
662 } else if (ParamName == "upperbound") { in parseLoopUnrollOptions()
666 formatv("invalid LoopUnrollPass parameter '{0}' ", ParamName).str(), in parseLoopUnrollOptions()
739 StringRef ParamName; in parseASanPassOptions() local
740 std::tie(ParamName, Params) = Params.split(';'); in parseASanPassOptions()
742 if (ParamName == "kernel") { in parseASanPassOptions()
746 formatv("invalid AddressSanitizer pass parameter '{0}' ", ParamName) in parseASanPassOptions()
757 StringRef ParamName; in parseHWASanPassOptions() local
758 std::tie(ParamName, Params) = Params.split(';'); in parseHWASanPassOptions()
760 if (ParamName == "recover") { in parseHWASanPassOptions()
762 } else if (ParamName == "kernel") { in parseHWASanPassOptions()
766 formatv("invalid HWAddressSanitizer pass parameter '{0}' ", ParamName) in parseHWASanPassOptions()
777 StringRef ParamName; in parseEmbedBitcodePassOptions() local
778 std::tie(ParamName, Params) = Params.split(';'); in parseEmbedBitcodePassOptions()
780 if (ParamName == "thinlto") { in parseEmbedBitcodePassOptions()
782 } else if (ParamName == "emit-summary") { in parseEmbedBitcodePassOptions()
786 formatv("invalid EmbedBitcode pass parameter '{0}' ", ParamName) in parseEmbedBitcodePassOptions()
797 StringRef ParamName; in parseMSanPassOptions() local
798 std::tie(ParamName, Params) = Params.split(';'); in parseMSanPassOptions()
800 if (ParamName == "recover") { in parseMSanPassOptions()
802 } else if (ParamName == "kernel") { in parseMSanPassOptions()
804 } else if (ParamName.consume_front("track-origins=")) { in parseMSanPassOptions()
805 if (ParamName.getAsInteger(0, Result.TrackOrigins)) in parseMSanPassOptions()
809 ParamName) in parseMSanPassOptions()
812 } else if (ParamName == "eager-checks") { in parseMSanPassOptions()
816 formatv("invalid MemorySanitizer pass parameter '{0}' ", ParamName) in parseMSanPassOptions()
828 StringRef ParamName; in parseSimplifyCFGOptions() local
829 std::tie(ParamName, Params) = Params.split(';'); in parseSimplifyCFGOptions()
831 bool Enable = !ParamName.consume_front("no-"); in parseSimplifyCFGOptions()
832 if (ParamName == "speculate-blocks") { in parseSimplifyCFGOptions()
834 } else if (ParamName == "simplify-cond-branch") { in parseSimplifyCFGOptions()
836 } else if (ParamName == "forward-switch-cond") { in parseSimplifyCFGOptions()
838 } else if (ParamName == "switch-range-to-icmp") { in parseSimplifyCFGOptions()
840 } else if (ParamName == "switch-to-lookup") { in parseSimplifyCFGOptions()
842 } else if (ParamName == "keep-loops") { in parseSimplifyCFGOptions()
844 } else if (ParamName == "hoist-common-insts") { in parseSimplifyCFGOptions()
846 } else if (ParamName == "sink-common-insts") { in parseSimplifyCFGOptions()
848 } else if (ParamName == "speculate-unpredictables") { in parseSimplifyCFGOptions()
850 } else if (Enable && ParamName.consume_front("bonus-inst-threshold=")) { in parseSimplifyCFGOptions()
852 if (ParamName.getAsInteger(0, BonusInstThreshold)) in parseSimplifyCFGOptions()
856 ParamName).str(), in parseSimplifyCFGOptions()
861 formatv("invalid SimplifyCFG pass parameter '{0}' ", ParamName).str(), in parseSimplifyCFGOptions()
874 StringRef ParamName; in parseInstCombineOptions() local
875 std::tie(ParamName, Params) = Params.split(';'); in parseInstCombineOptions()
877 bool Enable = !ParamName.consume_front("no-"); in parseInstCombineOptions()
878 if (ParamName == "use-loop-info") { in parseInstCombineOptions()
880 } else if (ParamName == "verify-fixpoint") { in parseInstCombineOptions()
882 } else if (Enable && ParamName.consume_front("max-iterations=")) { in parseInstCombineOptions()
884 if (ParamName.getAsInteger(0, MaxIterations)) in parseInstCombineOptions()
888 ParamName).str(), in parseInstCombineOptions()
893 formatv("invalid InstCombine pass parameter '{0}' ", ParamName).str(), in parseInstCombineOptions()
904 StringRef ParamName; in parseLoopVectorizeOptions() local
905 std::tie(ParamName, Params) = Params.split(';'); in parseLoopVectorizeOptions()
907 bool Enable = !ParamName.consume_front("no-"); in parseLoopVectorizeOptions()
908 if (ParamName == "interleave-forced-only") { in parseLoopVectorizeOptions()
910 } else if (ParamName == "vectorize-forced-only") { in parseLoopVectorizeOptions()
914 formatv("invalid LoopVectorize parameter '{0}' ", ParamName).str(), in parseLoopVectorizeOptions()
924 StringRef ParamName; in parseLoopUnswitchOptions() local
925 std::tie(ParamName, Params) = Params.split(';'); in parseLoopUnswitchOptions()
927 bool Enable = !ParamName.consume_front("no-"); in parseLoopUnswitchOptions()
928 if (ParamName == "nontrivial") { in parseLoopUnswitchOptions()
930 } else if (ParamName == "trivial") { in parseLoopUnswitchOptions()
934 formatv("invalid LoopUnswitch pass parameter '{0}' ", ParamName) in parseLoopUnswitchOptions()
945 StringRef ParamName; in parseLICMOptions() local
946 std::tie(ParamName, Params) = Params.split(';'); in parseLICMOptions()
948 bool Enable = !ParamName.consume_front("no-"); in parseLICMOptions()
949 if (ParamName == "allowspeculation") { in parseLICMOptions()
953 formatv("invalid LICM pass parameter '{0}' ", ParamName).str(), in parseLICMOptions()
963 StringRef ParamName; in parseLoopRotateOptions() local
964 std::tie(ParamName, Params) = Params.split(';'); in parseLoopRotateOptions()
966 bool Enable = !ParamName.consume_front("no-"); in parseLoopRotateOptions()
967 if (ParamName == "header-duplication") { in parseLoopRotateOptions()
969 } else if (ParamName == "prepare-for-lto") { in parseLoopRotateOptions()
973 formatv("invalid LoopRotate pass parameter '{0}' ", ParamName).str(), in parseLoopRotateOptions()
983 StringRef ParamName; in parseMergedLoadStoreMotionOptions() local
984 std::tie(ParamName, Params) = Params.split(';'); in parseMergedLoadStoreMotionOptions()
986 bool Enable = !ParamName.consume_front("no-"); in parseMergedLoadStoreMotionOptions()
987 if (ParamName == "split-footer-bb") { in parseMergedLoadStoreMotionOptions()
992 ParamName) in parseMergedLoadStoreMotionOptions()
1003 StringRef ParamName; in parseGVNOptions() local
1004 std::tie(ParamName, Params) = Params.split(';'); in parseGVNOptions()
1006 bool Enable = !ParamName.consume_front("no-"); in parseGVNOptions()
1007 if (ParamName == "pre") { in parseGVNOptions()
1009 } else if (ParamName == "load-pre") { in parseGVNOptions()
1011 } else if (ParamName == "split-backedge-load-pre") { in parseGVNOptions()
1013 } else if (ParamName == "memdep") { in parseGVNOptions()
1017 formatv("invalid GVN pass parameter '{0}' ", ParamName).str(), in parseGVNOptions()
1027 StringRef ParamName; in parseIPSCCPOptions() local
1028 std::tie(ParamName, Params) = Params.split(';'); in parseIPSCCPOptions()
1030 bool Enable = !ParamName.consume_front("no-"); in parseIPSCCPOptions()
1031 if (ParamName == "func-spec") in parseIPSCCPOptions()
1035 formatv("invalid IPSCCP pass parameter '{0}' ", ParamName).str(), in parseIPSCCPOptions()
1058 StringRef ParamName; in parseStackLifetimeOptions() local
1059 std::tie(ParamName, Params) = Params.split(';'); in parseStackLifetimeOptions()
1061 if (ParamName == "may") { in parseStackLifetimeOptions()
1063 } else if (ParamName == "must") { in parseStackLifetimeOptions()
1067 formatv("invalid StackLifetime parameter '{0}' ", ParamName).str(), in parseStackLifetimeOptions()
1109 StringRef ParamName; in parseMemProfUsePassOptions() local
1110 std::tie(ParamName, Params) = Params.split(';'); in parseMemProfUsePassOptions()
1112 if (ParamName.consume_front("profile-filename=")) { in parseMemProfUsePassOptions()
1113 Result = ParamName.str(); in parseMemProfUsePassOptions()
1116 formatv("invalid MemProfUse pass parameter '{0}' ", ParamName).str(), in parseMemProfUsePassOptions()
1136 StringRef ParamName; in parseGlobalMergeOptions() local
1137 std::tie(ParamName, Params) = Params.split(';'); in parseGlobalMergeOptions()
1139 bool Enable = !ParamName.consume_front("no-"); in parseGlobalMergeOptions()
1140 if (ParamName == "group-by-use") in parseGlobalMergeOptions()
1142 else if (ParamName == "ignore-single-use") in parseGlobalMergeOptions()
1144 else if (ParamName == "merge-const") in parseGlobalMergeOptions()
1146 else if (ParamName == "merge-external") in parseGlobalMergeOptions()
1148 else if (ParamName.consume_front("max-offset=")) { in parseGlobalMergeOptions()
1149 if (ParamName.getAsInteger(0, Result.MaxOffset)) in parseGlobalMergeOptions()
1151 formatv("invalid GlobalMergePass parameter '{0}' ", ParamName) in parseGlobalMergeOptions()
1162 StringRef ParamName; in parseInternalizeGVs() local
1163 std::tie(ParamName, Params) = Params.split(';'); in parseInternalizeGVs()
1165 if (ParamName.consume_front("preserve-gv=")) { in parseInternalizeGVs()
1166 PreservedGVs.push_back(ParamName.str()); in parseInternalizeGVs()
1169 formatv("invalid Internalize pass parameter '{0}' ", ParamName).str(), in parseInternalizeGVs()
1181 StringRef ParamName; in parseRegAllocFastPassOptions() local
1182 std::tie(ParamName, Params) = Params.split(';'); in parseRegAllocFastPassOptions()
1184 if (ParamName.consume_front("filter=")) { in parseRegAllocFastPassOptions()
1186 PB.parseRegAllocFilter(ParamName); in parseRegAllocFastPassOptions()
1189 formatv("invalid regallocfast register filter '{0}' ", ParamName) in parseRegAllocFastPassOptions()
1194 Opts.FilterName = ParamName; in parseRegAllocFastPassOptions()
1198 if (ParamName == "no-clear-vregs") { in parseRegAllocFastPassOptions()
1204 formatv("invalid regallocfast pass parameter '{0}' ", ParamName).str(), in parseRegAllocFastPassOptions()