Home
last modified time | relevance | path

Searched refs:RetT (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm-project/mlir/include/mlir/IR/
DVisitors.h94 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()
109 typename RetT = decltype(std::declval<FuncTy>()(std::declval<ArgT>()))>
112 std::is_same<RetT, void>::value,
113 RetT>::type
119 return detail::walk(op, function_ref<RetT(Operation *)>(wrapperFn)); in walk()
134 typename RetT = decltype(std::declval<FuncTy>()(std::declval<ArgT>()))>
137 std::is_same<RetT, WalkResult>::value,
138 RetT>::type
[all …]
DBlock.h255 template <typename FnT, typename RetT = detail::walkResultType<FnT>>
256 RetT walk(FnT &&callback) { in walk()
264 template <typename FnT, typename RetT = detail::walkResultType<FnT>>
265 typename std::enable_if<std::is_same<RetT, void>::value, RetT>::type
275 template <typename FnT, typename RetT = detail::walkResultType<FnT>>
276 typename std::enable_if<std::is_same<RetT, WalkResult>::value, RetT>::type
DRegion.h248 template <typename FnT, typename RetT = detail::walkResultType<FnT>>
249 typename std::enable_if<std::is_same<RetT, void>::value, RetT>::type
258 template <typename FnT, typename RetT = detail::walkResultType<FnT>>
259 typename std::enable_if<std::is_same<RetT, WalkResult>::value, RetT>::type
DDiagnostics.h421 template <typename FuncTy, typename RetT = decltype(std::declval<FuncTy>()(
423 std::enable_if_t<std::is_same<RetT, void>::value, HandlerID>
DOperation.h524 template <typename FnT, typename RetT = detail::walkResultType<FnT>>
525 RetT walk(FnT &&callback) { in walk()
DBuiltinAttributes.h1372 template <typename RetT, template <typename> class ProcessFn,
1374 RetT process(Args &...args) const {
DOpDefinition.h227 template <typename FnT, typename RetT = detail::walkResultType<FnT>>
228 RetT walk(FnT &&callback) { in walk()
/external/llvm-project/libc/test/
DErrnoSetterMatcher.h55 template <typename RetT = int>
56 static internal::ErrnoSetterMatcher<RetT> Succeeds(RetT ExpectedReturn = 0,
61 template <typename RetT = int>
62 static internal::ErrnoSetterMatcher<RetT> Fails(int ExpectedErrno,
63 RetT ExpectedReturn = -1) {
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dvisitor_util.h111 typename RetT = decltype(std::declval<FuncTy>()(
114 RetT>::type
117 op, llvm::function_ref<RetT(ArgT, const WalkStage &)>(callback)); in GenericWalk()
127 typename RetT = decltype(std::declval<FuncTy>()(
130 std::is_same<RetT, void>::value,
131 RetT>::type
151 typename RetT = decltype(std::declval<FuncTy>()(
154 std::is_same<RetT, mlir::WalkResult>::value,
155 RetT>::type
/external/llvm-project/libcxx/test/std/utilities/function.objects/func.not_fn/
Dnot_fn.pass.cpp262 using RetT = decltype(std::not_fn(std::move(value))); in constructor_tests() typedef
263 static_assert(std::is_move_constructible<RetT>::value, ""); in constructor_tests()
264 static_assert(!std::is_copy_constructible<RetT>::value, ""); in constructor_tests()
265 static_assert(!std::is_move_assignable<RetT>::value, ""); in constructor_tests()
266 static_assert(!std::is_copy_assignable<RetT>::value, ""); in constructor_tests()
283 using RetT = decltype(std::not_fn(value)); in constructor_tests() typedef
284 static_assert(std::is_move_constructible<RetT>::value, ""); in constructor_tests()
285 static_assert(std::is_copy_constructible<RetT>::value, ""); in constructor_tests()
286 static_assert(!std::is_move_assignable<RetT>::value, ""); in constructor_tests()
287 static_assert(!std::is_copy_assignable<RetT>::value, ""); in constructor_tests()
[all …]
/external/libcxx/test/std/utilities/function.objects/func.not_fn/
Dnot_fn.pass.cpp263 using RetT = decltype(std::not_fn(std::move(value))); in constructor_tests() typedef
264 static_assert(std::is_move_constructible<RetT>::value, ""); in constructor_tests()
265 static_assert(!std::is_copy_constructible<RetT>::value, ""); in constructor_tests()
266 static_assert(!std::is_move_assignable<RetT>::value, ""); in constructor_tests()
267 static_assert(!std::is_copy_assignable<RetT>::value, ""); in constructor_tests()
284 using RetT = decltype(std::not_fn(value)); in constructor_tests() typedef
285 static_assert(std::is_move_constructible<RetT>::value, ""); in constructor_tests()
286 static_assert(std::is_copy_constructible<RetT>::value, ""); in constructor_tests()
287 static_assert(!std::is_move_assignable<RetT>::value, ""); in constructor_tests()
288 static_assert(!std::is_copy_assignable<RetT>::value, ""); in constructor_tests()
[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()
108 static RetT CallVoidPtr(VoidUnion vu, ArgT... args) { in CallVoidPtr()
112 static RetT CallFunPtr(VoidUnion vu, ArgT... args) { in CallFunPtr()
125 RetT (*call_)(VoidUnion, ArgT...);
/external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RPC/
DRPCUtils.h143 template <typename DerivedFunc, typename RetT, typename... ArgTs>
144 class Function<DerivedFunc, RetT(ArgTs...)> {
147 using Type = RetT(ArgTs...);
150 using ReturnType = RetT;
157 << RPCTypeName<RetT>::getName() << " " << DerivedFunc::getName() in getPrototype()
204 template <typename RetT, typename... ArgTs>
205 class FunctionArgsTuple<RetT(ArgTs...)> {
212 template <typename RetT> class ResultTraits {
215 using ErrorReturnType = Expected<RetT>;
219 using ReturnPromiseType = std::promise<MSVCPExpected<RetT>>;
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/RPC/
DRPCUtils.h143 template <typename DerivedFunc, typename RetT, typename... ArgTs>
144 class Function<DerivedFunc, RetT(ArgTs...)> {
147 using Type = RetT(ArgTs...);
150 using ReturnType = RetT;
157 << RPCTypeName<RetT>::getName() << " " << DerivedFunc::getName() in getPrototype()
205 template <typename RetT, typename... ArgTs>
206 class FunctionArgsTuple<RetT(ArgTs...)> {
214 template <typename RetT> class ResultTraits {
217 using ErrorReturnType = Expected<RetT>;
221 using ReturnPromiseType = std::promise<MSVCPExpected<RetT>>;
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dexhaustive_op_test_utils.cc159 template <typename RetT,
160 typename std::enable_if<!is_complex_t<RetT>::value>::type* = nullptr>
161 RetT FromCacheLocationComponent(int cache_loc) { in FromCacheLocationComponent()
164 return std::numeric_limits<RetT>::min(); in FromCacheLocationComponent()
166 return -std::numeric_limits<RetT>::min(); in FromCacheLocationComponent()
168 return static_cast<RetT>(0.0); in FromCacheLocationComponent()
170 return static_cast<RetT>(-0.0); in FromCacheLocationComponent()
176 template <typename RetT,
177 typename std::enable_if<is_complex_t<RetT>::value>::type* = nullptr>
178 RetT FromCacheLocationComponent(int cache_loc) { in FromCacheLocationComponent()
[all …]
/external/llvm/include/llvm/Support/
DError.h446 template <typename C, typename RetT, typename ErrT>
447 class ErrorHandlerTraits<RetT (C::*)(ErrT &)>
448 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
451 template <typename C, typename RetT, typename ErrT>
452 class ErrorHandlerTraits<RetT (C::*)(ErrT &) const>
453 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
456 template <typename C, typename RetT, typename ErrT>
457 class ErrorHandlerTraits<RetT (C::*)(const ErrT &)>
458 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
461 template <typename C, typename RetT, typename ErrT>
[all …]
/external/llvm/include/llvm/ExecutionEngine/Orc/
DRPCUtils.h83 template <typename FunctionIdT, FunctionIdT FuncId, typename RetT,
85 class FunctionHelper<FunctionIdT, FuncId, RetT(ArgTs...)> {
94 typedef Optional<RetT> OptionalReturn;
96 typedef Expected<RetT> ErrorReturn;
105 RetT Val; in readResult()
192 FunctionIdT FuncId, typename RetT, typename... ArgTs>
194 FunctionHelper<FunctionIdT, FuncId, RetT(ArgTs...)>> {
211 FunctionIdT FuncId, typename RetT, typename... ArgTs>
213 FunctionHelper<FunctionIdT, FuncId, RetT(ArgTs...)>> {
221 typedef FunctionHelper<FunctionIdT, FuncId, RetT(ArgTs...)> Func;
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DError.h466 template <typename C, typename RetT, typename ErrT>
467 class ErrorHandlerTraits<RetT (C::*)(ErrT &)>
468 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
471 template <typename C, typename RetT, typename ErrT>
472 class ErrorHandlerTraits<RetT (C::*)(ErrT &) const>
473 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
476 template <typename C, typename RetT, typename ErrT>
477 class ErrorHandlerTraits<RetT (C::*)(const ErrT &)>
478 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
481 template <typename C, typename RetT, typename ErrT>
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DError.h849 template <typename C, typename RetT, typename ErrT>
850 class ErrorHandlerTraits<RetT (C::*)(ErrT &)>
851 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
854 template <typename C, typename RetT, typename ErrT>
855 class ErrorHandlerTraits<RetT (C::*)(ErrT &) const>
856 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
859 template <typename C, typename RetT, typename ErrT>
860 class ErrorHandlerTraits<RetT (C::*)(const ErrT &)>
861 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
864 template <typename C, typename RetT, typename ErrT>
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DError.h853 template <typename C, typename RetT, typename ErrT>
854 class ErrorHandlerTraits<RetT (C::*)(ErrT &)>
855 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
858 template <typename C, typename RetT, typename ErrT>
859 class ErrorHandlerTraits<RetT (C::*)(ErrT &) const>
860 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
863 template <typename C, typename RetT, typename ErrT>
864 class ErrorHandlerTraits<RetT (C::*)(const ErrT &)>
865 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {};
868 template <typename C, typename RetT, typename ErrT>
[all …]
/external/llvm-project/clang/test/SemaCXX/
Dbuiltin-operator-new-delete.cpp145 template <class Tp, class Up, class RetT>
146 void test_dependent_call(Tp new_arg, Up delete_arg, RetT) { in test_dependent_call() argument
147 RetT ret = __builtin_operator_new(new_arg); in test_dependent_call()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-redundant-branch-condition.cpp1078 class RetT { in positive_expr_with_cleanups() class
1080 RetT(const int _code) : code_(_code) {} in positive_expr_with_cleanups() function in positive_expr_with_cleanups::RetT
1082 static RetT Test(bool &_isSet) { return 0; } in positive_expr_with_cleanups()
1089 if (RetT::Test(isSet).Ok() && isSet) { in positive_expr_with_cleanups()
1090 if (RetT::Test(isSet).Ok() && isSet) { in positive_expr_with_cleanups()
1096 if ((RetT::Test(isSet).Ok() && isSet)) { in positive_expr_with_cleanups()
/external/llvm-project/clang/utils/TableGen/
DNeonEmitter.cpp995 Type RetT = getReturnType(); in getBuiltinTypeStr() local
996 if ((LocalCK == ClassI || LocalCK == ClassW) && RetT.isScalar() && in getBuiltinTypeStr()
997 !RetT.isFloating() && !RetT.isBFloat16()) in getBuiltinTypeStr()
998 RetT.makeInteger(RetT.getElementSizeInBits(), false); in getBuiltinTypeStr()
1004 if (RetT.getNumVectors() > 1) { in getBuiltinTypeStr()
1007 if (RetT.isPoly()) in getBuiltinTypeStr()
1008 RetT.makeInteger(RetT.getElementSizeInBits(), false); in getBuiltinTypeStr()
1009 if (!RetT.isScalar() && RetT.isInteger() && !RetT.isSigned()) in getBuiltinTypeStr()
1010 RetT.makeSigned(); in getBuiltinTypeStr()
1012 if (LocalCK == ClassB && RetT.isValue() && !RetT.isScalar()) in getBuiltinTypeStr()
[all …]
/external/clang/utils/TableGen/
DNeonEmitter.cpp1002 Type RetT = getReturnType(); in getBuiltinTypeStr() local
1003 if ((LocalCK == ClassI || LocalCK == ClassW) && RetT.isScalar() && in getBuiltinTypeStr()
1004 !RetT.isFloating()) in getBuiltinTypeStr()
1005 RetT.makeInteger(RetT.getElementSizeInBits(), false); in getBuiltinTypeStr()
1011 if (RetT.getNumVectors() > 1) { in getBuiltinTypeStr()
1014 if (RetT.isPoly()) in getBuiltinTypeStr()
1015 RetT.makeInteger(RetT.getElementSizeInBits(), false); in getBuiltinTypeStr()
1016 if (!RetT.isScalar() && !RetT.isSigned()) in getBuiltinTypeStr()
1017 RetT.makeSigned(); in getBuiltinTypeStr()
1020 if (LocalCK == ClassB && !RetT.isScalar() && !ForcedVectorFloatingType) in getBuiltinTypeStr()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaInit.cpp6936 QualType RetT = FD->getReturnType(); in implicitObjectParamIsLifetimeBound() local
6937 if (RetT->isLValueReferenceType()) { in implicitObjectParamIsLifetimeBound()
6945 if (Ctx.hasSameType(RetT, LHST)) in implicitObjectParamIsLifetimeBound()

12