Home
last modified time | relevance | path

Searched refs:Arg (Results 1 – 25 of 742) sorted by relevance

12345678910>>...30

/openbsd-src/gnu/llvm/llvm/lib/Option/
H A DArgList.cpp32 void ArgList::append(Arg *A) { in append()
48 for (Arg *const &A : filtered(Id)) { in eraseArg()
50 Arg **ArgsBegin = Args.data(); in eraseArg()
73 if (Arg *A = getLastArg(Pos, Neg)) in hasFlag()
80 if (Arg *A = getLastArg(Pos, PosAlias, Neg)) in hasFlag()
86 if (Arg *A = getLastArg(Id)) in getLastArgValue()
99 if (Arg *A = getLastArg(Pos, Neg)) in addOptInFlag()
107 for (const Arg *Arg : *this) { in AddAllArgsExcept()
110 if (Arg->getOption().matches(Id)) { in AddAllArgsExcept()
117 if (Arg->getOption().matches(Id)) { in AddAllArgsExcept()
[all …]
H A DArg.cpp21 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const Arg *BaseArg) in Arg() function in Arg
25 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() function in Arg
26 const Arg *BaseArg) in Arg()
32 Arg::Arg(const Option Opt, StringRef S, unsigned Index, const char *Value0, in Arg() function in Arg
33 const char *Value1, const Arg *BaseArg) in Arg()
40 Arg::~Arg() { in ~Arg()
47 void Arg::print(raw_ostream& O) const { in print()
65 LLVM_DUMP_METHOD void Arg::dump() const { print(dbgs()); } in dump()
68 std::string Arg::getAsString(const ArgList &Args) const { in getAsString()
87 void Arg::renderAsInput(const ArgList &Args, ArgStringList &Output) const { in renderAsInput()
[all …]
/openbsd-src/gnu/llvm/clang/tools/scan-build/libexec/
H A Dccc-analyzer500 my $Arg = $ARGV[$i];
501 my @ArgParts = split /=/,$Arg,2;
510 if ($Arg =~ /^-(E|MM?)$/) { $Action = 'preprocess'; }
511 elsif ($Arg eq '-c') { $Action = 'compile'; }
512 elsif ($Arg =~ /^-print-prog-name/) { exit 0; }
515 if ($Arg eq "-arch") {
527 if ($Arg =~ /^-isysroot/) {
534 push @CompileOpts,$Arg;
539 if ($Arg =~ /^-iquote.*/) {
540 push @CompileOpts,$Arg;
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Option/
H A DArg.h34 class Arg {
41 const Arg *BaseArg;
64 std::unique_ptr<Arg> Alias;
67 Arg(const Option Opt, StringRef Spelling, unsigned Index,
68 const Arg *BaseArg = nullptr);
69 Arg(const Option Opt, StringRef Spelling, unsigned Index,
70 const char *Value0, const Arg *BaseArg = nullptr);
71 Arg(const Option Opt, StringRef Spelling, unsigned Index,
72 const char *Value0, const char *Value1, const Arg *BaseArg = nullptr);
73 Arg(const Arg &) = delete;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp120 void handleByValParam(Argument *Arg);
235 static void adjustByValArgAlignment(Argument *Arg, Value *ArgInParamAS, in adjustByValArgAlignment() argument
237 Function *Func = Arg->getParent(); in adjustByValArgAlignment()
238 Type *StructType = Arg->getParamByValType(); in adjustByValArgAlignment()
244 Arg->getAttribute(Attribute::Alignment).getValueAsInt(); in adjustByValArgAlignment()
250 << CurArgAlign << " for " << *Arg << '\n'); in adjustByValArgAlignment()
254 Arg->removeAttr(Attribute::Alignment); in adjustByValArgAlignment()
255 Arg->addAttr(NewAlignAttr); in adjustByValArgAlignment()
313 void NVPTXLowerArgs::handleByValParam(Argument *Arg) { in handleByValParam() argument
314 Function *Func = Arg->getParent(); in handleByValParam()
[all …]
/openbsd-src/gnu/llvm/libcxx/benchmarks/
H A Dunordered_set_operations.bench.cpp149 getRandomIntegerInputs<uint32_t>) -> Arg(TestNumInputs);
154 getRandomIntegerInputs<uint32_t>) -> Arg(TestNumInputs);
159 getSortedTopBitsIntegerInputs<uint32_t>) -> Arg(TestNumInputs);
164 getSortedTopBitsIntegerInputs<uint32_t>) -> Arg(TestNumInputs);
176 getRandomIntegerInputs<uint32_t>)->Arg(TestNumInputs);
181 getSortedIntegerInputs<uint32_t>)->Arg(TestNumInputs);
187 getSortedTopBitsIntegerInputs<uint32_t>)->Arg(TestNumInputs);
192 getSortedTopBitsIntegerInputs<uint32_t>)->Arg(TestNumInputs);
198 getRandomStringInputs)->Arg(TestNumInputs);
203 getRandomStringInputs)->Arg(TestNumInputs);
[all …]
H A Djoin_view.bench.cpp17 benchmark->Arg(0) in run_sizes()
18 ->Arg(1) in run_sizes()
19 ->Arg(2) in run_sizes()
20 ->Arg(64) in run_sizes()
21 ->Arg(512) in run_sizes()
22 ->Arg(1024) in run_sizes()
23 ->Arg(4000) in run_sizes()
24 ->Arg(4096) in run_sizes()
25 ->Arg(5500) in run_sizes()
26 ->Arg(64000) in run_sizes()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Tooling/
H A DArgumentsAdjusters.cpp25 for (const auto &Arg : Args) { in getDriverMode() local
26 StringRef ArgRef = Arg; in getDriverMode()
45 StringRef Arg = Args[i]; in getClangSyntaxOnlyAdjuster() local
47 if (llvm::any_of(OutputCommands, [&Arg](llvm::StringRef OutputCommand) { in getClangSyntaxOnlyAdjuster()
48 return Arg.startswith(OutputCommand); in getClangSyntaxOnlyAdjuster()
52 if (!Arg.startswith("-fcolor-diagnostics") && in getClangSyntaxOnlyAdjuster()
53 !Arg.startswith("-fdiagnostics-color")) in getClangSyntaxOnlyAdjuster()
61 if (Arg == "-fsyntax-only") in getClangSyntaxOnlyAdjuster()
75 StringRef Arg = Args[i]; in getClangStripOutputAdjuster() local
76 if (!Arg.startswith("-o")) in getClangStripOutputAdjuster()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DAliasAnalysisEvaluator.h42 AAEvaluator(AAEvaluator &&Arg) in AAEvaluator() argument
43 : FunctionCount(Arg.FunctionCount), NoAliasCount(Arg.NoAliasCount), in AAEvaluator()
44 MayAliasCount(Arg.MayAliasCount), in AAEvaluator()
45 PartialAliasCount(Arg.PartialAliasCount), in AAEvaluator()
46 MustAliasCount(Arg.MustAliasCount), NoModRefCount(Arg.NoModRefCount), in AAEvaluator()
47 ModCount(Arg.ModCount), RefCount(Arg.RefCount), in AAEvaluator()
48 ModRefCount(Arg.ModRefCount) { in AAEvaluator()
49 Arg.FunctionCount = 0; in AAEvaluator()
H A DLazyValueInfo.h45 LazyValueInfo(LazyValueInfo &&Arg) in LazyValueInfo() argument
46 : AC(Arg.AC), DL(Arg.DL), TLI(Arg.TLI), PImpl(Arg.PImpl) { in LazyValueInfo()
47 Arg.PImpl = nullptr; in LazyValueInfo()
49 LazyValueInfo &operator=(LazyValueInfo &&Arg) {
51 AC = Arg.AC;
52 DL = Arg.DL;
53 TLI = Arg.TLI;
54 PImpl = Arg.PImpl;
55 Arg.PImpl = nullptr;
H A DBasicAliasAnalysis.h56 BasicAAResult(const BasicAAResult &Arg) in BasicAAResult() argument
57 : AAResultBase(Arg), DL(Arg.DL), F(Arg.F), TLI(Arg.TLI), AC(Arg.AC), in BasicAAResult()
58 DT(Arg.DT) {} in BasicAAResult()
59 BasicAAResult(BasicAAResult &&Arg) in BasicAAResult() argument
60 : AAResultBase(std::move(Arg)), DL(Arg.DL), F(Arg.F), TLI(Arg.TLI), in BasicAAResult()
61 AC(Arg.AC), DT(Arg.DT) {} in BasicAAResult()
/openbsd-src/gnu/llvm/llvm/tools/llvm-objcopy/
H A DObjcopyOptions.cpp605 for (auto *Arg : InputArgs.filtered(OBJCOPY_UNKNOWN)) in parseObjcopyOptions() local
607 Arg->getAsString(InputArgs).c_str()); in parseObjcopyOptions()
609 for (auto *Arg : InputArgs.filtered(OBJCOPY_INPUT)) in parseObjcopyOptions() local
610 Positional.push_back(Arg->getValue()); in parseObjcopyOptions()
680 for (const auto *Arg : InputArgs.filtered(OBJCOPY_subsystem)) { in parseObjcopyOptions() local
682 std::tie(Subsystem, Version) = StringRef(Arg->getValue()).split(':'); in parseObjcopyOptions()
770 if (auto Arg = InputArgs.getLastArg(OBJCOPY_extract_partition)) in parseObjcopyOptions() local
771 Config.ExtractPartition = Arg->getValue(); in parseObjcopyOptions()
773 for (auto *Arg : InputArgs.filtered(OBJCOPY_redefine_symbol)) { in parseObjcopyOptions() local
774 if (!StringRef(Arg->getValue()).contains('=')) in parseObjcopyOptions()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_wrappers.cpp47 struct Arg { struct
59 GetTypes<__VA_ARGS__>::Arg<0>::Type) __attribute__((weak)); \
61 GetTypes<__VA_ARGS__>::Arg<0>::Type arg0) { \
67 GetTypes<__VA_ARGS__>::Arg<0>::Type, \
68 GetTypes<__VA_ARGS__>::Arg<1>::Type) __attribute__((weak)); \
70 GetTypes<__VA_ARGS__>::Arg<0>::Type arg0, \
71 GetTypes<__VA_ARGS__>::Arg<1>::Type arg1) { \
77 GetTypes<__VA_ARGS__>::Arg<0>::Type, \
78 GetTypes<__VA_ARGS__>::Arg<1>::Type, \
79 GetTypes<__VA_ARGS__>::Arg<2>::Type) __attribute__((weak)); \
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp92 for (Argument &Arg : F.args()) { in runOnFunction()
93 const bool IsByRef = Arg.hasByRefAttr(); in runOnFunction()
94 Type *ArgTy = IsByRef ? Arg.getParamByRefType() : Arg.getType(); in runOnFunction()
95 MaybeAlign ParamAlign = IsByRef ? Arg.getParamAlign() : std::nullopt; in runOnFunction()
104 if (Arg.use_empty()) in runOnFunction()
112 Arg.getName() + ".byval.kernarg.offset"); in runOnFunction()
115 ArgOffsetPtr, Arg.getType()); in runOnFunction()
116 Arg.replaceAllUsesWith(CastOffsetPtr); in runOnFunction()
132 if (Arg.hasNoAliasAttr()) in runOnFunction()
158 Arg.getName() + ".kernarg.offset.align.down"); in runOnFunction()
[all …]
H A DAMDGPUHSAMetadataStreamer.cpp24 static std::pair<Type *, Align> getArgumentTypeAlign(const Argument &Arg, in getArgumentTypeAlign() argument
26 Type *Ty = Arg.getType(); in getArgumentTypeAlign()
28 if (Arg.hasByRefAttr()) { in getArgumentTypeAlign()
29 Ty = Arg.getParamByRefType(); in getArgumentTypeAlign()
30 ArgAlign = Arg.getParamAlign(); in getArgumentTypeAlign()
282 for (auto &Arg : Func.args()) in emitKernelArgs() local
283 emitKernelArg(Arg); in emitKernelArgs()
288 void MetadataStreamerYamlV2::emitKernelArg(const Argument &Arg) { in emitKernelArg() argument
289 auto Func = Arg.getParent(); in emitKernelArg()
290 auto ArgNo = Arg.getArgNo(); in emitKernelArg()
[all …]
H A DAMDGPURewriteOutArguments.cpp86 Type *getStoredType(Value &Arg) const;
87 Type *getOutArgumentType(Argument &Arg) const;
113 Type *AMDGPURewriteOutArguments::getStoredType(Value &Arg) const { in getStoredType()
118 for (Use &U : Arg.uses()) in getStoredType()
152 Type *AMDGPURewriteOutArguments::getOutArgumentType(Argument &Arg) const { in getOutArgumentType()
154 PointerType *ArgTy = dyn_cast<PointerType>(Arg.getType()); in getOutArgumentType()
159 Arg.hasByValAttr() || Arg.hasStructRetAttr()) { in getOutArgumentType()
163 Type *StoredType = getStoredType(Arg); in getOutArgumentType()
200 for (Argument &Arg : F.args()) { in runOnFunction()
201 if (Type *Ty = getOutArgumentType(Arg)) { in runOnFunction()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerCommand.h54 bool hasArgument(const std::string &Arg) const { in hasArgument() argument
56 return std::find(Args.begin(), i, Arg) != i; in hasArgument()
65 void addArgument(const std::string &Arg) { in addArgument() argument
66 Args.insert(endMutableArgs(), Arg); in addArgument()
77 void removeArgument(const std::string &Arg) { in removeArgument() argument
79 Args.erase(std::remove(Args.begin(), i, Arg), i); in removeArgument()
84 std::string Arg("-" + Flag + "="); in hasFlag()
86 return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0; in hasFlag()
95 std::string Arg("-" + Flag + "="); in getFlagValue()
97 return Arg.compare(0, std::string::npos, Other, 0, Arg.length()) == 0; in getFlagValue()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Driver/
H A DSanitizerArgs.cpp113 static SanitizerMask parseArgValues(const Driver &D, const llvm::opt::Arg *A,
118 static int parseCoverageFeatures(const Driver &D, const llvm::opt::Arg *A,
123 static int parseBinaryMetadataFeatures(const Driver &D, const llvm::opt::Arg *A,
138 static std::string describeSanitizeArg(const llvm::opt::Arg *A,
204 for (const auto *Arg : Args) { in parseSpecialCaseListArg() local
206 if (Arg->getOption().matches(SCLOptionID)) { in parseSpecialCaseListArg()
207 Arg->claim(); in parseSpecialCaseListArg()
208 std::string SCLPath = Arg->getValue(); in parseSpecialCaseListArg()
215 } else if (Arg->getOption().matches(NoSCLOptionID)) { in parseSpecialCaseListArg()
216 Arg->claim(); in parseSpecialCaseListArg()
[all …]
/openbsd-src/gnu/llvm/lldb/source/Commands/
H A DOptions.td31 def setwrite_file : Option<"file", "f">, Required, Arg<"Filename">,
39 def setread_file : Option<"file", "f">, Required, Arg<"Filename">,
68 Arg<"Count">,
71 Arg<"Boolean">,
74 Arg<"ThreadIndex">, Desc<"The breakpoint stops only for the thread whose "
77 Arg<"ThreadID">, Desc<"The breakpoint stops only for the thread whose TID "
80 Arg<"ThreadName">, Desc<"The breakpoint stops only for the thread whose "
83 Arg<"QueueName">, Desc<"The breakpoint stops only for threads in the queue "
86 Arg<"Expression">, Desc<"The breakpoint stops only if this condition "
89 Arg<"Boolean">,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DMemoryLocation.cpp164 const Value *Arg = Call->getArgOperand(ArgIdx); in getForArgument() local
183 return MemoryLocation(Arg, LocationSize::precise(LenCI->getZExtValue()), in getForArgument()
185 return MemoryLocation::getAfter(Arg, AATags); in getForArgument()
192 Arg, in getForArgument()
200 Arg, in getForArgument()
207 Arg, in getForArgument()
216 return MemoryLocation(Arg, LocationSize::precise(0), AATags); in getForArgument()
219 Arg, in getForArgument()
229 Arg, LocationSize::precise(DL.getTypeStoreSize(II->getType())), in getForArgument()
234 return MemoryLocation(Arg, in getForArgument()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/ARC/
H A DARCTargetTransformInfo.h45 ARCTTIImpl(const ARCTTIImpl &Arg) in ARCTTIImpl() argument
46 : BaseT(static_cast<const BaseT &>(Arg)), ST(Arg.ST), TLI(Arg.TLI) {} in ARCTTIImpl()
47 ARCTTIImpl(ARCTTIImpl &&Arg) in ARCTTIImpl() argument
48 : BaseT(std::move(static_cast<BaseT &>(Arg))), ST(std::move(Arg.ST)), in ARCTTIImpl()
49 TLI(std::move(Arg.TLI)) {} in ARCTTIImpl()
/openbsd-src/gnu/llvm/llvm/tools/llvm-config/
H A Dllvm-config.cpp519 StringRef Arg = argv[i]; in main() local
521 if (Arg.startswith("-")) { in main()
523 if (Arg == "--version") { in main()
525 } else if (Arg == "--prefix") { in main()
527 } else if (Arg == "--bindir") { in main()
529 } else if (Arg == "--includedir") { in main()
531 } else if (Arg == "--libdir") { in main()
533 } else if (Arg == "--cmakedir") { in main()
535 } else if (Arg == "--cppflags") { in main()
537 } else if (Arg == "--cflags") { in main()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp25 static Value *fitArgInto64Bits(IRBuilder<> &Builder, Value *Arg) { in fitArgInto64Bits() argument
27 auto Ty = Arg->getType(); in fitArgInto64Bits()
32 return Builder.CreateZExt(Arg, Int64Ty); in fitArgInto64Bits()
34 return Arg; in fitArgInto64Bits()
39 return Builder.CreateBitCast(Arg, Int64Ty); in fitArgInto64Bits()
43 return Builder.CreatePtrToInt(Arg, Int64Ty); in fitArgInto64Bits()
72 static Value *appendArg(IRBuilder<> &Builder, Value *Desc, Value *Arg, in appendArg() argument
74 auto Arg0 = fitArgInto64Bits(Builder, Arg); in appendArg()
161 static Value *appendString(IRBuilder<> &Builder, Value *Desc, Value *Arg, in appendString() argument
163 Arg = Builder.CreateBitCast( in appendString()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DObjCARCOpts.cpp86 static const Value *FindSingleUseIdentifiedObject(const Value *Arg) { in FindSingleUseIdentifiedObject() argument
89 if (isa<ConstantData>(Arg)) in FindSingleUseIdentifiedObject()
92 if (Arg->hasOneUse()) { in FindSingleUseIdentifiedObject()
93 if (const BitCastInst *BC = dyn_cast<BitCastInst>(Arg)) in FindSingleUseIdentifiedObject()
95 if (const GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Arg)) in FindSingleUseIdentifiedObject()
98 if (IsForwarding(GetBasicARCInstKind(Arg))) in FindSingleUseIdentifiedObject()
100 cast<CallInst>(Arg)->getArgOperand(0)); in FindSingleUseIdentifiedObject()
101 if (!IsObjCIdentifiedObject(Arg)) in FindSingleUseIdentifiedObject()
103 return Arg; in FindSingleUseIdentifiedObject()
108 if (IsObjCIdentifiedObject(Arg)) { in FindSingleUseIdentifiedObject()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Remarks/
H A DHotnessThresholdParser.h31 inline Expected<std::optional<uint64_t>> parseHotnessThresholdOption(StringRef Arg) { in parseHotnessThresholdOption() argument
32 if (Arg == "auto") in parseHotnessThresholdOption()
36 if (Arg.getAsInteger(10, Val)) in parseHotnessThresholdOption()
38 "Not an integer: %s", Arg.data()); in parseHotnessThresholdOption()
49 bool parse(cl::Option &O, StringRef ArgName, StringRef Arg, in parse() argument
51 auto ResultOrErr = parseHotnessThresholdOption(Arg); in parse()
53 return O.error("Invalid argument '" + Arg + in parse()

12345678910>>...30