Home
last modified time | relevance | path

Searched refs:Is (Results 1 – 25 of 1200) sorted by relevance

12345678910>>...48

/third_party/skia/third_party/externals/tint/src/ast/
Dstatement.cc41 if (Is<AssignmentStatement>()) { in Name()
44 if (Is<BlockStatement>()) { in Name()
47 if (Is<BreakStatement>()) { in Name()
50 if (Is<CaseStatement>()) { in Name()
53 if (Is<CallStatement>()) { in Name()
56 if (Is<ContinueStatement>()) { in Name()
59 if (Is<DiscardStatement>()) { in Name()
62 if (Is<ElseStatement>()) { in Name()
65 if (Is<FallthroughStatement>()) { in Name()
68 if (Is<IfStatement>()) { in Name()
[all …]
Dstorage_texture_test.cc30 EXPECT_FALSE(ty->Is<DepthTexture>()); in TEST_F()
31 EXPECT_FALSE(ty->Is<SampledTexture>()); in TEST_F()
32 EXPECT_TRUE(ty->Is<StorageTexture>()); in TEST_F()
66 ASSERT_TRUE(s->Is<Texture>()); in TEST_F()
67 ASSERT_TRUE(s->Is<StorageTexture>()); in TEST_F()
68 EXPECT_TRUE(s->As<StorageTexture>()->type->Is<F32>()); in TEST_F()
77 ASSERT_TRUE(s->Is<Texture>()); in TEST_F()
78 ASSERT_TRUE(s->Is<StorageTexture>()); in TEST_F()
79 EXPECT_TRUE(s->As<StorageTexture>()->type->Is<U32>()); in TEST_F()
88 ASSERT_TRUE(s->Is<Texture>()); in TEST_F()
[all …]
Dworkgroup_decoration_test.cc30 ASSERT_TRUE(values[0]->Is<ast::IntLiteralExpression>()); in TEST_F()
40 ASSERT_TRUE(values[0]->Is<ast::IntLiteralExpression>()); in TEST_F()
43 ASSERT_TRUE(values[1]->Is<ast::IntLiteralExpression>()); in TEST_F()
53 ASSERT_TRUE(values[0]->Is<ast::IntLiteralExpression>()); in TEST_F()
56 ASSERT_TRUE(values[1]->Is<ast::IntLiteralExpression>()); in TEST_F()
59 ASSERT_TRUE(values[2]->Is<ast::IntLiteralExpression>()); in TEST_F()
67 ASSERT_TRUE(values[0]->Is<ast::IntLiteralExpression>()); in TEST_F()
70 ASSERT_TRUE(values[1]->Is<ast::IntLiteralExpression>()); in TEST_F()
/third_party/skia/third_party/externals/tint/src/
Dcastable_test.cc54 TEST(CastableBase, Is) { in TEST() argument
59 ASSERT_TRUE(frog->Is<Animal>()); in TEST()
60 ASSERT_TRUE(bear->Is<Animal>()); in TEST()
61 ASSERT_TRUE(gecko->Is<Animal>()); in TEST()
63 ASSERT_TRUE(frog->Is<Amphibian>()); in TEST()
64 ASSERT_FALSE(bear->Is<Amphibian>()); in TEST()
65 ASSERT_FALSE(gecko->Is<Amphibian>()); in TEST()
67 ASSERT_FALSE(frog->Is<Mammal>()); in TEST()
68 ASSERT_TRUE(bear->Is<Mammal>()); in TEST()
69 ASSERT_FALSE(gecko->Is<Mammal>()); in TEST()
[all …]
Dcastable.h72 bool Is(const tint::TypeInfo& type) const;
118 inline bool Is(FROM* obj) { in Is() function
136 return obj->TypeInfo().Is(TypeInfo::Of<std::remove_const_t<TO>>()); in Is()
149 inline bool Is(FROM* obj, Pred&& pred) { in Is() function
160 obj->TypeInfo().Is(TypeInfo::Of<std::remove_const_t<TO>>()); in Is()
180 return Is<TO, FLAGS>(obj) ? static_cast<TO*>(as_castable) : nullptr; in As()
190 return Is<TO, FLAGS>(obj) ? static_cast<const TO*>(as_castable) : nullptr; in As()
215 inline bool Is() const { in Is() function
216 return tint::Is<TO>(this); in Is()
224 inline bool Is(Pred&& pred) const { in Is() function
[all …]
/third_party/skia/src/core/
DSkRecordOpts.cpp41 typedef Pattern<Is<SetMatrix>, in multiple_set_matrices()
42 Greedy<Is<NoOp>>, in multiple_set_matrices()
43 Is<SetMatrix> > in multiple_set_matrices()
59 typedef Pattern<Is<SetMatrix>,
60 Greedy<Is<NoOp>>,
61 Is<SetMatrix> >
78 typedef Pattern<Is<Save>,
79 Greedy<Or<Is<NoOp>, IsDraw>>,
80 Is<Restore>>
148 typedef Pattern<Is<Save>,
[all …]
/third_party/skia/third_party/externals/tint/src/sem/
Dtype.cc76 return Is<F32>(); in is_float_scalar()
80 return Is([](const Matrix* m) { return m->type()->is_float_scalar(); }); in is_float_matrix()
84 return Is([](const Vector* v) { return v->type()->is_float_scalar(); }); in is_float_vector()
100 return Is<I32>(); in is_signed_integer_scalar()
104 return Is<U32>(); in is_unsigned_integer_scalar()
108 return Is([](const Vector* v) { return v->type()->Is<I32>(); }); in is_signed_integer_vector()
112 return Is([](const Vector* v) { return v->type()->Is<U32>(); }); in is_unsigned_integer_vector()
116 return Is<U32>() || is_unsigned_integer_vector(); in is_unsigned_scalar_or_vector()
120 return Is<I32>() || is_signed_integer_vector(); in is_signed_scalar_or_vector()
128 return Is([](const Vector* v) { return v->type()->Is<Bool>(); }); in is_bool_vector()
[all …]
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Dparser_impl_convert_type_test.cc112 EXPECT_TRUE(type->Is<Void>()); in TEST_F()
122 EXPECT_TRUE(type->Is<Bool>()); in TEST_F()
132 EXPECT_TRUE(type->Is<I32>()); in TEST_F()
142 EXPECT_TRUE(type->Is<U32>()); in TEST_F()
152 EXPECT_TRUE(type->Is<F32>()); in TEST_F()
198 EXPECT_TRUE(v2xf32->Is<Vector>()); in TEST_F()
199 EXPECT_TRUE(v2xf32->As<Vector>()->type->Is<F32>()); in TEST_F()
203 EXPECT_TRUE(v3xf32->Is<Vector>()); in TEST_F()
204 EXPECT_TRUE(v3xf32->As<Vector>()->type->Is<F32>()); in TEST_F()
208 EXPECT_TRUE(v4xf32->Is<Vector>()); in TEST_F()
[all …]
/third_party/flutter/skia/src/core/
DSkRecordOpts.cpp41 typedef Pattern<Is<SetMatrix>, in multiple_set_matrices()
42 Greedy<Is<NoOp>>, in multiple_set_matrices()
43 Is<SetMatrix> > in multiple_set_matrices()
59 typedef Pattern<Is<SetMatrix>,
60 Greedy<Is<NoOp>>,
61 Is<SetMatrix> >
78 typedef Pattern<Is<Save>,
79 Greedy<Or<Is<NoOp>, IsDraw>>,
80 Is<Restore>>
148 typedef Pattern<Is<Save>,
[all …]
/third_party/mesa3d/src/gallium/frontends/clover/util/
Dtuple.hpp33 template<int... Is>
39 template<int N, int... Is>
41 typedef typename enumerate<N-1, N-1, Is...>::type
45 template<int... Is>
46 struct enumerate<0, Is...> {
47 typedef integral_sequence<Is...> type;
57 template<typename F, typename T, int... Is>
58 struct _apply<F, T, integral_sequence<Is...>> {
61 std::declval<func_type>()(std::get<Is>(std::declval<T &&>())...)
66 return f(std::get<Is>(std::forward<T>(t))...); in eval()
[all …]
Dadaptor.hpp43 template<typename F, typename... Is>
48 F, typename std::iterator_traits<Is>::reference...
57 iterator_adaptor(F f, std::tuple<Is...> &&its) : in iterator_adaptor()
165 std::tuple<Is...> its;
168 template<typename F, typename... Is>
169 iterator_adaptor<F, Is...>
170 operator+(typename iterator_adaptor<F, Is...>::difference_type n, in operator +()
171 const iterator_adaptor<F, Is...> &jt) { in operator +()
175 template<typename F, typename... Is>
176 iterator_adaptor<F, Is...>
[all …]
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver_constants_test.cc37 EXPECT_TRUE(sem->Type()->Is<sem::I32>()); in TEST_F()
52 EXPECT_TRUE(sem->Type()->Is<sem::U32>()); in TEST_F()
67 EXPECT_TRUE(sem->Type()->Is<sem::F32>()); in TEST_F()
82 EXPECT_TRUE(sem->Type()->Is<sem::Bool>()); in TEST_F()
97 ASSERT_TRUE(sem->Type()->Is<sem::Vector>()); in TEST_F()
98 EXPECT_TRUE(sem->Type()->As<sem::Vector>()->type()->Is<sem::I32>()); in TEST_F()
101 EXPECT_TRUE(sem->ConstantValue().ElementType()->Is<sem::I32>()); in TEST_F()
116 ASSERT_TRUE(sem->Type()->Is<sem::Vector>()); in TEST_F()
117 EXPECT_TRUE(sem->Type()->As<sem::Vector>()->type()->Is<sem::U32>()); in TEST_F()
120 EXPECT_TRUE(sem->ConstantValue().ElementType()->Is<sem::U32>()); in TEST_F()
[all …]
Dvar_let_test.cc64 ASSERT_TRUE(TypeOf(i)->Is<sem::Reference>()); in TEST_F()
65 ASSERT_TRUE(TypeOf(u)->Is<sem::Reference>()); in TEST_F()
66 ASSERT_TRUE(TypeOf(f)->Is<sem::Reference>()); in TEST_F()
67 ASSERT_TRUE(TypeOf(b)->Is<sem::Reference>()); in TEST_F()
68 ASSERT_TRUE(TypeOf(s)->Is<sem::Reference>()); in TEST_F()
69 ASSERT_TRUE(TypeOf(a)->Is<sem::Reference>()); in TEST_F()
71 EXPECT_TRUE(TypeOf(i)->As<sem::Reference>()->StoreType()->Is<sem::I32>()); in TEST_F()
72 EXPECT_TRUE(TypeOf(u)->As<sem::Reference>()->StoreType()->Is<sem::U32>()); in TEST_F()
73 EXPECT_TRUE(TypeOf(f)->As<sem::Reference>()->StoreType()->Is<sem::F32>()); in TEST_F()
74 EXPECT_TRUE(TypeOf(b)->As<sem::Reference>()->StoreType()->Is<sem::Bool>()); in TEST_F()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/
Dappend_vector_test.cc57 ASSERT_TRUE(ctor->ReturnType()->Is<sem::Vector>()); in TEST_F()
59 EXPECT_TRUE(ctor->ReturnType()->As<sem::Vector>()->type()->Is<sem::I32>()); in TEST_F()
63 EXPECT_TRUE(ctor->Parameters()[0]->Type()->Is<sem::I32>()); in TEST_F()
64 EXPECT_TRUE(ctor->Parameters()[1]->Type()->Is<sem::I32>()); in TEST_F()
65 EXPECT_TRUE(ctor->Parameters()[2]->Type()->Is<sem::I32>()); in TEST_F()
88 EXPECT_TRUE(u32_to_i32->target.type->Is<ast::I32>()); in TEST_F()
101 ASSERT_TRUE(ctor->ReturnType()->Is<sem::Vector>()); in TEST_F()
103 EXPECT_TRUE(ctor->ReturnType()->As<sem::Vector>()->type()->Is<sem::I32>()); in TEST_F()
107 EXPECT_TRUE(ctor->Parameters()[0]->Type()->Is<sem::I32>()); in TEST_F()
108 EXPECT_TRUE(ctor->Parameters()[1]->Type()->Is<sem::I32>()); in TEST_F()
[all …]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_function_decl_test.cc37 EXPECT_TRUE(f->return_type->Is<ast::Void>()); in TEST_F()
44 EXPECT_TRUE(f->return_type->Is<ast::Void>()); in TEST_F()
48 EXPECT_TRUE(body->statements[0]->Is<ast::ReturnStatement>()); in TEST_F()
65 EXPECT_TRUE(f->return_type->Is<ast::Void>()); in TEST_F()
70 ASSERT_TRUE(decorations[0]->Is<ast::WorkgroupDecoration>()); in TEST_F()
74 ASSERT_TRUE(values[0]->Is<ast::IntLiteralExpression>()); in TEST_F()
77 ASSERT_TRUE(values[1]->Is<ast::IntLiteralExpression>()); in TEST_F()
80 ASSERT_TRUE(values[2]->Is<ast::IntLiteralExpression>()); in TEST_F()
85 EXPECT_TRUE(body->statements[0]->Is<ast::ReturnStatement>()); in TEST_F()
104 EXPECT_TRUE(f->return_type->Is<ast::Void>()); in TEST_F()
[all …]
Dparser_impl_assignment_stmt_test.cc30 ASSERT_TRUE(e->Is<ast::AssignmentStatement>()); in TEST_F()
34 ASSERT_TRUE(e->lhs->Is<ast::IdentifierExpression>()); in TEST_F()
39 ASSERT_TRUE(e->rhs->Is<ast::SintLiteralExpression>()); in TEST_F()
51 ASSERT_TRUE(e->Is<ast::AssignmentStatement>()); in TEST_F()
56 ASSERT_TRUE(e->rhs->Is<ast::SintLiteralExpression>()); in TEST_F()
59 ASSERT_TRUE(e->lhs->Is<ast::MemberAccessorExpression>()); in TEST_F()
62 ASSERT_TRUE(mem->member->Is<ast::IdentifierExpression>()); in TEST_F()
66 ASSERT_TRUE(mem->structure->Is<ast::IndexAccessorExpression>()); in TEST_F()
70 ASSERT_TRUE(idx->index->Is<ast::SintLiteralExpression>()); in TEST_F()
73 ASSERT_TRUE(idx->object->Is<ast::MemberAccessorExpression>()); in TEST_F()
[all …]
Dparser_impl_unary_expression_test.cc31 ASSERT_TRUE(e->Is<ast::IndexAccessorExpression>()); in TEST_F()
33 ASSERT_TRUE(idx->object->Is<ast::IdentifierExpression>()); in TEST_F()
37 ASSERT_TRUE(idx->index->Is<ast::SintLiteralExpression>()); in TEST_F()
48 ASSERT_TRUE(e->Is<ast::UnaryOpExpression>()); in TEST_F()
53 ASSERT_TRUE(u->expr->Is<ast::SintLiteralExpression>()); in TEST_F()
64 ASSERT_TRUE(e->Is<ast::UnaryOpExpression>()); in TEST_F()
68 EXPECT_TRUE(u->expr->Is<ast::IdentifierExpression>()); in TEST_F()
78 ASSERT_TRUE(e->Is<ast::UnaryOpExpression>()); in TEST_F()
82 EXPECT_TRUE(u->expr->Is<ast::IdentifierExpression>()); in TEST_F()
92 ASSERT_TRUE(e->Is<ast::UnaryOpExpression>()); in TEST_F()
[all …]
Dparser_impl_relational_expression_test.cc30 ASSERT_TRUE(e->Is<ast::BinaryExpression>()); in TEST_F()
34 ASSERT_TRUE(rel->lhs->Is<ast::IdentifierExpression>()); in TEST_F()
38 ASSERT_TRUE(rel->rhs->Is<ast::BoolLiteralExpression>()); in TEST_F()
50 ASSERT_TRUE(e->Is<ast::BinaryExpression>()); in TEST_F()
54 ASSERT_TRUE(rel->lhs->Is<ast::IdentifierExpression>()); in TEST_F()
58 ASSERT_TRUE(rel->rhs->Is<ast::BoolLiteralExpression>()); in TEST_F()
70 ASSERT_TRUE(e->Is<ast::BinaryExpression>()); in TEST_F()
74 ASSERT_TRUE(rel->lhs->Is<ast::IdentifierExpression>()); in TEST_F()
78 ASSERT_TRUE(rel->rhs->Is<ast::BoolLiteralExpression>()); in TEST_F()
90 ASSERT_TRUE(e->Is<ast::BinaryExpression>()); in TEST_F()
[all …]
Dparser_impl_texture_sampler_types_test.cc41 ASSERT_TRUE(t->Is<ast::Sampler>()); in TEST_F()
53 ASSERT_TRUE(t->Is<ast::Sampler>()); in TEST_F()
65 ASSERT_TRUE(t->Is<ast::Texture>()); in TEST_F()
66 ASSERT_TRUE(t->Is<ast::DepthTexture>()); in TEST_F()
78 ASSERT_TRUE(t->Is<ast::Texture>()); in TEST_F()
79 ASSERT_TRUE(t->Is<ast::SampledTexture>()); in TEST_F()
80 ASSERT_TRUE(t->As<ast::SampledTexture>()->type->Is<ast::F32>()); in TEST_F()
92 ASSERT_TRUE(t->Is<ast::Texture>()); in TEST_F()
93 ASSERT_TRUE(t->Is<ast::SampledTexture>()); in TEST_F()
94 ASSERT_TRUE(t->As<ast::SampledTexture>()->type->Is<ast::I32>()); in TEST_F()
[all …]
Dparser_impl_depth_texture_type_test.cc37 ASSERT_TRUE(t->Is<ast::Texture>()); in TEST_F()
38 ASSERT_TRUE(t->Is<ast::DepthTexture>()); in TEST_F()
50 ASSERT_TRUE(t->Is<ast::Texture>()); in TEST_F()
51 ASSERT_TRUE(t->Is<ast::DepthTexture>()); in TEST_F()
63 ASSERT_TRUE(t->Is<ast::Texture>()); in TEST_F()
64 ASSERT_TRUE(t->Is<ast::DepthTexture>()); in TEST_F()
76 ASSERT_TRUE(t->Is<ast::Texture>()); in TEST_F()
77 ASSERT_TRUE(t->Is<ast::DepthTexture>()); in TEST_F()
89 ASSERT_TRUE(t->Is<ast::Texture>()); in TEST_F()
90 ASSERT_TRUE(t->Is<ast::DepthMultisampledTexture>()); in TEST_F()
Dparser_impl_type_decl_test.cc56 ASSERT_TRUE(t.value->Is<ast::Bool>()); in TEST_F()
67 ASSERT_TRUE(t.value->Is<ast::F32>()); in TEST_F()
78 ASSERT_TRUE(t.value->Is<ast::I32>()); in TEST_F()
89 ASSERT_TRUE(t.value->Is<ast::U32>()); in TEST_F()
113 EXPECT_TRUE(t.value->Is<ast::Vector>()); in TEST_P()
185 ASSERT_TRUE(t.value->Is<ast::Pointer>()); in TEST_F()
188 ASSERT_TRUE(ptr->type->Is<ast::F32>()); in TEST_F()
200 ASSERT_TRUE(t.value->Is<ast::Pointer>()); in TEST_F()
203 ASSERT_TRUE(ptr->type->Is<ast::F32>()); in TEST_F()
216 ASSERT_TRUE(t.value->Is<ast::Pointer>()); in TEST_F()
[all …]
Dparser_impl_const_expr_test.cc27 ASSERT_TRUE(e->Is<ast::CallExpression>()); in TEST_F()
30 ASSERT_TRUE(t->target.type->Is<ast::Vector>()); in TEST_F()
35 ASSERT_TRUE(t->args[0]->Is<ast::FloatLiteralExpression>()); in TEST_F()
38 ASSERT_TRUE(t->args[1]->Is<ast::FloatLiteralExpression>()); in TEST_F()
47 ASSERT_TRUE(e->Is<ast::CallExpression>()); in TEST_F()
50 ASSERT_TRUE(t->target.type->Is<ast::Vector>()); in TEST_F()
61 ASSERT_TRUE(e->Is<ast::CallExpression>()); in TEST_F()
64 ASSERT_TRUE(t->target.type->Is<ast::Vector>()); in TEST_F()
68 ASSERT_TRUE(t->args[0]->Is<ast::LiteralExpression>()); in TEST_F()
69 ASSERT_TRUE(t->args[1]->Is<ast::LiteralExpression>()); in TEST_F()
[all …]
Dparser_impl_primary_expression_test.cc30 ASSERT_TRUE(e->Is<ast::IdentifierExpression>()); in TEST_F()
42 ASSERT_TRUE(e->Is<ast::CallExpression>()); in TEST_F()
49 ASSERT_TRUE(val[0]->Is<ast::SintLiteralExpression>()); in TEST_F()
52 ASSERT_TRUE(val[1]->Is<ast::SintLiteralExpression>()); in TEST_F()
55 ASSERT_TRUE(val[2]->Is<ast::SintLiteralExpression>()); in TEST_F()
58 ASSERT_TRUE(val[3]->Is<ast::SintLiteralExpression>()); in TEST_F()
70 ASSERT_TRUE(e->Is<ast::CallExpression>()); in TEST_F()
131 ASSERT_TRUE(e->Is<ast::CallExpression>()); in TEST_F()
155 ASSERT_TRUE(e->Is<ast::CallExpression>()); in TEST_F()
163 ASSERT_TRUE(call->args[0]->Is<ast::UintLiteralExpression>()); in TEST_F()
[all …]
/third_party/skia/third_party/externals/tint/src/transform/
Dtransform_test.cc44 })->Is<ast::I32>()); in TEST_F()
47 })->Is<ast::U32>()); in TEST_F()
50 })->Is<ast::F32>()); in TEST_F()
53 })->Is<ast::Bool>()); in TEST_F()
56 })->Is<ast::Void>()); in TEST_F()
64 ASSERT_TRUE(mat->Is<ast::Matrix>()); in TEST_F()
65 ASSERT_TRUE(mat->As<ast::Matrix>()->type->Is<ast::F32>()); in TEST_F()
74 ASSERT_TRUE(vec->Is<ast::Vector>()); in TEST_F()
75 ASSERT_TRUE(vec->As<ast::Vector>()->type->Is<ast::F32>()); in TEST_F()
83 ASSERT_TRUE(arr->Is<ast::Array>()); in TEST_F()
[all …]
/third_party/boost/boost/histogram/
Dmulti_index.hpp40 template <class... Is>
41 multi_index(axis::index_type i, Is... is) in multi_index()
45 template <class... Is>
46 multi_index(const std::tuple<axis::index_type, Is...>& is) in multi_index()
47 : multi_index(is, mp11::make_index_sequence<(1 + sizeof...(Is))>{}) {} in multi_index()
69 template <class T, std::size_t... Is>
70 multi_index(const T& is, mp11::index_sequence<Is...>) in multi_index()
71 : multi_index(static_cast<axis::index_type>(std::get<Is>(is))...) {} in multi_index()
84 template <class... Is>
85 multi_index(axis::index_type i, Is... is) in multi_index()
[all …]

12345678910>>...48