Home
last modified time | relevance | path

Searched refs:Fn (Results 1 – 25 of 876) sorted by relevance

12345678910>>...36

/external/libcxx/test/std/utilities/meta/meta.rel/
Dis_invocable.pass.cpp44 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 …]
Dis_nothrow_invocable.pass.cpp40 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/
Dinvoke.pass.cpp221 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/swiftshader/third_party/LLVM/lib/CodeGen/
DPrologEpilogInserter.cpp69 bool PEI::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument
70 const Function* F = Fn.getFunction(); in runOnMachineFunction()
71 const TargetRegisterInfo *TRI = Fn.getTarget().getRegisterInfo(); in runOnMachineFunction()
72 const TargetFrameLowering *TFI = Fn.getTarget().getFrameLowering(); in runOnMachineFunction()
74 RS = TRI->requiresRegisterScavenging(Fn) ? new RegScavenger() : NULL; in runOnMachineFunction()
75 FrameIndexVirtualScavenging = TRI->requiresFrameIndexScavenging(Fn); in runOnMachineFunction()
80 calculateCallsInformation(Fn); in runOnMachineFunction()
84 TFI->processFunctionBeforeCalleeSavedScan(Fn, RS); in runOnMachineFunction()
88 calculateCalleeSavedRegisters(Fn); in runOnMachineFunction()
96 placeCSRSpillsAndRestores(Fn); in runOnMachineFunction()
[all …]
DPrologEpilogInserter.h52 bool runOnMachineFunction(MachineFunction &Fn);
114 bool calculateSets(MachineFunction &Fn);
117 void calculateAnticAvail(MachineFunction &Fn);
127 void placeSpillsAndRestores(MachineFunction &Fn);
128 void placeCSRSpillsAndRestores(MachineFunction &Fn);
129 void calculateCallsInformation(MachineFunction &Fn);
130 void calculateCalleeSavedRegisters(MachineFunction &Fn);
131 void insertCSRSpillsAndRestores(MachineFunction &Fn);
132 void calculateFrameObjectOffsets(MachineFunction &Fn);
133 void replaceFrameIndices(MachineFunction &Fn);
[all …]
/external/llvm/lib/CodeGen/
DPrologEpilogInserter.cpp90 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 …]
DDwarfEHPrepare.cpp45 bool InsertUnwindResumeCalls(Function &Fn);
48 pruneUnreachableResumes(Function &Fn,
65 bool runOnFunction(Function &Fn) override;
140 Function &Fn, SmallVectorImpl<ResumeInst *> &Resumes, in pruneUnreachableResumes() argument
159 getAnalysis<TargetTransformInfoWrapperPass>().getTTI(Fn); in pruneUnreachableResumes()
160 LLVMContext &Ctx = Fn.getContext(); in pruneUnreachableResumes()
181 bool DwarfEHPrepare::InsertUnwindResumeCalls(Function &Fn) { in InsertUnwindResumeCalls() argument
184 for (BasicBlock &BB : Fn) { in InsertUnwindResumeCalls()
196 EHPersonality Pers = classifyEHPersonality(Fn.getPersonalityFn()); in InsertUnwindResumeCalls()
200 LLVMContext &Ctx = Fn.getContext(); in InsertUnwindResumeCalls()
[all …]
/external/libcxx/test/std/utilities/variant/variant.visit/
Dvisit.pass.cpp95 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/
DTargetRegistry.h503 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/
DDiagnosticInfo.h167 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/swiftshader/third_party/LLVM/include/llvm/Support/
DTargetRegistry.h540 static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn) { in RegisterMCAsmInfo()
543 T.MCAsmInfoCtorFn = Fn; in RegisterMCAsmInfo()
556 Target::MCCodeGenInfoCtorFnTy Fn) { in RegisterMCCodeGenInfo()
559 T.MCCodeGenInfoCtorFn = Fn; in RegisterMCCodeGenInfo()
571 static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn) { in RegisterMCInstrInfo()
574 T.MCInstrInfoCtorFn = Fn; in RegisterMCInstrInfo()
580 Target::MCInstrAnalysisCtorFnTy Fn) { in RegisterMCInstrAnalysis()
583 T.MCInstrAnalysisCtorFn = Fn; in RegisterMCInstrAnalysis()
595 static void RegisterMCRegInfo(Target &T, Target::MCRegInfoCtorFnTy Fn) { in RegisterMCRegInfo()
598 T.MCRegInfoCtorFn = Fn; in RegisterMCRegInfo()
[all …]
/external/clang/test/SemaCXX/
Dunaddressable-functions.cpp53 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-7.0/llvm/include/llvm/Support/
DTargetRegistry.h555 MCRelocationInfoCtorTy Fn = MCRelocationInfoCtorFn in createMCRelocationInfo() local
558 return Fn(Triple(TT), Ctx); in createMCRelocationInfo()
578 MCSymbolizerCtorTy Fn = in createMCSymbolizer() local
580 return Fn(Triple(TT), GetOpInfo, SymbolLookUp, DisInfo, Ctx, in createMCSymbolizer()
696 static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn) { in RegisterMCAsmInfo()
697 T.MCAsmInfoCtorFn = Fn; in RegisterMCAsmInfo()
709 static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn) { in RegisterMCInstrInfo()
710 T.MCInstrInfoCtorFn = Fn; in RegisterMCInstrInfo()
716 Target::MCInstrAnalysisCtorFnTy Fn) { in RegisterMCInstrAnalysis()
717 T.MCInstrAnalysisCtorFn = Fn; in RegisterMCInstrAnalysis()
[all …]
DParallel.h91 void parallel_for_each(IterTy Begin, IterTy End, FuncTy Fn) { in parallel_for_each() argument
92 concurrency::parallel_for_each(Begin, End, Fn); in parallel_for_each()
96 void parallel_for_each_n(IndexTy Begin, IndexTy End, FuncTy Fn) { in parallel_for_each_n() argument
97 concurrency::parallel_for(Begin, End, Fn); in parallel_for_each_n()
151 void parallel_for_each(IterTy Begin, IterTy End, FuncTy Fn) { in parallel_for_each() argument
162 TG.spawn([=, &Fn] { std::for_each(Begin, Begin + TaskSize, Fn); }); in parallel_for_each()
165 std::for_each(Begin, End, Fn); in parallel_for_each()
169 void parallel_for_each_n(IndexTy Begin, IndexTy End, FuncTy Fn) { in parallel_for_each_n() argument
177 TG.spawn([=, &Fn] { in parallel_for_each_n()
179 Fn(J); in parallel_for_each_n()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCFLSteensAliasAnalysis.cpp76 FunctionInfo(Function &Fn, const SmallVectorImpl<Value *> &RetVals,
116 Function &Fn, const SmallVectorImpl<Value *> &RetVals, in FunctionInfo() argument
121 if (Fn.arg_size() > MaxSupportedArgsInSummary) in FunctionInfo()
173 for (auto &Param : Fn.args()) { in FunctionInfo()
184 CFLSteensAAResult::FunctionInfo CFLSteensAAResult::buildSetsFrom(Function *Fn) { in buildSetsFrom() argument
185 CFLGraphBuilder<CFLSteensAAResult> GraphBuilder(*this, TLI, *Fn); in buildSetsFrom()
223 return FunctionInfo(*Fn, GraphBuilder.getReturnValues(), SetBuilder.build()); in buildSetsFrom()
226 void CFLSteensAAResult::scan(Function *Fn) { in scan() argument
227 auto InsertPair = Cache.insert(std::make_pair(Fn, Optional<FunctionInfo>())); in scan()
235 auto FunInfo = buildSetsFrom(Fn); in scan()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DShadowCallStack.cpp52 bool runOnMachineFunction(MachineFunction &Fn) override;
66 static void addProlog(MachineFunction &Fn, const TargetInstrInfo *TII,
68 static void addPrologLeaf(MachineFunction &Fn, const TargetInstrInfo *TII,
89 static void addProlog(MachineFunction &Fn, const TargetInstrInfo *TII, in addProlog() argument
117 static void addPrologLeaf(MachineFunction &Fn, const TargetInstrInfo *TII, in addPrologLeaf() argument
194 bool ShadowCallStack::runOnMachineFunction(MachineFunction &Fn) { in runOnMachineFunction() argument
195 if (!Fn.getFunction().hasFnAttribute(Attribute::ShadowCallStack) || in runOnMachineFunction()
196 Fn.getFunction().hasFnAttribute(Attribute::Naked)) in runOnMachineFunction()
199 if (Fn.empty() || !Fn.getRegInfo().tracksLiveness()) in runOnMachineFunction()
204 if (Fn.front().isLiveIn(X86::R10) || Fn.front().isLiveIn(X86::R11)) in runOnMachineFunction()
[all …]
/external/llvm/lib/Analysis/
DCFLSteensAliasAnalysis.cpp74 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/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/
Dutil.hpp80 template <class Fn> struct result_of;
81 template <class Fn>
82 struct result_of<Fn()> {
83 typedef decltype(detail::instance<Fn>()()) type;
85 template <class Fn, class A0>
86 struct result_of<Fn(A0)> {
87 typedef decltype(detail::instance<Fn>()(detail::instance<A0>())) type;
89 template <class Fn, class A0, class A1>
90 struct result_of<Fn(A0,A1)> {
91 typedef decltype(detail::instance<Fn>()(detail::instance<A0>(),
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDiagnosticInfo.h177 const Function &Fn;
191 DiagnosticInfoResourceLimit(const Function &Fn, const char *ResourceName,
196 : DiagnosticInfo(Kind, Severity), Fn(Fn), ResourceName(ResourceName), in DiagnosticInfo()
199 const Function &getFunction() const { return Fn; } in getFunction()
214 DiagnosticInfoStackSize(const Function &Fn, uint64_t StackSize,
217 : DiagnosticInfoResourceLimit(Fn, "stack size", StackSize, Severity,
365 const Function &Fn, in DiagnosticInfoWithLocationBase() argument
367 : DiagnosticInfo(Kind, Severity), Fn(Fn), Loc(Loc) {} in DiagnosticInfoWithLocationBase()
381 const Function &getFunction() const { return Fn; } in getFunction()
386 const Function &Fn;
[all …]
/external/llvm/lib/Target/Mips/
DMipsCCState.h74 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/clang/lib/CodeGen/
DCGDeclCXX.cpp262 llvm::Function *Fn = in CreateGlobalInitOrDestructFunction() local
268 Fn->setSection(Section); in CreateGlobalInitOrDestructFunction()
271 SetInternalFunctionAttributes(nullptr, Fn, FI); in CreateGlobalInitOrDestructFunction()
273 Fn->setCallingConv(getRuntimeCC()); in CreateGlobalInitOrDestructFunction()
276 Fn->setDoesNotThrow(); in CreateGlobalInitOrDestructFunction()
278 if (!isInSanitizerBlacklist(Fn, Loc)) { in CreateGlobalInitOrDestructFunction()
281 Fn->addFnAttr(llvm::Attribute::SanitizeAddress); in CreateGlobalInitOrDestructFunction()
283 Fn->addFnAttr(llvm::Attribute::SanitizeThread); in CreateGlobalInitOrDestructFunction()
285 Fn->addFnAttr(llvm::Attribute::SanitizeMemory); in CreateGlobalInitOrDestructFunction()
287 Fn->addFnAttr(llvm::Attribute::SafeStack); in CreateGlobalInitOrDestructFunction()
[all …]
/external/llvm/lib/Fuzzer/
DFuzzerFnAdapter.h33 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) {
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DDwarfEHPrepare.cpp54 bool InsertUnwindResumeCalls(Function &Fn);
57 pruneUnreachableResumes(Function &Fn,
66 bool runOnFunction(Function &Fn) override;
143 Function &Fn, SmallVectorImpl<ResumeInst *> &Resumes, in pruneUnreachableResumes() argument
162 getAnalysis<TargetTransformInfoWrapperPass>().getTTI(Fn); in pruneUnreachableResumes()
163 LLVMContext &Ctx = Fn.getContext(); in pruneUnreachableResumes()
184 bool DwarfEHPrepare::InsertUnwindResumeCalls(Function &Fn) { in InsertUnwindResumeCalls() argument
187 for (BasicBlock &BB : Fn) { in InsertUnwindResumeCalls()
199 EHPersonality Pers = classifyEHPersonality(Fn.getPersonalityFn()); in InsertUnwindResumeCalls()
203 LLVMContext &Ctx = Fn.getContext(); in InsertUnwindResumeCalls()
[all …]
/external/swiftshader/third_party/LLVM/bindings/ocaml/analysis/
Danalysis_ocaml.c46 CAMLprim value llvm_verify_function(LLVMValueRef Fn) { in llvm_verify_function() argument
47 return Val_bool(LLVMVerifyFunction(Fn, LLVMReturnStatusAction) == 0); in llvm_verify_function()
57 CAMLprim value llvm_assert_valid_function(LLVMValueRef Fn) { in llvm_assert_valid_function() argument
58 LLVMVerifyFunction(Fn, LLVMAbortProcessAction); in llvm_assert_valid_function()
63 CAMLprim value llvm_view_function_cfg(LLVMValueRef Fn) { in llvm_view_function_cfg() argument
64 LLVMViewFunctionCFG(Fn); in llvm_view_function_cfg()
69 CAMLprim value llvm_view_function_cfg_only(LLVMValueRef Fn) { in llvm_view_function_cfg_only() argument
70 LLVMViewFunctionCFGOnly(Fn); in llvm_view_function_cfg_only()
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/ocaml/analysis/
Danalysis_ocaml.c46 CAMLprim value llvm_verify_function(LLVMValueRef Fn) { in llvm_verify_function() argument
47 return Val_bool(LLVMVerifyFunction(Fn, LLVMReturnStatusAction) == 0); in llvm_verify_function()
57 CAMLprim value llvm_assert_valid_function(LLVMValueRef Fn) { in llvm_assert_valid_function() argument
58 LLVMVerifyFunction(Fn, LLVMAbortProcessAction); in llvm_assert_valid_function()
63 CAMLprim value llvm_view_function_cfg(LLVMValueRef Fn) { in llvm_view_function_cfg() argument
64 LLVMViewFunctionCFG(Fn); in llvm_view_function_cfg()
69 CAMLprim value llvm_view_function_cfg_only(LLVMValueRef Fn) { in llvm_view_function_cfg_only() argument
70 LLVMViewFunctionCFGOnly(Fn); in llvm_view_function_cfg_only()

12345678910>>...36