/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/ |
D | ir_builder_mixin.h | 37 template <class... Args> 38 llvm::Value* Add(Args&&... args) { in Add() 39 return mixin_builder()->CreateAdd(std::forward<Args>(args)...); in Add() 42 template <class... Args> 43 llvm::LoadInst* AlignedLoad(Args&&... args) { in AlignedLoad() 44 return mixin_builder()->CreateAlignedLoad(std::forward<Args>(args)...); in AlignedLoad() 47 template <class... Args> 48 llvm::StoreInst* AlignedStore(Args&&... args) { in AlignedStore() 49 return mixin_builder()->CreateAlignedStore(std::forward<Args>(args)...); in AlignedStore() 52 template <class... Args> [all …]
|
/external/clang/lib/Frontend/ |
D | CompilerInvocation.cpp | 81 static unsigned getOptimizationLevel(ArgList &Args, InputKind IK, in getOptimizationLevel() argument 84 if (IK == IK_OpenCL && !Args.hasArg(OPT_cl_opt_disable)) in getOptimizationLevel() 87 if (Arg *A = Args.getLastArg(options::OPT_O_Group)) { in getOptimizationLevel() 100 return getLastArgIntValue(Args, OPT_O, DefaultOpt, Diags); in getOptimizationLevel() 106 static unsigned getOptimizationLevelSize(ArgList &Args) { in getOptimizationLevelSize() argument 107 if (Arg *A = Args.getLastArg(options::OPT_O_Group)) { in getOptimizationLevelSize() 122 static void addDiagnosticArgs(ArgList &Args, OptSpecifier Group, in addDiagnosticArgs() argument 125 for (Arg *A : Args.filtered(Group)) { in addDiagnosticArgs() 141 static void getAllNoBuiltinFuncValues(ArgList &Args, in getAllNoBuiltinFuncValues() argument 144 for (const auto &Arg : Args) { in getAllNoBuiltinFuncValues() [all …]
|
/external/clang/lib/Driver/ |
D | Tools.cpp | 55 static void handleTargetFeaturesGroup(const ArgList &Args, in handleTargetFeaturesGroup() argument 58 for (const Arg *A : Args.filtered(Group)) { in handleTargetFeaturesGroup() 69 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in handleTargetFeaturesGroup() 113 static void CheckPreprocessingOptions(const Driver &D, const ArgList &Args) { in CheckPreprocessingOptions() argument 114 if (Arg *A = Args.getLastArg(options::OPT_C, options::OPT_CC)) { in CheckPreprocessingOptions() 115 if (!Args.hasArg(options::OPT_E) && !Args.hasArg(options::OPT__SLASH_P) && in CheckPreprocessingOptions() 116 !Args.hasArg(options::OPT__SLASH_EP) && !D.CCCIsCPP()) { in CheckPreprocessingOptions() 118 << A->getBaseArg().getAsString(Args) in CheckPreprocessingOptions() 126 static void CheckCodeGenerationOptions(const Driver &D, const ArgList &Args) { in CheckCodeGenerationOptions() argument 128 if (Args.hasArg(options::OPT_static)) in CheckCodeGenerationOptions() [all …]
|
D | ToolChain.cpp | 35 static llvm::opt::Arg *GetRTTIArgument(const ArgList &Args) { in GetRTTIArgument() argument 36 return Args.getLastArg(options::OPT_mkernel, options::OPT_fapple_kext, in GetRTTIArgument() 40 static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args, in CalculateRTTIMode() argument 57 Arg *Exceptions = Args.getLastArgNoClaim( in CalculateRTTIMode() 69 const ArgList &Args) in ToolChain() argument 70 : D(D), Triple(T), Args(Args), CachedRTTIArg(GetRTTIArgument(Args)), in ToolChain() 71 CachedRTTIMode(CalculateRTTIMode(Args, Triple, CachedRTTIArg)) { in ToolChain() 72 if (Arg *A = Args.getLastArg(options::OPT_mthread_model)) in ToolChain() 75 << A->getValue() << A->getAsString(Args); in ToolChain() 84 return Args.hasFlag(options::OPT_fintegrated_as, in useIntegratedAs() [all …]
|
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
D | construct_types.pass.cpp | 42 template <class ...Args> 43 void construct(Args&&... args) { in construct() 44 A.construct(ptr, std::forward<Args>(args)...); in construct() 54 template <class T, class ...Args> 55 bool doTest(UsesAllocatorType UAExpect, Args&&... args) in doTest() 59 TH.construct(std::forward<Args>(args)...); in doTest() 60 return checkConstruct<Args&&...>(*TH.ptr, UAExpect, &TH.R); in doTest() 65 template <class T, class ...Args> 66 bool doTestUsesAllocV0(Args&&... args) in doTestUsesAllocV0() 70 TH.construct(std::forward<Args>(args)...); in doTestUsesAllocV0() [all …]
|
/external/grpc-grpc/test/cpp/microbenchmarks/ |
D | bm_fullstack_unary_ping_pong.cc | 35 b->Args({0, 0}); in SweepSizesArgs() 37 b->Args({i, 0}); in SweepSizesArgs() 38 b->Args({0, i}); in SweepSizesArgs() 39 b->Args({i, i}); in SweepSizesArgs() 48 ->Args({0, 0}); 50 ->Args({0, 0}); 56 ->Args({0, 0}); 58 ->Args({0, 0}); 66 ->Args({0, 0}); 69 ->Args({0, 0}); [all …]
|
/external/libcxx/test/support/ |
D | uses_alloc_types.hpp | 116 template <bool IsZero, size_t N, class ArgList, class ...Args> 119 template <class ArgList, class ...Args> 120 struct TakeNImp<true, 0, ArgList, Args...> { 128 template <size_t N, class ...Args> 129 struct TakeNArgs : TakeNImp<N == 0, N, ArgumentListID<>, Args...> {}; 231 template <class ...Args> 232 UsesAllocatorTestBase(std::allocator_arg_t, CtorAlloc const& a, Args&&...) in UsesAllocatorTestBase() 233 : args_id(&makeArgumentID<Args&&...>()), in UsesAllocatorTestBase() 238 template <class ...Args, class ArgsIDL = detail::TakeNArgs<sizeof...(Args) - 1, Args&&...>> 239 UsesAllocatorTestBase(AllocLastTag, Args&&... args) in UsesAllocatorTestBase() [all …]
|
/external/clang/test/SemaCXX/ |
D | issue547.cpp | 9 template<typename R, typename ...Args> 10 struct classify_function<R(Args...)> { 14 template<typename R, typename ...Args> 15 struct classify_function<R(Args...) const> { 19 template<typename R, typename ...Args> 20 struct classify_function<R(Args...) volatile> { 24 template<typename R, typename ...Args> 25 struct classify_function<R(Args...) const volatile> { 29 template<typename R, typename ...Args> 30 struct classify_function<R(Args..., ...)> { [all …]
|
/external/libbrillo/brillo/dbus/ |
D | dbus_object.h | 122 template<typename R, typename... Args> 125 const base::Callback<R(Args...)>& handler) { in AddSimpleMethodHandler() 126 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler() 132 template<typename R, typename... Args> 134 R(*handler)(Args...)) { in AddSimpleMethodHandler() argument 135 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler() 141 template<typename Instance, typename Class, typename R, typename... Args> 144 R(Class::*handler)(Args...)) { in AddSimpleMethodHandler() argument 145 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler() 150 template<typename Instance, typename Class, typename R, typename... Args> [all …]
|
D | dbus_object_internal_impl.h | 70 template<typename R, typename... Args> 77 const base::Callback<R(Args...)>& handler) : handler_(handler) {} in SimpleDBusInterfaceMethodHandler() 82 auto invoke_callback = [this, &method_response](const Args&... args) { in HandleMethod() 89 if (!DBusParamReader<false, Args...>::Invoke( in HandleMethod() 98 base::Callback<R(Args...)> handler_; 104 template<typename... Args> 105 class SimpleDBusInterfaceMethodHandler<void, Args...> 111 const base::Callback<void(Args...)>& handler) : handler_(handler) {} in SimpleDBusInterfaceMethodHandler() 116 auto invoke_callback = [this, &method_response](const Args&... args) { in HandleMethod() 126 if (!DBusParamReader<true, Args...>::Invoke( in HandleMethod() [all …]
|
/external/libchrome/base/ |
D | bind_helpers.h | 26 template <typename R, typename... Args> 27 operator RepeatingCallback<R(Args...)>() const { 28 return RepeatingCallback<R(Args...)>(); 30 template <typename R, typename... Args> 31 operator OnceCallback<R(Args...)>() const { 32 return OnceCallback<R(Args...)>(); 39 template <typename... Args> 40 operator RepeatingCallback<void(Args...)>() const { 41 return Repeatedly<Args...>(); 43 template <typename... Args> [all …]
|
D | bind.h | 108 typename Args, 114 typename... Args, 118 TypeList<Args...>, 121 : AssertConstructible<Ns, Args, std::decay_t<Args>, Unwrapped, Params>... { 160 template <bool is_once, bool is_method, typename... Args> 162 using Type = TypeList<TransformToUnwrappedType<is_once, Args>...>; 169 template <bool is_once, typename Receiver, typename... Args> 170 struct MakeUnwrappedTypeListImpl<is_once, true, Receiver, Args...> { 173 TransformToUnwrappedType<is_once, Args>...>; 176 template <bool is_once, bool is_method, typename... Args> [all …]
|
/external/llvm/lib/Option/ |
D | Option.cpp | 104 Arg *Option::accept(const ArgList &Args, in accept() argument 111 Spelling = StringRef(Args.getArgString(Index), ArgSize); in accept() 113 Spelling = Args.MakeArgString(Twine(UnaliasedOption.getPrefix()) + in accept() 119 if (ArgSize != strlen(Args.getArgString(Index))) in accept() 140 const char *Value = Args.getArgString(Index) + ArgSize; in accept() 145 const char *Str = Args.getArgString(Index) + ArgSize; in accept() 174 if (ArgSize != strlen(Args.getArgString(Index))) in accept() 178 if (Index > Args.getNumInputArgStrings() || in accept() 179 Args.getArgString(Index - 1) == nullptr) in accept() 183 Index - 2, Args.getArgString(Index - 1)); in accept() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Option/ |
D | Option.cpp | 110 Arg *Option::accept(const ArgList &Args, in accept() argument 117 Spelling = StringRef(Args.getArgString(Index), ArgSize); in accept() 119 Spelling = Args.MakeArgString(Twine(UnaliasedOption.getPrefix()) + in accept() 125 if (ArgSize != strlen(Args.getArgString(Index))) in accept() 146 const char *Value = Args.getArgString(Index) + ArgSize; in accept() 151 const char *Str = Args.getArgString(Index) + ArgSize; in accept() 180 if (ArgSize != strlen(Args.getArgString(Index))) in accept() 184 if (Index > Args.getNumInputArgStrings() || in accept() 185 Args.getArgString(Index - 1) == nullptr) in accept() 189 Index - 2, Args.getArgString(Index - 1)); in accept() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 310 ArrayRef<GenericValue> Args) { in lle_X_atexit() argument 311 assert(Args.size() == 1); in lle_X_atexit() 312 TheInterpreter->addAtExitHandler((Function*)GVTOP(Args[0])); in lle_X_atexit() 319 static GenericValue lle_X_exit(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_exit() argument 320 TheInterpreter->exitCalled(Args[0]); in lle_X_exit() 325 static GenericValue lle_X_abort(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_abort() argument 335 ArrayRef<GenericValue> Args) { in lle_X_sprintf() argument 336 char *OutputBuffer = (char *)GVTOP(Args[0]); in lle_X_sprintf() 337 const char *FmtStr = (const char *)GVTOP(Args[1]); in lle_X_sprintf() 374 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 300 ArrayRef<GenericValue> Args) { in lle_X_atexit() argument 301 assert(Args.size() == 1); in lle_X_atexit() 302 TheInterpreter->addAtExitHandler((Function*)GVTOP(Args[0])); in lle_X_atexit() 309 static GenericValue lle_X_exit(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_exit() argument 310 TheInterpreter->exitCalled(Args[0]); in lle_X_exit() 315 static GenericValue lle_X_abort(FunctionType *FT, ArrayRef<GenericValue> Args) { in lle_X_abort() argument 325 ArrayRef<GenericValue> Args) { in lle_X_sprintf() argument 326 char *OutputBuffer = (char *)GVTOP(Args[0]); in lle_X_sprintf() 327 const char *FmtStr = (const char *)GVTOP(Args[1]); in lle_X_sprintf() 364 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/ |
D | FuzzerCLI.cpp | 40 std::vector<std::string> Args{ExecName}; in handleExecNameEncodedBEOpts() local 50 Args.push_back("-global-isel"); in handleExecNameEncodedBEOpts() 52 Args.push_back("-O0"); in handleExecNameEncodedBEOpts() 54 Args.push_back("-" + Opt.str()); in handleExecNameEncodedBEOpts() 56 Args.push_back("-mtriple=" + Opt.str()); in handleExecNameEncodedBEOpts() 63 for (int I = 1, E = Args.size(); I < E; ++I) in handleExecNameEncodedBEOpts() 64 errs() << " " << Args[I]; in handleExecNameEncodedBEOpts() 68 CLArgs.reserve(Args.size()); in handleExecNameEncodedBEOpts() 69 for (std::string &S : Args) in handleExecNameEncodedBEOpts() 77 std::vector<std::string> Args{ExecName}; in handleExecNameEncodedOptimizerOpts() local [all …]
|
/external/clang/tools/scan-build/bin/ |
D | scan-build | 249 my $Args = shift; 252 die "No build command." if (scalar(@$Args) == 0); 254 my $Cmd = $$Args[0]; 924 my $Args = shift; 928 foreach my $k (@$Args) { 936 push @$Args, $Arg; 970 my $Args = shift; 977 AddIfNotPresent($Args,"-PBXBuildsContinueAfterErrors=YES"); 983 open(DETECT_XCODE, "-|", $Args->[0], "-version") or 1011 push @$Args, [all …]
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
D | ext-blocks.cpp | 4 template<typename ...Args> 5 int f0(Args ...args) { in f0() 7 return sizeof...(Args); in f0() 13 template<typename ...Args> 14 int f1(Args ...args) { in f1() 23 template<typename ...Args> 24 int f2(Args ...args) { in f2() 25 return ^(Args ...block_args) { in f2() 32 template<typename ...Args> 33 int f3(Args ...args) { in f3() [all …]
|
/external/parameter-framework/upstream/test/functional-tests/include/ |
D | FailureWrapper.hpp | 59 template <class... Args> 60 FailureWrapper(Args &&... args) : Base(std::forward<Args>(args)...) in FailureWrapper() 69 template <class K, class... MArgs, class... Args> 70 void mayFailCall(bool (K::*method)(MArgs...) const, Args &&... args) const in mayFailCall() 72 wrapCall<bool>(*this, method, std::forward<Args>(args)...); in mayFailCall() 80 template <class K, class... MArgs, class... Args> 81 void mayFailCall(bool (K::*method)(MArgs...), Args &&... args) in mayFailCall() 83 wrapCall<bool>(*this, method, std::forward<Args>(args)...); in mayFailCall() 91 template <class K, class ReturnType, class... MArgs, class... Args> 92 ReturnType *mayFailCall(ReturnType *(K::*method)(MArgs...), Args &&... args) in mayFailCall() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 308 const std::vector<GenericValue> &Args) { in lle_X_atexit() argument 309 assert(Args.size() == 1); in lle_X_atexit() 310 TheInterpreter->addAtExitHandler((Function*)GVTOP(Args[0])); in lle_X_atexit() 318 const std::vector<GenericValue> &Args) { in lle_X_exit() argument 319 TheInterpreter->exitCalled(Args[0]); in lle_X_exit() 325 const std::vector<GenericValue> &Args) { in lle_X_abort() argument 335 const std::vector<GenericValue> &Args) { in lle_X_sprintf() argument 336 char *OutputBuffer = (char *)GVTOP(Args[0]); in lle_X_sprintf() 337 const char *FmtStr = (const char *)GVTOP(Args[1]); in lle_X_sprintf() 374 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() [all …]
|
/external/clang/unittests/AST/ |
D | StmtPrinterTest.cpp | 70 PrintedStmtMatches(StringRef Code, const std::vector<std::string> &Args, in PrintedStmtMatches() argument 79 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args)) in PrintedStmtMatches() 103 std::vector<std::string> Args; in PrintedStmtCXX98Matches() local 104 Args.push_back("-std=c++98"); in PrintedStmtCXX98Matches() 105 Args.push_back("-Wno-unused-value"); in PrintedStmtCXX98Matches() 106 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted); in PrintedStmtCXX98Matches() 113 std::vector<std::string> Args; in PrintedStmtCXX98Matches() local 114 Args.push_back("-std=c++98"); in PrintedStmtCXX98Matches() 115 Args.push_back("-Wno-unused-value"); in PrintedStmtCXX98Matches() 117 Args, in PrintedStmtCXX98Matches() [all …]
|
/external/clang/unittests/Tooling/ |
D | ToolingTest.cpp | 159 std::vector<std::string> Args; in TEST() local 160 Args.push_back("tool-executable"); in TEST() 161 Args.push_back("-Idef"); in TEST() 162 Args.push_back("-fsyntax-only"); in TEST() 163 Args.push_back("test.cpp"); in TEST() 164 clang::tooling::ToolInvocation Invocation(Args, new SyntaxOnlyAction, in TEST() 185 std::vector<std::string> Args; in TEST() local 186 Args.push_back("tool-executable"); in TEST() 187 Args.push_back("-Idef"); in TEST() 188 Args.push_back("-fsyntax-only"); in TEST() [all …]
|
/external/clang/tools/driver/ |
D | cc1as_main.cpp | 168 InputArgList Args = OptTbl->ParseArgs(Argv, MissingArgIndex, MissingArgCount, in CreateFromArgs() local 174 << Args.getArgString(MissingArgIndex) << MissingArgCount; in CreateFromArgs() 179 for (const Arg *A : Args.filtered(OPT_UNKNOWN)) { in CreateFromArgs() 180 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(Args); in CreateFromArgs() 187 Opts.Triple = llvm::Triple::normalize(Args.getLastArgValue(OPT_triple)); in CreateFromArgs() 188 Opts.CPU = Args.getLastArgValue(OPT_target_cpu); in CreateFromArgs() 189 Opts.Features = Args.getAllArgValues(OPT_target_feature); in CreateFromArgs() 196 Opts.IncludePaths = Args.getAllArgValues(OPT_I); in CreateFromArgs() 197 Opts.NoInitialTextSection = Args.hasArg(OPT_n); in CreateFromArgs() 198 Opts.SaveTemporaryLabels = Args.hasArg(OPT_msave_temp_labels); in CreateFromArgs() [all …]
|
/external/v8/tools/clang/base_bind_rewriters/tests/ |
D | callback.h | 47 template <typename R, typename... Args> 48 class OnceCallback<R(Args...)> { 58 OnceCallback(RepeatingCallback<R(Args...)> other) {} in OnceCallback() 59 OnceCallback& operator=(RepeatingCallback<R(Args...)> other) { return *this; } 61 R Run(Args... args) const & { in Run() 65 R Run(Args... args) && { return R(); } in Run() 68 template <typename R, typename... Args> 69 class RepeatingCallback<R(Args...)> { 79 R Run(Args... args) const & { return R(); } in Run() 80 R Run(Args... args) && { return R(); } in Run() [all …]
|