/llvm-project/mlir/python/mlir/extras/ |
H A D | types.py | 99 def _shaped(*shape, element_type: Type = None, type_constructor=None): 102 if (element_type is None and shape and not isinstance(shape[-1], Type)) or ( 103 shape and isinstance(shape[-1], Type) and element_type is not None 106 f"Either element_type must be provided explicitly XOR last arg to tensor type constructor must be the element type." 108 if element_type is not None: 109 type = element_type 122 element_type: Type = None, 128 element_type=element_type, 135 def tensor(*shape, element_type [all...] |
/llvm-project/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.types/ |
H A D | element_type.compile.pass.cpp | 25 typedef char element_type; typedef 31 typedef char element_type; typedef 47 static int element_type; member 53 typedef int element_type; typedef 56 static_assert(std::is_same<std::pointer_traits<A>::element_type, char>::value, ""); 57 static_assert(std::is_same<std::pointer_traits<B<int> >::element_type, char>::value, ""); 58 static_assert(std::is_same<std::pointer_traits<C<int> >::element_type, int>::value, ""); 59 static_assert(std::is_same<std::pointer_traits<D<double, int> >::element_type, double>::value, ""); 60 static_assert(std::is_same<std::pointer_traits<E<double, int> >::element_type, double>::value, ""); 62 static_assert(std::is_same<std::pointer_traits<F<double>>::element_type, double>::value, "");
|
/llvm-project/libcxx/include/ |
H A D | span | 59 using element_type = ElementType; 63 using pointer = element_type*; 64 using const_pointer = const element_type*; 65 using reference = element_type&; 66 using const_reference = const element_type&; 78 constexpr span(type_identity_t<element_type> (&arr)[N]) noexcept; 93 constexpr span<element_type, Count> first() const; 95 constexpr span<element_type, Count> last() const; 97 constexpr span<element_type, see below> subspan() const; 99 constexpr span<element_type, dynamic_exten [all...] |
/llvm-project/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.functions/ |
H A D | pointer_to.pass.cpp | 30 typedef T element_type; typedef 31 element_type* t_; 33 A(element_type* t) : t_(t) {} in A() 35 …atic A pointer_to(typename std::conditional<std::is_void<element_type>::value, nat, element_type>:… in pointer_to() 42 typename Pointer::element_type obj; in test() 51 { (std::pointer_traits<A<void> >::element_type)0; } in main()
|
/llvm-project/llvm/utils/ |
H A D | shuffle_fuzz.py | 68 (width, element_type) = random.choice( 73 (width, element_type) = random.choice( 80 element_type = random.choice(element_types) 89 }[element_type] 149 % (args.seed, width, element_type) 190 integral_element_type = element_type 191 if element_type == "f32": 193 element_type = "float" 194 elif element_type == "f64": 196 element_type = "double" [all …]
|
/llvm-project/lldb/source/DataFormatters/ |
H A D | VectorType.cpp | 27 CompilerType element_type, in GetCompilerTypeForFormat() argument 112 return element_type; in GetCompilerTypeForFormat() 127 CompilerType element_type) { in GetItemFormatForFormat() argument 162 bool is_char = element_type.IsCharType(); in GetItemFormatForFormat() 164 element_type.IsIntegerType(is_signed); in GetItemFormatForFormat() 175 /// 'element_type'. 179 /// But calling `CalculateNumChildren` with an 'element_type' 189 /// \param[in] element_type The type of elements we interpret 194 /// type 'element_type'. Returns a std::nullopt if the 195 /// size of the container is not a multiple of 'element_type' 199 CalculateNumChildren(CompilerType container_elem_type,uint64_t num_elements,CompilerType element_type) CalculateNumChildren() argument 258 CompilerType element_type; Update() local [all...] |
/llvm-project/clang/test/AST/HLSL/ |
H A D | RWBuffer-AST.hlsl |
|
/llvm-project/libcxx/test/std/containers/views/mdspan/mdspan/ |
H A D | CustomTestAccessors.h | 78 using element_type = ElementType; 84 requires(std::is_convertible_v<OtherElementType (*)[], element_type (*)[]>) in requires() 106 using element_type = double; 113 requires(std::is_convertible_v<OtherElementType (*)[], element_type (*)[]>) 132 using element_type = unsigned; 153 using element_type = const unsigned; 178 using element_type = const float; 202 using element_type = const double; 230 using element_type = T; 257 using element_type 77 using element_type = ElementType; global() member [all...] |
/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/ |
H A D | types.pass.cpp | 32 ASSERT_SAME_TYPE(typename std::weak_ptr<T>::element_type, T); in test() 34 ASSERT_SAME_TYPE(typename std::weak_ptr<T[]>::element_type, T); in test() 35 ASSERT_SAME_TYPE(typename std::weak_ptr<T[8]>::element_type, T); in test() 47 ASSERT_SAME_TYPE(typename std::weak_ptr<int[][2]>::element_type, int[2]); in main()
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | easily-swappable-parameters-len2.cpp | 349 typedef T element_type; typedef 355 void memberTypedef(int I, Vector<int>::element_type E) {} in memberTypedef() 362 void memberTypedefDependent1(T T1, typename Vector<T>::element_type T2) {} // NO-WARN: Dependent na… in memberTypedefDependent1() 365 void memberTypedefDependent2(typename Vector<T>::element_type E1, in memberTypedefDependent2() 366 typename Vector<T>::element_type E2) {} in memberTypedefDependent2() 373 typename Vector<T>::element_type E, in memberTypedefDependentReference1() 378 typename Vector<T>::element_type E, in memberTypedefDependentReference2() 383 typename Vector<T>::element_type E, in memberTypedefDependentReference3() 384 const typename Vector<T>::element_type &R) {} in memberTypedefDependentReference3()
|
/llvm-project/libcxx/include/__memory/ |
H A D | pointer_traits.h | 46 _LIBCPP_CLASS_TRAITS_HAS_XXX(__has_element_type, element_type); 53 using type _LIBCPP_NODEBUG = typename _Ptr::element_type; 58 using type _LIBCPP_NODEBUG = typename _Sp<_Tp, _Args...>::element_type; 125 typedef typename __pointer_traits_element_type<pointer>::type element_type; 143 pointer_to(__conditional_t<is_void<element_type>::value, __nat, element_type>& __r) { 154 typedef _Tp element_type; 172 pointer_to(__conditional_t<is_void<element_type>::value, __nat, element_type>& __r) _NOEXCEPT { 268 using type = typename _Tp::element_type*; [all...] |
H A D | shared_ptr.h | 312 typedef remove_extent_t<_Tp> element_type; in _ALIGNAS_TYPE() 314 typedef _Tp element_type; in _ALIGNAS_TYPE() 322 element_type* __ptr_; in _ALIGNAS_TYPE() 455 _LIBCPP_HIDE_FROM_ABI shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) _NOEXCEPT 466 _LIBCPP_HIDE_FROM_ABI shared_ptr(shared_ptr<_Yp>&& __r, element_type* __p) noexcept 503 template <class _Yp, __enable_if_t<is_convertible<_Yp*, element_type*>::value, int> = 0> 515 is_convertible<typename unique_ptr<_Yp, _Dp>::pointer, element_type*>::value, 536 is_convertible<typename unique_ptr<_Yp, _Dp>::pointer, element_type*>::value, 585 __enable_if_t<!is_array<_Yp>::value && is_convertible<_Yp*, typename shared_ptr<_Tp>::element_type*>::value, 596 is_convertible<typename unique_ptr<_Yp, _Dp>::pointer, element_type*> > [all...] |
/llvm-project/libcxx/include/experimental/ |
H A D | memory | 20 using element_type = W; 80 using element_type = _Wp; 85 _LIBCPP_HIDE_FROM_ABI constexpr explicit observer_ptr(element_type* __p) noexcept : __ptr_(__p) {} 91 _LIBCPP_HIDE_FROM_ABI constexpr element_type* get() const noexcept { return __ptr_; } 93 _LIBCPP_HIDE_FROM_ABI constexpr element_type* operator->() const noexcept { return __ptr_; } 97 _LIBCPP_HIDE_FROM_ABI constexpr explicit operator element_type*() const noexcept { return __ptr_; } 100 _LIBCPP_HIDE_FROM_ABI constexpr void reset(element_type* __p = nullptr) noexcept { __ptr_ = __p; } 106 _LIBCPP_HIDE_FROM_ABI constexpr element_type* release() noexcept { 113 element_type* __ptr_;
|
H A D | propagate_const | 57 typedef remove_reference_t<decltype(*declval<T&>())> element_type; 74 constexpr const element_type* operator->() const; 75 constexpr operator const element_type*() const; // Not always defined 76 constexpr const element_type& operator*() const; 77 constexpr const element_type* get() const; 80 constexpr element_type* operator->(); 81 constexpr operator element_type*(); // Not always defined 82 constexpr element_type& operator*(); 83 constexpr element_type* get(); 161 typedef remove_reference_t<decltype(*std::declval<_Tp&>())> element_type; [all...] |
/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/ |
H A D | types.pass.cpp | 14 // typedef T element_type; // until C++17 15 // typedef remove_extent_t<T> element_type; // since C++17 44 ASSERT_SAME_TYPE(typename std::shared_ptr<T>::element_type, T); in test() 50 ASSERT_SAME_TYPE(typename std::shared_ptr<T[]>::element_type, T); in test() 51 ASSERT_SAME_TYPE(typename std::shared_ptr<T[8]>::element_type, T); in test() 62 ASSERT_SAME_TYPE(typename std::shared_ptr<int[][2]>::element_type, int[2]); in main()
|
/llvm-project/libc/src/__support/CPP/ |
H A D | span.h | 41 using element_type = T; 98 LIBC_INLINE constexpr span<element_type> 100 return span<element_type>(data() + offset, count_to_size(offset, count)); 103 LIBC_INLINE constexpr span<element_type> first(size_type count) const { in first() 107 LIBC_INLINE constexpr span<element_type> last(size_type count) const { in last() 108 return span<element_type>(data() + (size() - count), count);
|
/llvm-project/clang/test/CodeGenCXX/ |
H A D | linetable-eh.cpp | 22 typedef _Tp element_type; typedef in shared_ptr 23 element_type* __ptr_; 25 element_type* operator->() const noexcept {return __ptr_;} in operator ->()
|
H A D | 2010-07-23-DeclLoc.cpp | 17 typedef _Tp element_type; typedef in std::auto_ptr 18 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } in auto_ptr() 19 element_type& operator*() const throw() { return *_M_ptr; } in operator *()
|
/llvm-project/libcxx/test/std/utilities/memory/pointer.traits/ |
H A D | ptr.pointer_to.pass.cpp | 59 static_assert(std::is_same<std::pointer_traits<void*>::element_type, void>::value, ""); in main() 60 …static_assert(std::is_same<std::pointer_traits<const void*>::element_type, const void>::value, ""); in main() 61 …static_assert(std::is_same<std::pointer_traits<volatile void*>::element_type, volatile void>::valu… in main()
|
/llvm-project/libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.random.access/ |
H A D | contiguous_iterator.compile.pass.cpp | 35 typedef int element_type; typedef 104 typedef short element_type; typedef 139 typedef int element_type; typedef 170 typedef void element_type; typedef 217 typedef int element_type; typedef
|
/llvm-project/libcxx/include/__iterator/ |
H A D | readable_traits.h | 45 concept __has_member_element_type = requires { typename _Tp::element_type; }; 66 struct indirectly_readable_traits<_Tp> : __cond_value_type<typename _Tp::element_type> {}; 74 same_as<remove_cv_t<typename _Tp::element_type>, remove_cv_t<typename _Tp::value_type>>
|
/llvm-project/libcxx/test/libcxx/utilities/memory/pointer.conversion/ |
H A D | to_address.pass.cpp | 23 using element_type = Irrelevant; typedef 30 using element_type = Irrelevant; typedef 58 using element_type = Irrelevant; typedef 85 using element_type = Irrelevant; typedef
|
/llvm-project/llvm/lib/Analysis/models/ |
H A D | log_reader.py | 32 element_type: type 46 element_type=_element_types[element_type_str], 54 self._view = ctypes.cast(self._buffer, ctypes.POINTER(self._spec.element_type)) 70 size = math.prod(ts.shape) * ctypes.sizeof(ts.element_type)
|
/llvm-project/mlir/test/python/ir/ |
H A D | attributes.py | 352 print(ShapedType(a.type).element_type) 367 print(ShapedType(a.type).element_type) 468 dtype = ShapedType(attr.type).element_type 525 print(ShapedType(a.type).element_type) 584 print(ShapedType(type_attr.value).element_type) 691 print(repr(attr.type.element_type)) 709 print(repr(type_attr.value.element_type))
|
/llvm-project/libcxx/test/std/utilities/memory/pointer.conversion/ |
H A D | to_address.pass.cpp | 25 using element_type = Irrelevant; typedef 32 using element_type = Irrelevant; typedef 60 using element_type = Irrelevant; typedef 87 using element_type = Irrelevant; typedef
|