/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | FuzzerCLI.cpp | 41 for (StringRef Opt : Opts) { in handleExecNameEncodedBEOpts() local 42 if (Opt == "gisel") { in handleExecNameEncodedBEOpts() 46 } else if (Opt.starts_with("O")) { in handleExecNameEncodedBEOpts() 47 Args.push_back("-" + Opt.str()); in handleExecNameEncodedBEOpts() 48 } else if (Triple(Opt).getArch()) { in handleExecNameEncodedBEOpts() 49 Args.push_back("-mtriple=" + Opt.str()); in handleExecNameEncodedBEOpts() 51 errs() << ExecName << ": Unknown option: " << Opt << ".\n"; in handleExecNameEncodedBEOpts() 78 for (StringRef Opt : Opts) { in handleExecNameEncodedOptimizerOpts() local 79 if (Opt == "instcombine") { in handleExecNameEncodedOptimizerOpts() 81 } else if (Opt == "earlycse") { in handleExecNameEncodedOptimizerOpts() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Option/ |
H A D | ArgList.cpp | 252 Arg *DerivedArgList::MakeFlagArg(const Arg *BaseArg, const Option Opt) const { in AddSynthesizedArg() 254 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), 255 BaseArgs.MakeIndex(Opt.getName()), BaseArg)); in MakeFlagArg() 259 Arg *DerivedArgList::MakePositionalArg(const Arg *BaseArg, const Option Opt, in MakeFlagArg() 263 std::make_unique<Arg>(Opt, MakeArgString(Opt.getPrefix() + Opt.getName()), in MakePositionalArg() 268 Arg *DerivedArgList::MakeSeparateArg(const Arg *BaseArg, const Option Opt, in MakePositionalArg() 262 MakePositionalArg(const Arg * BaseArg,const Option Opt,StringRef Value) const MakePositionalArg() argument 271 MakeSeparateArg(const Arg * BaseArg,const Option Opt,StringRef Value) const MakeSeparateArg() argument 280 MakeJoinedArg(const Arg * BaseArg,const Option Opt,StringRef Value) const MakeJoinedArg() argument [all...] |
H A D | Arg.cpp | 21 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const Arg *BaseArg) in Arg() argument 22 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg() 25 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() argument 27 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg() 32 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() argument 34 : Opt(Opt), BaseArg(BaseArg), Spelling(S), Index(Index), Claimed(false), in Arg() 48 O << "<Opt in print() [all...] |
H A D | OptTable.cpp | 86 OptSpecifier::OptSpecifier(const Option *Opt) : ID(Opt->getID()) {} in OptSpecifier() argument 143 const Option OptTable::getOption(OptSpecifier Opt) const { in getOption() 144 unsigned id = Opt.getID(); in getOption() 367 Option Opt(Start, this); in parseOneArgGrouped() local 369 Opt.accept(Args, StringRef(Args.getArgString(Index), ArgSize), in parseOneArgGrouped() 376 if (ArgSize == 2 && Opt.getKind() == Option::FlagClass) in parseOneArgGrouped() 384 Option Opt(Fallback, this); in parseOneArgGrouped() local 390 if (std::unique_ptr<Arg> A = Opt.accept( in parseOneArgGrouped() 410 return internalParseOneArg(Args, Index, [VisibilityMask](const Option &Opt) { in ParseOneArg() argument 411 return !Opt.hasVisibilityFlag(VisibilityMask); in ParseOneArg() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Statepoint.h | 147 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_transition)) in gc_transition_args_begin() local 148 return Opt->Inputs.begin(); in gc_transition_args_begin() 152 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_transition)) in gc_transition_args_end() local 153 return Opt->Inputs.end(); in gc_transition_args_end() 163 if (auto Opt = getOperandBundle(LLVMContext::OB_deopt)) in deopt_begin() local 164 return Opt->Inputs.begin(); in deopt_begin() 168 if (auto Opt = getOperandBundle(LLVMContext::OB_deopt)) in deopt_end() local 169 return Opt->Inputs.end(); in deopt_end() 181 if (auto Opt = getOperandBundle(LLVMContext::OB_gc_live)) in gc_args_begin() local 182 return Opt->Inputs.begin(); in gc_args_begin() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Passes/ |
H A D | CodeGenPassBuilder.h | 124 : TM(TM), Opt(Opts), PIC(PIC) { in CodeGenPassBuilder() 130 if (Opt.EnableIPRA) in CodeGenPassBuilder() 131 TM.Options.EnableIPRA = *Opt.EnableIPRA; in CodeGenPassBuilder() 133 if (Opt.EnableGlobalISelAbort) in CodeGenPassBuilder() 134 TM.Options.GlobalISelAbort = *Opt.EnableGlobalISelAbort; in CodeGenPassBuilder() 136 if (!Opt.OptimizeRegAlloc) in CodeGenPassBuilder() 137 Opt.OptimizeRegAlloc = getOptLevel() != CodeGenOptLevel::None; in CodeGenPassBuilder() 258 CGPassBuilderOption Opt; variable 646 if (!Opt.DisableVerify) in addIRPasses() 650 if (getOptLevel() != CodeGenOptLevel::None && !Opt.DisableLSR) { in addIRPasses() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | options.h | 33 bool get(OptionBit Opt) const { return Val & (1U << static_cast<u32>(Opt)); } in get() 51 void clear(OptionBit Opt) { in clear() 52 atomic_fetch_and(&Val, ~(1U << static_cast<u32>(Opt)), in clear() 56 void set(OptionBit Opt) { in set() 57 atomic_fetch_or(&Val, 1U << static_cast<u32>(Opt), memory_order_relaxed); in set()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Option/ |
H A D | OptSpecifier.h | 25 /*implicit*/ OptSpecifier(const Option *Opt); 31 bool operator==(OptSpecifier Opt) const { return ID == Opt.getID(); } 32 bool operator!=(OptSpecifier Opt) const { return !(*this == Opt); }
|
H A D | Arg.h | 37 const Option Opt; 73 Arg(const Option Opt, StringRef Spelling, unsigned Index, 75 Arg(const Option Opt, StringRef Spelling, unsigned Index, 77 Arg(const Option Opt, StringRef Spelling, unsigned Index, 83 const Option &getOption() const { return Opt; } in getOption()
|
H A D | ArgList.h | 500 void AddFlagArg(const Arg *BaseArg, const Option Opt) { in AddFlagArg() argument 501 append(MakeFlagArg(BaseArg, Opt)); in AddFlagArg() 507 void AddPositionalArg(const Arg *BaseArg, const Option Opt, in AddPositionalArg() argument 509 append(MakePositionalArg(BaseArg, Opt, Value)); in AddPositionalArg() 515 void AddSeparateArg(const Arg *BaseArg, const Option Opt, in AddSeparateArg() argument 517 append(MakeSeparateArg(BaseArg, Opt, Value)); in AddSeparateArg() 522 void AddJoinedArg(const Arg *BaseArg, const Option Opt, in AddJoinedArg() argument 524 append(MakeJoinedArg(BaseArg, Opt, Value)); in AddJoinedArg() 528 Arg *MakeFlagArg(const Arg *BaseArg, const Option Opt) const; 532 Arg *MakePositionalArg(const Arg *BaseArg, const Option Opt, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | GlobalMerge.cpp | 150 GlobalMergeOptions Opt; member in __anon9202c2150111::GlobalMergeImpl 181 GlobalMergeImpl(const TargetMachine *TM, GlobalMergeOptions Opt) in GlobalMergeImpl() argument 182 : TM(TM), Opt(Opt) {} in GlobalMergeImpl() 188 GlobalMergeOptions Opt; member in __anon9202c2150111::GlobalMerge 194 Opt.MaxOffset = GlobalMergeMaxOffset; in GlobalMerge() 201 Opt.MaxOffset = MaximalOffset; in GlobalMerge() 202 Opt.SizeOnly = OnlyOptimizeForSize; in GlobalMerge() 203 Opt.MergeExternal = MergeExternalGlobals; in GlobalMerge() 215 Opt.MinSize = GlobalMergeMinDataSize; in doInitialization() 217 Opt.MinSize = *SDL + 1; in doInitialization() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/ |
H A D | ARMTargetParserCommon.cpp | 158 StringRef Opt = Opts[I].trim(); in parseBranchProtection() local 159 if (Opt == "bti") { in parseBranchProtection() 163 if (Opt == "pac-ret") { in parseBranchProtection() 178 if (Opt == "gcs") { in parseBranchProtection() 182 if (Opt == "") in parseBranchProtection() 185 Err = Opt; in parseBranchProtection()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
H A D | TableGenBackend.h | 35 struct Opt { 36 Opt(StringRef Name, FnT CB, StringRef Desc, bool ByDefault = false) { 43 template <class EmitterC> class OptClass : Opt { in run() 47 OptClass(StringRef Name, StringRef Desc) : Opt(Name, run, Desc) {} 34 struct Opt { global() struct
|
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
H A D | RefactoringActionRuleRequirements.h | 98 OptionRequirement() : Opt(createRefactoringOption<OptionType>()) {} in OptionRequirement() 102 return Opt; in getRefactoringOptions() 107 return static_cast<OptionType *>(Opt.get())->getValue(); in evaluate() 116 std::shared_ptr<RefactoringOption> Opt;
|
/freebsd/contrib/llvm-project/llvm/tools/llc/ |
H A D | NewPMDriver.cpp | 110 CGPassBuilderOption Opt = getCGPassBuilderOption(); in compileModuleWithNewPM() local 111 Opt.DisableVerify = NoVerify; in compileModuleWithNewPM() 112 Opt.DebugPM = DebugPM; in compileModuleWithNewPM() 113 Opt.RegAlloc = RegAlloc; in compileModuleWithNewPM() 118 StandardInstrumentations SI(Context, Opt.DebugPM, !NoVerify); in compileModuleWithNewPM() 162 MPM, *OS, DwoOut ? &DwoOut->os() : nullptr, FileType, Opt, &PIC)); in compileModuleWithNewPM()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | CommandLine.cpp | 175 void forEachSubCommand(Option &Opt, function_ref<void(SubCommand &)> Action) { in forEachSubCommand() argument 176 if (Opt.Subs.empty()) { in forEachSubCommand() 180 if (Opt.Subs.size() == 1 && *Opt.Subs.begin() == &SubCommand::getAll()) { in forEachSubCommand() 186 for (auto *SC : Opt.Subs) { in forEachSubCommand() 193 void addLiteralOption(Option &Opt, SubCommand *SC, StringRef Name) { in addLiteralOption() argument 194 if (Opt.hasArgStr()) in addLiteralOption() 196 if (!SC->OptionsMap.insert(std::make_pair(Name, &Opt)).second) { in addLiteralOption() 203 void addLiteralOption(Option &Opt, StringRef Name) { in addLiteralOption() argument 205 Opt, [&](SubCommand &SC) { addLiteralOption(Opt, &SC, Name); }); in addLiteralOption() 267 for (auto *Opt = Sub.PositionalOpts.begin(); in removeOption() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ |
H A D | TargetMachineC.cpp | 202 auto *Opt = unwrap(Options); in LLVMCreateTargetMachineWithOptions() local 204 TO.MCOptions.ABIName = Opt->ABI; in LLVMCreateTargetMachineWithOptions() 205 return wrap(unwrap(T)->createTargetMachine(Triple, Opt->CPU, Opt->Features, in LLVMCreateTargetMachineWithOptions() 206 TO, Opt->RM, Opt->CM, Opt->OL, in LLVMCreateTargetMachineWithOptions() 207 Opt->JIT)); in LLVMCreateTargetMachineWithOptions()
|
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/BinaryReader/ |
H A D | DylibReader.cpp | 250 const ParseOption &Opt) { in readSymbols() argument 298 if (Opt.Undefineds) in readSymbols() 338 const ParseOption &Opt, const Architecture Arch) { in load() argument 342 if (Opt.MachOHeader) in load() 346 if (Opt.SymbolTable) in load() 347 if (auto Err = readSymbols(Obj, Slice, Opt)) in load() 354 const ParseOption &Opt) { in readFile() argument 365 if (!Opt.Archs.has(Arch)) in readFile() 373 if (auto Err = load(Obj, *Results.back(), Opt, Arch)) in readFile() 389 if (!Opt.Archs.has(Arch)) in readFile() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | OpenCLOptions.h | 98 unsigned Opt = 0U; member 109 : WithPragma(Pragma), Avail(AvailV), Core(CoreV), Opt(OptV) {} in OpenCLOptionInfo() 113 bool isOptionalCore() const { return Opt != 0U; } in isOptionalCore() 128 return isAvailableIn(LO) && isOpenCLVersionContainedInMask(LO, Opt); in isOptionalCoreIn()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | CommandLine.h | 433 template <class Opt> void apply(Opt &O) const { O.setInitialValue(Init); } in apply() 440 template <class Opt> void apply(Opt &O) const { O.setInitialValues(Inits); } in apply() 460 template <class Opt> void apply(Opt &O) const { O.setLocation(O, Loc); } in apply() 473 template <class Opt> void apply(Opt &O) const { O.addCategory(Category); } in apply() 484 template <class Opt> void apply(Opt &O) const { in apply() 500 template <typename Opt> void apply(Opt &O) const { O.setCallback(CB); } in apply() 702 template <class Opt> void apply(Opt &O) const { 1261 template <class Opt> static void opt(const Mod &M, Opt &O) { M.apply(O); } 1266 template <class Opt> static void opt(StringRef Str, Opt &O) { 1271 template <class Opt> static void opt(StringRef Str, Opt &O) { [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUTargetMachine.h | 150 bool isPassEnabled(const cl::opt<bool> &Opt, 152 if (Opt.getNumOccurrences()) 153 return Opt; 156 return Opt;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/ |
H A D | CSKYInstPrinter.cpp | 54 bool CSKYInstPrinter::applyTargetSpecificCLOption(StringRef Opt) { in applyTargetSpecificCLOption() argument 55 if (Opt == "no-aliases") { in applyTargetSpecificCLOption() 59 if (Opt == "numeric") { in applyTargetSpecificCLOption() 63 if (Opt == "debug") { in applyTargetSpecificCLOption() 67 if (Opt == "abi-names") { in applyTargetSpecificCLOption()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/ |
H A D | AArch64.cpp | 282 for (auto Opt : Opts) { in getAArch64TargetFeatures() local 283 Opt = Opt.trim(); in getAArch64TargetFeatures() 284 if (Opt == "all") { in getAArch64TargetFeatures() 289 if (Opt == "retbr") { in getAArch64TargetFeatures() 293 if (Opt == "blr") { in getAArch64TargetFeatures() 297 if (Opt == "comdat") { in getAArch64TargetFeatures() 301 if (Opt == "nocomdat") { in getAArch64TargetFeatures()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | TextDiagnosticPrinter.cpp | 79 StringRef Opt = DiagnosticIDs::getWarningOptionForDiag(Info.getID()); in printDiagnosticOptions() local 80 if (!Opt.empty()) { in printDiagnosticOptions() 82 << (Level == DiagnosticsEngine::Remark ? "-R" : "-W") << Opt; in printDiagnosticOptions()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86CodeGenPassBuilder.cpp | 60 CodeGenFileType FileType, const CGPassBuilderOption &Opt, in buildCodeGenPipeline() argument 62 auto CGPB = X86CodeGenPassBuilder(*this, Opt, PIC); in buildCodeGenPipeline()
|