Home
last modified time | relevance | path

Searched refs:simplify_type (Results 1 – 25 of 49) sorted by relevance

12

/external/llvm/include/llvm/Support/
DCasting.h32 template<typename From> struct simplify_type { struct
39 template<typename From> struct simplify_type<const From> { argument
40 typedef typename simplify_type<From>::SimpleType NonConstSimpleType;
46 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
113 typename simplify_type<SimpleFrom>::SimpleType>::doit(
114 simplify_type<const From>::getSimplifiedValue(Val));
134 typename simplify_type<const Y>::SimpleType>::doit(Val);
183 typename simplify_type<From>::SimpleType>::ret_type ret_type;
193 typename simplify_type<SimpleFrom>::SimpleType>::doit(
194 simplify_type<From>::getSimplifiedValue(Val));
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DCasting.h32 template<typename From> struct simplify_type { struct
39 template<typename From> struct simplify_type<const From> { argument
40 typedef typename simplify_type<From>::SimpleType NonConstSimpleType;
46 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
113 typename simplify_type<SimpleFrom>::SimpleType>::doit(
114 simplify_type<const From>::getSimplifiedValue(Val));
133 typename simplify_type<const Y>::SimpleType>::doit(Val);
182 typename simplify_type<From>::SimpleType>::ret_type ret_type;
192 typename simplify_type<SimpleFrom>::SimpleType>::doit(
193 simplify_type<From>::getSimplifiedValue(Val));
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DCasting.h33 template<typename From> struct simplify_type { struct
40 template<typename From> struct simplify_type<const From> { argument
41 using NonConstSimpleType = typename simplify_type<From>::SimpleType;
48 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
123 typename simplify_type<SimpleFrom>::SimpleType>::doit(
124 simplify_type<const From>::getSimplifiedValue(Val));
143 typename simplify_type<const Y>::SimpleType>::doit(Val);
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
220 typename simplify_type<SimpleFrom>::SimpleType>::doit(
221 simplify_type<From>::getSimplifiedValue(Val));
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DCasting.h33 template<typename From> struct simplify_type { struct
40 template<typename From> struct simplify_type<const From> { argument
41 using NonConstSimpleType = typename simplify_type<From>::SimpleType;
48 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
122 typename simplify_type<SimpleFrom>::SimpleType>::doit(
123 simplify_type<const From>::getSimplifiedValue(Val));
143 typename simplify_type<const Y>::SimpleType>::doit(Val);
215 To, From, typename simplify_type<From>::SimpleType>::ret_type;
225 typename simplify_type<SimpleFrom>::SimpleType>::doit(
226 simplify_type<From>::getSimplifiedValue(Val));
[all …]
/external/llvm/unittests/Support/
DCasting.cpp69 template <> struct simplify_type<foo> { struct
80 static_assert(std::is_same<simplify_type<Use>::SimpleType, Value *>::value,
82 static_assert(std::is_same<simplify_type<Use *>::SimpleType, Value *>::value,
86 static_assert(std::is_same<simplify_type<foo>::SimpleType, int>::value,
88 static_assert(std::is_same<simplify_type<foo *>::SimpleType, foo *>::value,
262 template <> struct simplify_type<pointer_wrappers::PTy> { struct
268 template <> struct simplify_type<const pointer_wrappers::PTy> { struct
/external/llvm-project/llvm/include/llvm/IR/
DUse.h34 template <typename> struct simplify_type;
116 template <> struct simplify_type<Use> {
121 template <> struct simplify_type<const Use> {
DTrackingMDRef.h145 template <> struct simplify_type<TrackingMDRef> {
151 template <> struct simplify_type<const TrackingMDRef> {
159 template <class T> struct simplify_type<TypedTrackingMDRef<T>> {
167 template <class T> struct simplify_type<const TypedTrackingMDRef<T>> {
DValueHandle.h167 template <> struct simplify_type<WeakVH> {
172 template <> struct simplify_type<const WeakVH> {
231 template <> struct simplify_type<WeakTrackingVH> {
236 template <> struct simplify_type<const WeakTrackingVH> {
/external/llvm/include/llvm/IR/
DTrackingMDRef.h137 template <> struct simplify_type<TrackingMDRef> {
142 template <> struct simplify_type<const TrackingMDRef> {
149 template <class T> struct simplify_type<TypedTrackingMDRef<T>> {
156 template <class T> struct simplify_type<const TypedTrackingMDRef<T>> {
DUse.h37 template <typename> struct simplify_type;
150 template <> struct simplify_type<Use> {
154 template <> struct simplify_type<const Use> {
DValueHandle.h23 template<typename From> struct simplify_type;
168 template <> struct simplify_type<WeakVH> {
172 template <> struct simplify_type<const WeakVH> {
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DTrackingMDRef.h137 template <> struct simplify_type<TrackingMDRef> {
142 template <> struct simplify_type<const TrackingMDRef> {
149 template <class T> struct simplify_type<TypedTrackingMDRef<T>> {
156 template <class T> struct simplify_type<const TypedTrackingMDRef<T>> {
DUse.h37 template <typename> struct simplify_type;
142 template <> struct simplify_type<Use> {
146 template <> struct simplify_type<const Use> {
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DTrackingMDRef.h145 template <> struct simplify_type<TrackingMDRef> {
151 template <> struct simplify_type<const TrackingMDRef> {
159 template <class T> struct simplify_type<TypedTrackingMDRef<T>> {
167 template <class T> struct simplify_type<const TypedTrackingMDRef<T>> {
DUse.h34 template <typename> struct simplify_type;
165 template <> struct simplify_type<Use> {
170 template <> struct simplify_type<const Use> {
DValueHandle.h163 template <> struct simplify_type<WeakVH> {
168 template <> struct simplify_type<const WeakVH> {
227 template <> struct simplify_type<WeakTrackingVH> {
232 template <> struct simplify_type<const WeakTrackingVH> {
/external/llvm-project/llvm/unittests/Support/
DCasting.cpp80 template <> struct simplify_type<foo> { struct
91 static_assert(std::is_same<simplify_type<Use>::SimpleType, Value *>::value,
93 static_assert(std::is_same<simplify_type<Use *>::SimpleType, Value *>::value,
97 static_assert(std::is_same<simplify_type<foo>::SimpleType, int>::value,
99 static_assert(std::is_same<simplify_type<foo *>::SimpleType, foo *>::value,
342 template <> struct simplify_type<pointer_wrappers::PTy> { struct
348 template <> struct simplify_type<const pointer_wrappers::PTy> { struct
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
Dilist_iterator.h166 template <typename From> struct simplify_type;
173 struct simplify_type<ilist_iterator<OptionsT, false, IsConst>> {
180 struct simplify_type<const ilist_iterator<OptionsT, false, IsConst>>
181 : simplify_type<ilist_iterator<OptionsT, false, IsConst>> {};
DIntrusiveRefCntPtr.h268 template <typename From> struct simplify_type;
270 template<class T> struct simplify_type<IntrusiveRefCntPtr<T>> {
277 template<class T> struct simplify_type<const IntrusiveRefCntPtr<T>> {
/external/llvm-project/llvm/include/llvm/ADT/
Dilist_iterator.h178 template <typename From> struct simplify_type;
185 struct simplify_type<ilist_iterator<OptionsT, false, IsConst>> {
192 struct simplify_type<const ilist_iterator<OptionsT, false, IsConst>>
193 : simplify_type<ilist_iterator<OptionsT, false, IsConst>> {};
DIntrusiveRefCntPtr.h282 template <typename From> struct simplify_type;
284 template <class T> struct simplify_type<IntrusiveRefCntPtr<T>> {
292 template <class T> struct simplify_type<const IntrusiveRefCntPtr<T>> {
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
Dilist_iterator.h179 template <typename From> struct simplify_type;
186 struct simplify_type<ilist_iterator<OptionsT, false, IsConst>> {
193 struct simplify_type<const ilist_iterator<OptionsT, false, IsConst>>
194 : simplify_type<ilist_iterator<OptionsT, false, IsConst>> {};
DIntrusiveRefCntPtr.h249 template <typename From> struct simplify_type;
251 template <class T> struct simplify_type<IntrusiveRefCntPtr<T>> {
259 template <class T> struct simplify_type<const IntrusiveRefCntPtr<T>> {
/external/llvm/include/llvm/ADT/
DIntrusiveRefCntPtr.h270 template <typename From> struct simplify_type;
272 template<class T> struct simplify_type<IntrusiveRefCntPtr<T> > {
279 template<class T> struct simplify_type<const IntrusiveRefCntPtr<T> > {
/external/llvm-project/llvm/include/llvm/Analysis/
DAssumptionCache.h252 template<> struct simplify_type<AssumptionCache::ResultElem> {
259 template<> struct simplify_type<const AssumptionCache::ResultElem> {

12