Home
last modified time | relevance | path

Searched refs:Tp (Results 1 – 25 of 55) sorted by relevance

123

/external/libcxx/test/std/experimental/any/any.class/any.modifiers/
Dswap.pass.cpp50 template <class Tp>
52 assert(Tp::count == 0); in test_swap_empty()
54 any a1((Tp(1))); in test_swap_empty()
56 assert(Tp::count == 1); in test_swap_empty()
60 assert(Tp::count == 1); in test_swap_empty()
62 assertContains<Tp>(a2, 1); in test_swap_empty()
65 assert(Tp::count == 0); in test_swap_empty()
67 any a1((Tp(1))); in test_swap_empty()
69 assert(Tp::count == 1); in test_swap_empty()
73 assert(Tp::count == 1); in test_swap_empty()
[all …]
/external/libcxx/test/std/experimental/any/any.class/any.assign/
Dcopy.pass.cpp131 template <class Tp>
149 any const rhs((Tp(1))); in test_copy_assign_throws()
150 assert(Tp::count == 1); in test_copy_assign_throws()
154 assert(Tp::count == 1); in test_copy_assign_throws()
155 assertEmpty<Tp>(lhs); in test_copy_assign_throws()
156 assertContains<Tp>(rhs); in test_copy_assign_throws()
160 any const rhs((Tp(1))); in test_copy_assign_throws()
162 assert(Tp::count == 1); in test_copy_assign_throws()
167 assert(Tp::count == 1); in test_copy_assign_throws()
169 assertContains<Tp>(rhs); in test_copy_assign_throws()
[all …]
Dvalue.pass.cpp114 template <class Tp, bool Move = false>
132 Tp rhs(1); in test_assign_throws()
133 assert(Tp::count == 1); in test_assign_throws()
137 assert(Tp::count == 1); in test_assign_throws()
138 assertEmpty<Tp>(lhs); in test_assign_throws()
142 Tp rhs(1); in test_assign_throws()
144 assert(Tp::count == 1); in test_assign_throws()
149 assert(Tp::count == 1); in test_assign_throws()
154 Tp rhs(1); in test_assign_throws()
156 assert(Tp::count == 1); in test_assign_throws()
[all …]
/external/libcxx/test/std/experimental/utilities/tuple/tuple.apply/
Dlarge_arity.pass.cpp37 template <class Tp, std::size_t ...Idx>
38 struct make_function<Tp, std::integer_sequence<std::size_t, Idx...>>
40 using type = bool (*)(always_t<Tp, Idx>...);
43 template <class Tp, std::size_t Size>
44 using make_function_t = typename make_function<Tp, std::make_index_sequence<Size>>::type;
47 template <class Tp, class Idx>
51 template <class Tp, std::size_t ...Idx>
52 struct make_tuple_imp<Tp, std::integer_sequence<std::size_t, Idx...>>
54 using type = std::tuple<always_t<Tp, Idx>...>;
57 template <class Tp, std::size_t Size>
[all …]
/external/libcxxabi/test/
Dcatch_multi_level_pointer.pass.cpp42 template <class Tp>
43 struct CreatePointer<Tp*> {
44 Tp* operator()() const { in operator ()()
45 return (Tp*)42; in operator ()()
69 template <class Tp, bool First = false>
71 typedef Tp* Type;
72 typedef Tp const* CType;
73 typedef Tp volatile* VType;
74 typedef Tp const volatile* CVType;
Dcatch_function_01.pass.cpp14 template <class Tp>
15 bool can_convert(Tp) { return true; } in can_convert() argument
Dcatch_member_function_pointer_01.pass.cpp28 template <class Tp>
29 bool can_convert(Tp) { return true; } in can_convert() argument
/external/libcxx/test/std/utilities/function.objects/func.require/
Dbullet_1_and_2.pass.cpp166 template <class QT, class Tp>
167 void runTestDispatchIf(Bool<true>, QT q, Tp& v) { in runTestDispatchIf()
171 template <class QT, class Tp>
172 void runTestDispatchIf(Bool<false>, QT, Tp&) { in runTestDispatchIf()
175 template <class Tp>
176 void runTestDispatch(Q_None, Tp& v) { in runTestDispatch()
180 template <class Tp>
181 void runTestDispatch(Q_Const, Tp& v) { in runTestDispatch()
182 Tp const& cv = v; in runTestDispatch()
187 template <class Tp>
[all …]
Dinvoke_helpers.h74 template <class QualType, class Tp>
75 QualType C_(Tp& v) { return static_cast<QualType>(v); }; in C_()
93 template <class Tp>
94 explicit DerivedFromType(Tp const& t) : Base(t) {} in DerivedFromType()
Dbullet_3_and_4.pass.cpp41 template <class Tp>
44 Tp object;
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp171 Constant *getRandomConstant(Type *Tp) { in getRandomConstant()
172 if (Tp->isIntegerTy()) { in getRandomConstant()
174 return ConstantInt::getAllOnesValue(Tp); in getRandomConstant()
175 return ConstantInt::getNullValue(Tp); in getRandomConstant()
176 } else if (Tp->isFloatingPointTy()) { in getRandomConstant()
178 return ConstantFP::getAllOnesValue(Tp); in getRandomConstant()
179 return ConstantFP::getNullValue(Tp); in getRandomConstant()
181 return UndefValue::get(Tp); in getRandomConstant()
185 Value *getRandomValue(Type *Tp) { in getRandomValue()
189 if (V->getType() == Tp) in getRandomValue()
[all …]
/external/libcxx/test/std/strings/basic.string/string.cons/
Dsize_char_alloc.pass.cpp53 template <class Tp>
55 test(Tp n, Tp c) in test()
70 template <class Tp, class A>
72 test(Tp n, Tp c, const A& a) in test()
/external/google-benchmark/include/benchmark/
Dbenchmark_api.h203 template <class Tp>
204 inline BENCHMARK_ALWAYS_INLINE void DoNotOptimize(Tp const& value) {
205 asm volatile("" : "+m" (const_cast<Tp&>(value)));
208 template <class Tp>
209 inline BENCHMARK_ALWAYS_INLINE void DoNotOptimize(Tp const& value) {
210 asm volatile("" : "+rm" (const_cast<Tp&>(value)));
213 template <class Tp>
214 inline BENCHMARK_ALWAYS_INLINE void DoNotOptimize(Tp const& value) {
/external/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
Dctor.pass.cpp36 template <class Tp>
38 typedef std::atomic<Tp> Atomic; in test()
40 constexpr Tp t(42); in test()
/external/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/
Dp8.cpp79 template <class Tp> class allocator;
88 template <class Tp>
92 typedef Tp& reference;
/external/llvm/include/llvm/Analysis/
DTargetTransformInfo.h434 int getShuffleCost(ShuffleKind Kind, Type *Tp, int Index = 0,
497 unsigned getNumberOfParts(Type *Tp) const;
604 virtual int getShuffleCost(ShuffleKind Kind, Type *Tp, int Index,
628 virtual unsigned getNumberOfParts(Type *Tp) = 0;
770 int getShuffleCost(ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost() argument
772 return Impl.getShuffleCost(Kind, Tp, Index, SubTp); in getShuffleCost()
812 unsigned getNumberOfParts(Type *Tp) override { in getNumberOfParts() argument
813 return Impl.getNumberOfParts(Tp); in getNumberOfParts()
/external/llvm/lib/Analysis/
DTargetTransformInfo.cpp306 unsigned TargetTransformInfo::getNumberOfParts(Type *Tp) const { in getNumberOfParts()
307 return TTIImpl->getNumberOfParts(Tp); in getNumberOfParts()
310 int TargetTransformInfo::getAddressComputationCost(Type *Tp, in getAddressComputationCost() argument
312 int Cost = TTIImpl->getAddressComputationCost(Tp, IsComplex); in getAddressComputationCost()
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp520 Type *Tp) { in getRecurrenceIdentity() argument
526 return ConstantInt::get(Tp, 0); in getRecurrenceIdentity()
529 return ConstantInt::get(Tp, 1); in getRecurrenceIdentity()
532 return ConstantInt::get(Tp, -1, true); in getRecurrenceIdentity()
535 return ConstantFP::get(Tp, 1.0L); in getRecurrenceIdentity()
538 return ConstantFP::get(Tp, 0.0L); in getRecurrenceIdentity()
/external/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp332 int ARMTTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost() argument
336 return BaseT::getShuffleCost(Kind, Tp, Index, SubTp); in getShuffleCost()
352 std::pair<int, MVT> LT = TLI->getTypeLegalizationCost(DL, Tp); in getShuffleCost()
358 return BaseT::getShuffleCost(Kind, Tp, Index, SubTp); in getShuffleCost()
378 std::pair<int, MVT> LT = TLI->getTypeLegalizationCost(DL, Tp); in getShuffleCost()
382 return BaseT::getShuffleCost(Kind, Tp, Index, SubTp); in getShuffleCost()
384 return BaseT::getShuffleCost(Kind, Tp, Index, SubTp); in getShuffleCost()
DARMTargetTransformInfo.h97 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h330 unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost() argument
333 return getAltShuffleOverhead(Tp); in getShuffleCost()
763 unsigned getNumberOfParts(Type *Tp) { in getNumberOfParts() argument
764 std::pair<unsigned, MVT> LT = getTLI()->getTypeLegalizationCost(DL, Tp); in getNumberOfParts()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp271 int PPCTTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost() argument
274 std::pair<int, MVT> LT = TLI->getTypeLegalizationCost(DL, Tp); in getShuffleCost()
DPPCTargetTransformInfo.h80 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.h71 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
/external/libcap-ng/libcap-ng-0.7/
Dcompile172 set x "$@" -Tp"$file"

123