Home
last modified time | relevance | path

Searched refs:ArgT (Results 1 – 25 of 40) sorted by relevance

12

/external/catch2/include/internal/
Dcatch_matchers.h20 template<typename ArgT> struct MatchAllOf;
21 template<typename ArgT> struct MatchAnyOf;
22 template<typename ArgT> struct MatchNotOf;
69 template<typename ArgT>
70 struct MatchAllOf : MatcherBase<ArgT> {
71 bool match( ArgT const& arg ) const override {
94 MatchAllOf<ArgT> operator && ( MatcherBase<ArgT> const& other ) {
100 std::vector<MatcherBase<ArgT> const*> m_matchers;
102 template<typename ArgT>
103 struct MatchAnyOf : MatcherBase<ArgT> {
[all …]
Dcatch_capture_matchers.h22 template<typename ArgT, typename MatcherT>
24 ArgT const& m_arg;
28 MatchExpr( ArgT const& arg, MatcherT const& matcher, StringRef const& matcherString ) in MatchExpr()
49 template<typename ArgT, typename MatcherT>
50 …auto makeMatchExpr( ArgT const& arg, MatcherT const& matcher, StringRef const& matcherString ) ->…
51 return MatchExpr<ArgT, MatcherT>( arg, matcher, matcherString );
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dvisitor_util.h110 template <typename FuncTy, typename ArgT = detail::first_argument<FuncTy>,
112 std::declval<ArgT>(), std::declval<const WalkStage &>()))>
113 typename std::enable_if<std::is_same<ArgT, mlir::Operation *>::value,
117 op, llvm::function_ref<RetT(ArgT, const WalkStage &)>(callback)); in GenericWalk()
126 template <typename FuncTy, typename ArgT = detail::first_argument<FuncTy>,
128 std::declval<ArgT>(), std::declval<const WalkStage &>()))>
129 typename std::enable_if<!std::is_same<ArgT, mlir::Operation *>::value &&
134 if (auto derivedOp = llvm::dyn_cast<ArgT>(op)) callback(derivedOp, stage); in GenericWalk()
150 template <typename FuncTy, typename ArgT = detail::first_argument<FuncTy>,
152 std::declval<ArgT>(), std::declval<const WalkStage &>()))>
[all …]
/external/llvm-project/mlir/include/mlir/IR/
DVisitors.h93 typename FuncTy, typename ArgT = detail::first_argument<FuncTy>,
94 typename RetT = decltype(std::declval<FuncTy>()(std::declval<ArgT>()))>
96 llvm::is_one_of<ArgT, Operation *, Region *, Block *>::value, RetT>::type
98 return walk(op, function_ref<RetT(ArgT)>(callback)); in walk()
108 typename FuncTy, typename ArgT = detail::first_argument<FuncTy>,
109 typename RetT = decltype(std::declval<FuncTy>()(std::declval<ArgT>()))>
111 !llvm::is_one_of<ArgT, Operation *, Region *, Block *>::value &&
116 if (auto derivedOp = dyn_cast<ArgT>(op)) in walk()
133 typename FuncTy, typename ArgT = detail::first_argument<FuncTy>,
134 typename RetT = decltype(std::declval<FuncTy>()(std::declval<ArgT>()))>
[all …]
/external/webrtc/api/
Dfunction_view.h44 template <typename RetT, typename... ArgT>
45 class FunctionView<RetT(ArgT...)> final {
93 RetT operator()(ArgT... args) const { in operator()
95 return call_(f_, std::forward<ArgT>(args)...); in operator()
108 static RetT CallVoidPtr(VoidUnion vu, ArgT... args) { in CallVoidPtr()
109 return (*static_cast<F*>(vu.void_ptr))(std::forward<ArgT>(args)...); in CallVoidPtr()
112 static RetT CallFunPtr(VoidUnion vu, ArgT... args) { in CallFunPtr()
114 std::forward<ArgT>(args)...); in CallFunPtr()
125 RetT (*call_)(VoidUnion, ArgT...);
/external/llvm/include/llvm/ADT/
DVariadicFunction.h104 template <typename ResultT, typename ArgT,
105 ResultT (*Func)(ArrayRef<const ArgT *>)>
112 ResultT operator()(LLVM_COMMA_JOIN ## N(const ArgT &A)) const { \
113 const ArgT *const Args[] = { LLVM_COMMA_JOIN ## N(&A) }; \
151 template <typename ResultT, typename Param0T, typename ArgT,
152 ResultT (*Func)(Param0T, ArrayRef<const ArgT *>)>
159 ResultT operator()(Param0T P0, LLVM_COMMA_JOIN ## N(const ArgT &A)) const { \
160 const ArgT *const Args[] = { LLVM_COMMA_JOIN ## N(&A) }; \
198 template <typename ResultT, typename Param0T, typename Param1T, typename ArgT,
199 ResultT (*Func)(Param0T, Param1T, ArrayRef<const ArgT *>)>
[all …]
/external/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h300 template <typename ResultT, typename ArgT,
301 ResultT (*Func)(ArrayRef<const ArgT *>)>
305 ArgT **InnerArgs = new ArgT *[Args.size()]();
309 typedef ArgTypeTraits<ArgT> ArgTraits;
318 InnerArgs[i] = new ArgT(ArgTraits::get(Value));
348 template <typename ResultT, typename ArgT,
349 ResultT (*F)(ArrayRef<const ArgT *>)>
351 ast_matchers::internal::VariadicFunction<ResultT, ArgT, F> Func,
353 : Func(&variadicMatcherDescriptor<ResultT, ArgT, F>),
355 ArgsKind(ArgTypeTraits<ArgT>::getKind()) {
[all …]
/external/tensorflow/tensorflow/stream_executor/
Dkernel.h638 template <typename ParamT, typename ArgT>
641 ArgT>::value ||
642 IsCompatibleDeviceMemoryRef<ParamT, ArgT>::value;
659 template <typename ParamT, typename ArgT, bool kShouldStaticAssert,
663 kShouldStaticAssert ? CompatibleNoAssert<ParamT, ArgT>() : true,
665 return CompatibleNoAssert<ParamT, ArgT>();
687 typedef typename std::tuple_element<kArgumentNumber, ArgTuple>::type ArgT;
688 return Compatible<ParamT, ArgT, kShouldStaticAssert, kArgumentNumber>() &&
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/RPC/
DRPCSerialization.h39 template <typename OStream, typename ArgT>
40 OStream &operator<<(OStream &OS, const RPCTypeNameSequence<ArgT> &V) {
41 OS << RPCTypeName<ArgT>::getName();
271 template <typename ChannelT, typename ArgT>
272 class SequenceSerialization<ChannelT, ArgT> {
277 return SerializationTraits<ChannelT, ArgT, in serialize()
284 return SerializationTraits<ChannelT, ArgT, CArgT>::deserialize(C, CArg); in deserialize()
288 template <typename ChannelT, typename ArgT, typename... ArgTs>
289 class SequenceSerialization<ChannelT, ArgT, ArgTs...> {
296 SerializationTraits<ChannelT, ArgT, typename std::decay<CArgT>::type>:: in serialize()
[all …]
DRPCUtils.h600 template <typename ArgT> class ResponseHandlerArg<Error(Expected<ArgT>)> {
602 using ArgType = Expected<ArgT>;
603 using UnwrappedArgType = ArgT;
606 template <typename ArgT>
607 class ResponseHandlerArg<ErrorSuccess(Expected<ArgT>)> {
609 using ArgType = Expected<ArgT>;
610 using UnwrappedArgType = ArgT;
807 template <typename ArgT, typename... ArgTs>
808 class ReadArgs<ArgT, ArgTs...> : public ReadArgs<ArgTs...> {
810 ReadArgs(ArgT &Arg, ArgTs &... Args) in ReadArgs()
[all …]
/external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RPC/
DRPCSerialization.h41 template <typename OStream, typename ArgT>
42 OStream &operator<<(OStream &OS, const RPCTypeNameSequence<ArgT> &V) {
43 OS << RPCTypeName<ArgT>::getName();
286 template <typename ChannelT, typename ArgT>
287 class SequenceSerialization<ChannelT, ArgT> {
292 return SerializationTraits<ChannelT, ArgT, std::decay_t<CArgT>>::serialize( in serialize()
298 return SerializationTraits<ChannelT, ArgT, CArgT>::deserialize(C, CArg); in deserialize()
302 template <typename ChannelT, typename ArgT, typename... ArgTs>
303 class SequenceSerialization<ChannelT, ArgT, ArgTs...> {
310 SerializationTraits<ChannelT, ArgT, std::decay_t<CArgT>>::serialize( in serialize()
[all …]
DRPCUtils.h597 template <typename ArgT> class ResponseHandlerArg<Error(Expected<ArgT>)> {
599 using ArgType = Expected<ArgT>;
600 using UnwrappedArgType = ArgT;
603 template <typename ArgT>
604 class ResponseHandlerArg<ErrorSuccess(Expected<ArgT>)> {
606 using ArgType = Expected<ArgT>;
607 using UnwrappedArgType = ArgT;
804 template <typename ArgT, typename... ArgTs>
805 class ReadArgs<ArgT, ArgTs...> : public ReadArgs<ArgTs...> {
807 ReadArgs(ArgT &Arg, ArgTs &... Args) in ReadArgs()
[all …]
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h473 template <typename ResultT, typename ArgT,
474 ResultT (*Func)(ArrayRef<const ArgT *>)>
478 ArgT **InnerArgs = new ArgT *[Args.size()]();
482 using ArgTraits = ArgTypeTraits<ArgT>;
511 InnerArgs[i] = new ArgT(ArgTraits::get(Value));
541 template <typename ResultT, typename ArgT,
542 ResultT (*F)(ArrayRef<const ArgT *>)>
544 ast_matchers::internal::VariadicFunction<ResultT, ArgT, F> Func,
546 : Func(&variadicMatcherDescriptor<ResultT, ArgT, F>),
548 ArgsKind(ArgTypeTraits<ArgT>::getKind()) {
[all …]
/external/llvm-project/lld/MachO/
DSymbols.h224 template <typename T, typename... ArgT>
225 T *replaceSymbol(Symbol *s, ArgT &&... arg) { in replaceSymbol()
232 return new (s) T(std::forward<ArgT>(arg)...); in replaceSymbol()
/external/llvm-project/llvm/lib/Target/X86/
DImmutableGraph.h327 template <typename... ArgT> std::unique_ptr<GraphT> get(ArgT &&... Args) { in get()
350 std::forward<ArgT>(Args)...); in get()
353 template <typename... ArgT>
356 ArgT &&... Args) { in trim()
397 NewEdgeSize, std::forward<ArgT>(Args)...); in trim()
/external/clang/include/clang/ASTMatchers/
DASTMatchersInternal.h69 template <typename ResultT, typename ArgT,
70 ResultT (*Func)(ArrayRef<const ArgT *>)>
75 ResultT operator()(const ArgT &Arg1, const ArgsT &... Args) const { in operator()
76 return Execute(Arg1, static_cast<const ArgT &>(Args)...); in operator()
81 ResultT operator()(ArrayRef<ArgT> Args) const { in operator()
82 SmallVector<const ArgT*, 8> InnerArgs; in operator()
83 for (const ArgT &Arg : Args) in operator()
92 const ArgT *const ArgsArray[] = {&Args...}; in Execute()
93 return Func(ArrayRef<const ArgT *>(ArgsArray, sizeof...(ArgsT))); in Execute()
638 template <typename T, typename ArgT>
[all …]
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchersInternal.h91 template <typename ResultT, typename ArgT,
92 ResultT (*Func)(ArrayRef<const ArgT *>)>
97 ResultT operator()(const ArgT &Arg1, const ArgsT &... Args) const { in operator()
98 return Execute(Arg1, static_cast<const ArgT &>(Args)...); in operator()
103 ResultT operator()(ArrayRef<ArgT> Args) const { in operator()
104 SmallVector<const ArgT*, 8> InnerArgs; in operator()
105 for (const ArgT &Arg : Args) in operator()
114 const ArgT *const ArgsArray[] = {&Args...}; in Execute()
115 return Func(ArrayRef<const ArgT *>(ArgsArray, sizeof...(ArgsT))); in Execute()
820 template <typename T, typename ArgT>
[all …]
/external/llvm/include/llvm/ExecutionEngine/Orc/
DRPCUtils.h269 template <typename ArgT, typename... ArgTs>
270 class ReadArgs<ArgT, ArgTs...> : public ReadArgs<ArgTs...> {
272 ReadArgs(ArgT &Arg, ArgTs &... Args) in ReadArgs()
275 Error operator()(ArgT &ArgVal, ArgTs &... ArgVals) { in operator()
281 ArgT &Arg;
/external/llvm-project/lld/COFF/
DSymbols.h472 template <typename T, typename... ArgT>
473 void replaceSymbol(Symbol *s, ArgT &&... arg) { in replaceSymbol()
482 new (s) T(std::forward<ArgT>(arg)...); in replaceSymbol()
/external/llvm-project/lld/wasm/
DSymbols.h533 template <typename T, typename... ArgT>
534 T *replaceSymbol(Symbol *s, ArgT &&... arg) { in replaceSymbol()
545 T *s2 = new (s) T(std::forward<ArgT>(arg)...); in replaceSymbol()
/external/llvm-project/llvm/utils/benchmark/src/
Dsysinfo.cc197 template <class ArgT>
198 bool ReadFromFile(std::string const& fname, ArgT* arg) { in ReadFromFile()
199 *arg = ArgT(); in ReadFromFile()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DThinLTOBitcodeWriter.cpp264 auto *ArgT = dyn_cast<IntegerType>(Arg.getType()); in splitAndWriteThinLTOBitcode() local
265 if (!ArgT || ArgT->getBitWidth() > 64) in splitAndWriteThinLTOBitcode()
/external/llvm-project/llvm/lib/Transforms/IPO/
DThinLTOBitcodeWriter.cpp264 auto *ArgT = dyn_cast<IntegerType>(Arg.getType()); in splitAndWriteThinLTOBitcode() local
265 if (!ArgT || ArgT->getBitWidth() > 64) in splitAndWriteThinLTOBitcode()
/external/libcxx/utils/google-benchmark/src/
Dsysinfo.cc200 template <class ArgT>
201 bool ReadFromFile(std::string const& fname, ArgT* arg) { in ReadFromFile()
202 *arg = ArgT(); in ReadFromFile()
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dsysinfo.cc200 template <class ArgT>
201 bool ReadFromFile(std::string const& fname, ArgT* arg) { in ReadFromFile()
202 *arg = ArgT(); in ReadFromFile()

12