Home
last modified time | relevance | path

Searched refs:ToType (Results 1 – 19 of 19) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dtest_cast.cpp21 template <typename FromType, typename ToType>
22 ToType __attribute__((noinline)) cast(FromType a) { in cast()
23 return (ToType)a; in cast()
26 template <typename FromType, typename ToType>
27 ToType __attribute__((noinline)) castBits(FromType a) { in castBits()
28 return *(ToType *)&a; in castBits()
31 template <typename FromType, typename ToType>
32 ToType __attribute__((noinline)) cast(int i, FromType a, int j) { in cast()
35 return (ToType)a; in cast()
38 template <typename FromType, typename ToType>
[all …]
Dtest_cast.h22 template <typename FromType, typename ToType> ToType cast(FromType a);
23 template <typename FromType, typename ToType> ToType castBits(FromType a);
29 template <typename FromType, typename ToType>
30 ToType cast(int i, FromType a, int j);
31 template <typename FromType, typename ToType>
32 ToType castBits(int i, FromType a, int j);
Dtest_cast_main.cpp123 template <typename FromType, typename ToType>
141 COMPARE_VEC(cast, FromType, ToType, Value, FromTypeString, ToTypeString); in testVector()
/third_party/boost/boost/container/detail/
Dcontainer_or_allocator_rebind.hpp29 template<class AllocatorOrContainer, class ToType, bool = is_container<AllocatorOrContainer>::value>
31 : container_rebind<AllocatorOrContainer, ToType>
34 template<class AllocatorOrContainer, class ToType>
35 struct container_or_allocator_rebind_impl<AllocatorOrContainer, ToType, false>
36 : allocator_traits<AllocatorOrContainer>::template portable_rebind_alloc<ToType>
39 template<class ToType>
40 struct container_or_allocator_rebind_impl<void, ToType, false>
41 : real_allocator<ToType, void>
44 template<class AllocatorOrContainer, class ToType>
46 : container_or_allocator_rebind_impl<AllocatorOrContainer, ToType>
/third_party/boost/libs/multi_index/example/
Dbimap.cpp34 template<typename FromType,typename ToType>
39 value_type(const FromType& first_,const ToType& second_): in value_type()
44 ToType second;
65 tag<to>, member_offset<value_type,ToType,to_offset> >
82 tag<to>, member<value_type,ToType,&value_type::second> >
/third_party/mindspore/tests/ut/python/dataset/
Dtest_to_type.py43 py_vision.ToType(np.int16)
82 py_vision.ToType(np.int32)
104 py_vision.ToType('int')
127 py_vision.ToType(np.int32)
150 py_vision.ToType()
173 py_vision.ToType('invalid')
/third_party/boost/libs/bimap/example/mi_to_b_path/
Dmi_bidirectional_map.cpp35 template<typename FromType,typename ToType>
38 typedef std::pair<FromType,ToType> value_type;
50 tag<to>, member<value_type,ToType,&value_type::second>
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DCore.h2108 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2109 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2110 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2111 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2112 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2113 LLVMValueRef LLVMConstUIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2114 LLVMValueRef LLVMConstSIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2115 LLVMValueRef LLVMConstFPToUI(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2116 LLVMValueRef LLVMConstFPToSI(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
2117 LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType);
[all …]
/third_party/boost/boost/wave/util/
Dcpp_include_paths.hpp56 template<typename FromType, typename ToType>
59 typedef std::pair<FromType, ToType> value_type;
78 boost::multi_index::member_offset<value_type, ToType, to_offset>
94 boost::multi_index::member<value_type, ToType, &value_type::second>
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DCore.cpp1661 LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstTrunc() argument
1663 unwrap(ToType))); in LLVMConstTrunc()
1666 LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstSExt() argument
1668 unwrap(ToType))); in LLVMConstSExt()
1671 LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstZExt() argument
1673 unwrap(ToType))); in LLVMConstZExt()
1676 LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPTrunc() argument
1678 unwrap(ToType))); in LLVMConstFPTrunc()
1681 LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType) { in LLVMConstFPExt() argument
1683 unwrap(ToType))); in LLVMConstFPExt()
[all …]
/third_party/googletest/googlemock/scripts/generator/cpp/
Dast.py475 def ToType(self, tokens): member in TypeConverter
509 AddType(self.ToType(new_tokens))
568 templated_types = self.ToType(templated_tokens)
1426 new_type = self.converter.ToType(tokens)[0]
1519 bases_ast = self.converter.ToType(base)
/third_party/boost/libs/bimap/doc/
Dexamples.qbk175 `std::pair<const FromType,const ToType>` such that no two elements exists with the
/third_party/googletest/googlemock/test/
Dgmock-actions_test.cc581 class ToType { class
584 ToType(const FromType& x) { *x.converted() = true; } // NOLINT in ToType() function in __anona0f7f6d50111::ToType
590 Action<ToType()> action(Return(x)); in TEST()
/third_party/mindspore/mindspore/dataset/vision/
Dpy_transforms.py105 class ToType(py_transforms.PyTensorOperation): class
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXISelDAGToDAG.cpp1904 unsigned ToType; in tryStoreVector() local
1906 ToType = ScalarVT.SimpleTy == MVT::f16 ? NVPTX::PTXLdStInstCode::Untyped in tryStoreVector()
1909 ToType = NVPTX::PTXLdStInstCode::Unsigned; in tryStoreVector()
1940 ToType = NVPTX::PTXLdStInstCode::Untyped; in tryStoreVector()
1947 StOps.push_back(getI32Imm(ToType, DL)); in tryStoreVector()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DLegalizerHelper.cpp459 static RTLIB::Libcall getConvRTLibDesc(unsigned Opcode, Type *ToType, in getConvRTLibDesc() argument
461 auto ToMVT = MVT::getVT(ToType); in getConvRTLibDesc()
482 conversionLibcall(MachineInstr &MI, MachineIRBuilder &MIRBuilder, Type *ToType, in conversionLibcall() argument
484 RTLIB::Libcall Libcall = getConvRTLibDesc(MI.getOpcode(), ToType, FromType); in conversionLibcall()
485 return createLibcall(MIRBuilder, Libcall, {MI.getOperand(0).getReg(), ToType}, in conversionLibcall()
/third_party/googletest/googlemock/include/gmock/
Dgmock-matchers.h415 using ToType = typename std::remove_cv<typename std::remove_pointer< in MatchAndExplain() local
423 std::is_same<FromType, ToType>::value || in MatchAndExplain()
424 !std::is_base_of<FromType, ToType>::value, in MatchAndExplain()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp962 bool SystemZTargetLowering::isTruncateFree(Type *FromType, Type *ToType) const { in isTruncateFree()
963 if (!FromType->isIntegerTy() || !ToType->isIntegerTy()) in isTruncateFree()
966 unsigned ToBits = ToType->getPrimitiveSizeInBits(); in isTruncateFree()
1242 Type *ToType) const { in allowTruncateForTailCall()
1243 return isTruncateFree(FromType, ToType); in allowTruncateForTailCall()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp1365 EVT ToType = V.getValueType(); in getValueBits() local
1367 if (FromType != MVT::i64 || ToType != MVT::i32) in getValueBits()
1373 const unsigned NumValidBits = ToType.getSizeInBits(); in getValueBits()