/external/libcxx/test/std/utilities/meta/meta.rel/ |
D | is_invocable.pass.cpp | 44 using Fn = int(Tag::*)(int); in main() typedef 49 static_assert(std::is_invocable<Fn, Tag&, int>::value, ""); in main() 50 static_assert(std::is_invocable<Fn, DerFromTag&, int>::value, ""); in main() 53 static_assert(!std::is_invocable<Fn, Tag&>::value, ""); in main() 54 static_assert(!std::is_invocable<Fn, Tag const&, int>::value, ""); in main() 61 static_assert(std::is_invocable<Fn, T&, int>::value, ""); in main() 62 static_assert(std::is_invocable<Fn, DT&, int>::value, ""); in main() 63 static_assert(std::is_invocable<Fn, const T&, int>::value, ""); in main() 64 static_assert(std::is_invocable<Fn, T&&, int>::value, ""); in main() 65 static_assert(!std::is_invocable<Fn, CT&, int>::value, ""); in main() [all …]
|
D | is_nothrow_invocable.pass.cpp | 40 template <class Fn, class ...Args> 42 return std::is_invocable<Fn, Args...>::value && in throws_invocable() 43 !std::is_nothrow_invocable<Fn, Args...>::value; in throws_invocable() 46 template <class Ret, class Fn, class ...Args> 48 return std::is_invocable_r<Ret, Fn, Args...>::value && in throws_invocable_r() 49 !std::is_nothrow_invocable_r<Ret, Fn, Args...>::value; in throws_invocable_r() 79 using Fn = CallObject<true, int>; in main() typedef 80 static_assert(std::is_nothrow_invocable_r<Implicit, Fn>::value, ""); in main() 81 static_assert(std::is_nothrow_invocable_r<double, Fn>::value, ""); in main() 82 static_assert(std::is_nothrow_invocable_r<const volatile void, Fn>::value, ""); in main() [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.invoke/ |
D | invoke.pass.cpp | 221 typedef TestClass Fn; in bullet_three_four_tests() typedef 222 Fn cl(42); in bullet_three_four_tests() 224 test_b34<int const&>(static_cast<Fn const&>(cl)); in bullet_three_four_tests() 225 test_b34<int volatile&>(static_cast<Fn volatile&>(cl)); in bullet_three_four_tests() 226 test_b34<int const volatile&>(static_cast<Fn const volatile &>(cl)); in bullet_three_four_tests() 228 test_b34<int&&>(static_cast<Fn &&>(cl)); in bullet_three_four_tests() 229 test_b34<int const&&>(static_cast<Fn const&&>(cl)); in bullet_three_four_tests() 230 test_b34<int volatile&&>(static_cast<Fn volatile&&>(cl)); in bullet_three_four_tests() 231 test_b34<int const volatile&&>(static_cast<Fn const volatile&&>(cl)); in bullet_three_four_tests() 234 typedef DerivedFromTestClass Fn; in bullet_three_four_tests() typedef [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/function.objects/func.invoke/ |
D | invoke.pass.cpp | 226 typedef TestClass Fn; in bullet_three_four_tests() typedef 227 Fn cl(42); in bullet_three_four_tests() 229 test_b34<int const&>(static_cast<Fn const&>(cl)); in bullet_three_four_tests() 230 test_b34<int volatile&>(static_cast<Fn volatile&>(cl)); in bullet_three_four_tests() 231 test_b34<int const volatile&>(static_cast<Fn const volatile &>(cl)); in bullet_three_four_tests() 233 test_b34<int&&>(static_cast<Fn &&>(cl)); in bullet_three_four_tests() 234 test_b34<int const&&>(static_cast<Fn const&&>(cl)); in bullet_three_four_tests() 235 test_b34<int volatile&&>(static_cast<Fn volatile&&>(cl)); in bullet_three_four_tests() 236 test_b34<int const volatile&&>(static_cast<Fn const volatile&&>(cl)); in bullet_three_four_tests() 239 typedef DerivedFromTestClass Fn; in bullet_three_four_tests() typedef [all …]
|
D | invoke_constexpr.pass.cpp | 204 typedef TestClass Fn; in bullet_three_four_tests() typedef 205 Fn cl(42); in bullet_three_four_tests() 207 test_b34<int const&>(static_cast<Fn const&>(cl)); in bullet_three_four_tests() 209 test_b34<int&&>(static_cast<Fn &&>(cl)); in bullet_three_four_tests() 210 test_b34<int const&&>(static_cast<Fn const&&>(cl)); in bullet_three_four_tests() 213 typedef DerivedFromTestClass Fn; in bullet_three_four_tests() typedef 214 Fn cl(42); in bullet_three_four_tests() 216 test_b34<int const&>(static_cast<Fn const&>(cl)); in bullet_three_four_tests() 218 test_b34<int&&>(static_cast<Fn &&>(cl)); in bullet_three_four_tests() 219 test_b34<int const&&>(static_cast<Fn const&&>(cl)); in bullet_three_four_tests() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/meta/meta.rel/ |
D | is_invocable.pass.cpp | 124 using Fn = int (Tag::*)(int); in main() typedef 129 static_assert(std::is_invocable<Fn, Tag&, int>::value, ""); in main() 130 static_assert(std::is_invocable<Fn, DerFromTag&, int>::value, ""); in main() 133 static_assert(!std::is_invocable<Fn, Tag&>::value, ""); in main() 134 static_assert(!std::is_invocable<Fn, Tag const&, int>::value, ""); in main() 141 static_assert(std::is_invocable<Fn, T&, int>::value, ""); in main() 142 static_assert(std::is_invocable<Fn, DT&, int>::value, ""); in main() 143 static_assert(std::is_invocable<Fn, const T&, int>::value, ""); in main() 144 static_assert(std::is_invocable<Fn, T&&, int>::value, ""); in main() 145 static_assert(!std::is_invocable<Fn, CT&, int>::value, ""); in main() [all …]
|
D | is_nothrow_invocable.pass.cpp | 45 template <class Fn, class... Args> 47 return std::is_invocable<Fn, Args...>::value && in throws_invocable() 48 !std::is_nothrow_invocable<Fn, Args...>::value; in throws_invocable() 51 template <class Ret, class Fn, class... Args> 53 return std::is_invocable_r<Ret, Fn, Args...>::value && in throws_invocable_r() 54 !std::is_nothrow_invocable_r<Ret, Fn, Args...>::value; in throws_invocable_r() 156 using Fn = CallObject<true, int>; in main() typedef 157 static_assert(std::is_nothrow_invocable_r<Implicit, Fn>::value, ""); in main() 158 static_assert(std::is_nothrow_invocable_r<double, Fn>::value, ""); in main() 159 static_assert(std::is_nothrow_invocable_r<const volatile void, Fn>::value, in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/variant/variant.visit/ |
D | visit.pass.cpp | 28 using Fn = ForwardingCallObject; in test_call_operator_forwarding() typedef 29 Fn obj{}; in test_call_operator_forwarding() 30 const Fn &cobj = obj; in test_call_operator_forwarding() 33 assert(Fn::check_call<>(CT_NonConst | CT_LValue)); in test_call_operator_forwarding() 35 assert(Fn::check_call<>(CT_Const | CT_LValue)); in test_call_operator_forwarding() 37 assert(Fn::check_call<>(CT_NonConst | CT_RValue)); in test_call_operator_forwarding() 39 assert(Fn::check_call<>(CT_Const | CT_RValue)); in test_call_operator_forwarding() 45 assert(Fn::check_call<int &>(CT_NonConst | CT_LValue)); in test_call_operator_forwarding() 47 assert(Fn::check_call<int &>(CT_Const | CT_LValue)); in test_call_operator_forwarding() 49 assert(Fn::check_call<int &>(CT_NonConst | CT_RValue)); in test_call_operator_forwarding() [all …]
|
D | visit_return_type.pass.cpp | 29 using Fn = ForwardingCallObject; in test_call_operator_forwarding() typedef 30 Fn obj{}; in test_call_operator_forwarding() 31 const Fn &cobj = obj; in test_call_operator_forwarding() 34 assert(Fn::check_call<>(CT_NonConst | CT_LValue)); in test_call_operator_forwarding() 36 assert(Fn::check_call<>(CT_Const | CT_LValue)); in test_call_operator_forwarding() 38 assert(Fn::check_call<>(CT_NonConst | CT_RValue)); in test_call_operator_forwarding() 40 assert(Fn::check_call<>(CT_Const | CT_RValue)); in test_call_operator_forwarding() 46 assert(Fn::check_call<int &>(CT_NonConst | CT_LValue)); in test_call_operator_forwarding() 48 assert(Fn::check_call<int &>(CT_Const | CT_LValue)); in test_call_operator_forwarding() 50 assert(Fn::check_call<int &>(CT_NonConst | CT_RValue)); in test_call_operator_forwarding() [all …]
|
/external/llvm/lib/CodeGen/ |
D | PrologEpilogInserter.cpp | 90 bool runOnMachineFunction(MachineFunction &Fn) override; 120 void calculateCallFrameInfo(MachineFunction &Fn); 121 void calculateSaveRestoreBlocks(MachineFunction &Fn); 123 void calculateFrameObjectOffsets(MachineFunction &Fn); 124 void replaceFrameIndices(MachineFunction &Fn); 125 void replaceFrameIndices(MachineBasicBlock *BB, MachineFunction &Fn, 127 void insertPrologEpilogCode(MachineFunction &Fn); 172 bool PEI::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument 173 const Function* F = Fn.getFunction(); in runOnMachineFunction() 174 const TargetRegisterInfo *TRI = Fn.getSubtarget().getRegisterInfo(); in runOnMachineFunction() [all …]
|
/external/libcxx/test/std/utilities/variant/variant.visit/ |
D | visit.pass.cpp | 95 using Fn = ForwardingCallObject; in test_call_operator_forwarding() typedef 96 Fn obj{}; in test_call_operator_forwarding() 97 const Fn &cobj = obj; in test_call_operator_forwarding() 100 assert(Fn::check_call<>(CT_NonConst | CT_LValue)); in test_call_operator_forwarding() 102 assert(Fn::check_call<>(CT_Const | CT_LValue)); in test_call_operator_forwarding() 104 assert(Fn::check_call<>(CT_NonConst | CT_RValue)); in test_call_operator_forwarding() 106 assert(Fn::check_call<>(CT_Const | CT_RValue)); in test_call_operator_forwarding() 112 assert(Fn::check_call<int &>(CT_NonConst | CT_LValue)); in test_call_operator_forwarding() 114 assert(Fn::check_call<int &>(CT_Const | CT_LValue)); in test_call_operator_forwarding() 116 assert(Fn::check_call<int &>(CT_NonConst | CT_RValue)); in test_call_operator_forwarding() [all …]
|
/external/llvm/include/llvm/Support/ |
D | TargetRegistry.h | 503 MCRelocationInfoCtorTy Fn = MCRelocationInfoCtorFn in createMCRelocationInfo() local 506 return Fn(Triple(TT), Ctx); in createMCRelocationInfo() 526 MCSymbolizerCtorTy Fn = in createMCSymbolizer() local 528 return Fn(Triple(TT), GetOpInfo, SymbolLookUp, DisInfo, Ctx, in createMCSymbolizer() 637 static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn) { in RegisterMCAsmInfo() 638 T.MCAsmInfoCtorFn = Fn; in RegisterMCAsmInfo() 642 Target::MCAdjustCodeGenOptsFnTy Fn) { in registerMCAdjustCodeGenOpts() 643 T.MCAdjustCodeGenOptsFn = Fn; in registerMCAdjustCodeGenOpts() 655 static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn) { in RegisterMCInstrInfo() 656 T.MCInstrInfoCtorFn = Fn; in RegisterMCInstrInfo() [all …]
|
/external/llvm/include/llvm/IR/ |
D | DiagnosticInfo.h | 167 const Function &Fn; 181 DiagnosticInfoResourceLimit(const Function &Fn, 188 Fn(Fn), in DiagnosticInfo() 193 const Function &getFunction() const { return Fn; } in getFunction() 209 DiagnosticInfoStackSize(const Function &Fn, 213 : DiagnosticInfoResourceLimit(Fn, "stack size", StackSize, 346 const Function &Fn, in DiagnosticInfoWithDebugLocBase() argument 348 : DiagnosticInfo(Kind, Severity), Fn(Fn), DLoc(DLoc) {} in DiagnosticInfoWithDebugLocBase() 362 const Function &getFunction() const { return Fn; } in getFunction() 367 const Function &Fn; [all …]
|
/external/clang/test/SemaCXX/ |
D | unaddressable-functions.cpp | 53 template <typename Fn, typename... Args> void call(Fn F, Args... As) { in call() 69 template <typename Fn, typename T, typename... Args> 70 void callMem(Fn F, T t, Args... As) { in callMem() 93 template <typename Fn, typename... Args> auto call(Fn F, Args... As) { in call() 114 FnTy Fn; in test() local 115 (void)(Fn == bothEnableIf); in test() 116 (void)(Fn == &bothEnableIf); in test() 117 (void)(Fn == oneEnableIf); in test() 118 (void)(Fn == &oneEnableIf); in test() 125 FnTy Fn; in testUnavailable() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | CFLSteensAliasAnalysis.cpp | 77 FunctionInfo(Function &Fn, const SmallVectorImpl<Value *> &RetVals, 117 Function &Fn, const SmallVectorImpl<Value *> &RetVals, in FunctionInfo() argument 122 if (Fn.arg_size() > MaxSupportedArgsInSummary) in FunctionInfo() 174 for (auto &Param : Fn.args()) { in FunctionInfo() 185 CFLSteensAAResult::FunctionInfo CFLSteensAAResult::buildSetsFrom(Function *Fn) { in buildSetsFrom() argument 186 CFLGraphBuilder<CFLSteensAAResult> GraphBuilder(*this, GetTLI(*Fn), *Fn); in buildSetsFrom() 224 return FunctionInfo(*Fn, GraphBuilder.getReturnValues(), SetBuilder.build()); in buildSetsFrom() 227 void CFLSteensAAResult::scan(Function *Fn) { in scan() argument 228 auto InsertPair = Cache.insert(std::make_pair(Fn, Optional<FunctionInfo>())); in scan() 236 auto FunInfo = buildSetsFrom(Fn); in scan() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCBranchSelector.cpp | 51 unsigned ComputeBlockSizes(MachineFunction &Fn); 52 void modifyAdjustment(MachineFunction &Fn); 53 int computeBranchSize(MachineFunction &Fn, 58 bool runOnMachineFunction(MachineFunction &Fn) override; 106 static inline unsigned GetInitialOffset(MachineFunction &Fn) { in GetInitialOffset() argument 108 if (Fn.getSubtarget<PPCSubtarget>().isELFv2ABI() && in GetInitialOffset() 109 !Fn.getRegInfo().use_empty(PPC::X2)) in GetInitialOffset() 115 unsigned PPCBSel::ComputeBlockSizes(MachineFunction &Fn) { in ComputeBlockSizes() argument 117 static_cast<const PPCInstrInfo *>(Fn.getSubtarget().getInstrInfo()); in ComputeBlockSizes() 118 unsigned FuncSize = GetInitialOffset(Fn); in ComputeBlockSizes() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | TargetRegistry.h | 564 MCRelocationInfoCtorTy Fn = MCRelocationInfoCtorFn in createMCRelocationInfo() local 567 return Fn(Triple(TT), Ctx); in createMCRelocationInfo() 587 MCSymbolizerCtorTy Fn = in createMCSymbolizer() local 589 return Fn(Triple(TT), GetOpInfo, SymbolLookUp, DisInfo, Ctx, in createMCSymbolizer() 705 static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn) { in RegisterMCAsmInfo() 706 T.MCAsmInfoCtorFn = Fn; in RegisterMCAsmInfo() 718 static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn) { in RegisterMCInstrInfo() 719 T.MCInstrInfoCtorFn = Fn; in RegisterMCInstrInfo() 725 Target::MCInstrAnalysisCtorFnTy Fn) { in RegisterMCInstrAnalysis() 726 T.MCInstrAnalysisCtorFn = Fn; in RegisterMCInstrAnalysis() [all …]
|
/external/armnn/third-party/mapbox/ |
D | variant_visitor.hpp | 17 template <typename Fn> 18 struct visitor<Fn> : Fn 20 using Fn::operator(); 23 visitor(T&& fn) : Fn(std::forward<T>(fn)) {} in visitor() 26 template <typename Fn, typename... Fns> 27 struct visitor<Fn, Fns...> : Fn, visitor<Fns...> 29 using Fn::operator(); 34 : Fn(std::forward<T>(fn)) in visitor()
|
/external/rust/crates/protobuf-codegen/2.27.1/src/ |
D | code_writer.rs | 85 F: Fn(&mut CodeWriter), in indented() 96 F: Fn(&mut CodeWriter), in commented() 120 F: Fn(&mut CodeWriter), in lazy_static_decl_get() 141 F: Fn(&mut CodeWriter), in block() 150 F: Fn(&mut CodeWriter), in expr_block() 157 F: Fn(&mut CodeWriter), in stmt_block() 164 F: Fn(&mut CodeWriter), in unsafe_expr() 171 F: Fn(&mut CodeWriter), in impl_self_block() 178 F: Fn(&mut CodeWriter), in impl_for_block() 185 F: Fn(&mut CodeWriter), in impl_args_for_block() [all …]
|
/external/llvm/lib/Analysis/ |
D | CFLSteensAliasAnalysis.cpp | 74 FunctionInfo(Function &Fn, const SmallVectorImpl<Value *> &RetVals, 129 Function &Fn, const SmallVectorImpl<Value *> &RetVals, in FunctionInfo() argument 134 if (Fn.arg_size() > MaxSupportedArgsInSummary) in FunctionInfo() 186 for (auto &Param : Fn.args()) { in FunctionInfo() 197 CFLSteensAAResult::FunctionInfo CFLSteensAAResult::buildSetsFrom(Function *Fn) { in buildSetsFrom() argument 198 CFLGraphBuilder<CFLSteensAAResult> GraphBuilder(*this, TLI, *Fn); in buildSetsFrom() 236 return FunctionInfo(*Fn, GraphBuilder.getReturnValues(), SetBuilder.build()); in buildSetsFrom() 239 void CFLSteensAAResult::scan(Function *Fn) { in scan() argument 240 auto InsertPair = Cache.insert(std::make_pair(Fn, Optional<FunctionInfo>())); in scan() 248 auto FunInfo = buildSetsFrom(Fn); in scan() [all …]
|
/external/pigweed/pw_result/public/pw_result/ |
D | result.h | 565 template <typename Fn, 566 typename Ret = internal_result::InvokeResultType<Fn, T&>, 568 constexpr Ret and_then(Fn&& function) & { in and_then() 571 return ok() ? std::invoke(std::forward<Fn>(function), value()) in and_then() 575 template <typename Fn, 576 typename Ret = internal_result::InvokeResultType<Fn, T&&>, 578 constexpr auto and_then(Fn&& function) && { in and_then() 581 return ok() ? std::invoke(std::forward<Fn>(function), std::move(value())) in and_then() 585 template <typename Fn, 586 typename Ret = internal_result::InvokeResultType<Fn, const T&>, [all …]
|
/external/rust/crates/rayon/src/iter/ |
D | mod.rs | 87 use std::ops::{Fn, RangeBounds}; 377 OP: Fn(Self::Item) + Sync + Send, in for_each() 407 OP: Fn(&mut T, Self::Item) + Sync + Send, in for_each_with() 441 OP: Fn(&mut T, Self::Item) + Sync + Send, in for_each_init() 442 INIT: Fn() -> T + Sync + Send, in for_each_init() 469 OP: Fn(Self::Item) -> R + Sync + Send, in try_for_each() 508 OP: Fn(&mut T, Self::Item) -> R + Sync + Send, in try_for_each_with() 550 OP: Fn(&mut T, Self::Item) -> R + Sync + Send, in try_for_each_init() 551 INIT: Fn() -> T + Sync + Send, in try_for_each_init() 596 F: Fn(Self::Item) -> R + Sync + Send, in map() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsCCState.h | 74 CCAssignFn Fn, in AnalyzeCallOperands() argument 78 CCState::AnalyzeCallOperands(Outs, Fn); in AnalyzeCallOperands() 88 CCAssignFn Fn) = delete; 91 CCAssignFn Fn) = delete; 94 CCAssignFn Fn) { in AnalyzeFormalArguments() argument 96 CCState::AnalyzeFormalArguments(Ins, Fn); in AnalyzeFormalArguments() 102 CCAssignFn Fn, in AnalyzeCallResult() argument 105 CCState::AnalyzeCallResult(Ins, Fn); in AnalyzeCallResult() 111 CCAssignFn Fn) { in AnalyzeReturn() argument 113 CCState::AnalyzeReturn(Outs, Fn); in AnalyzeReturn() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | DiagnosticInfo.h | 179 const Function &Fn; 193 DiagnosticInfoResourceLimit(const Function &Fn, const char *ResourceName, 198 : DiagnosticInfo(Kind, Severity), Fn(Fn), ResourceName(ResourceName), in DiagnosticInfo() 201 const Function &getFunction() const { return Fn; } in getFunction() 217 DiagnosticInfoStackSize(const Function &Fn, uint64_t StackSize, 220 : DiagnosticInfoResourceLimit(Fn, "stack size", StackSize, Severity, 372 const Function &Fn, in DiagnosticInfoWithLocationBase() argument 374 : DiagnosticInfo(Kind, Severity), Fn(Fn), Loc(Loc) {} in DiagnosticInfoWithLocationBase() 392 const Function &getFunction() const { return Fn; } in getFunction() 397 const Function &Fn; [all …]
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerFnAdapter.h | 33 template <typename Fn> bool Adapt(Fn F, const uint8_t *Data, size_t Size); 155 template <typename Fn, int... S> 156 void ApplyImpl(Fn F, const typename FnTraits<Fn>::ArgsTupleT &Params, 161 template <typename Fn> 162 void Apply(Fn F, const typename FnTraits<Fn>::ArgsTupleT &Params) { 164 auto S = typename GenSeq<FnTraits<Fn>::Arity>::type(); 169 template <typename Fn> 170 bool UnpackAndApply(Fn F, const uint8_t *Data, size_t Size) { 171 typename FnTraits<Fn>::ArgsTupleT Tuple; 181 template <typename Fn> bool Adapt(Fn F, const uint8_t *Data, size_t Size) {
|