Home
last modified time | relevance | path

Searched refs:IntConstant (Results 1 – 25 of 52) sorted by relevance

123

/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/
Dconstants.h35 class IntConstant; variable
56 virtual IntConstant* AsIntConstant() { return nullptr; } in AsIntConstant()
66 virtual const IntConstant* AsIntConstant() const { return nullptr; } in AsIntConstant()
105 class IntConstant : public ScalarConstant {
107 IntConstant(const analysis::Integer* ty, const std::vector<uint32_t>& w) in IntConstant() function
109 IntConstant(const analysis::Integer* ty, std::vector<uint32_t>&& w) in IntConstant() function
112 IntConstant* AsIntConstant() override { return this; } in AsIntConstant()
113 const IntConstant* AsIntConstant() const override { return this; } in AsIntConstant()
116 std::unique_ptr<IntConstant> CopyIntConstant() const { in CopyIntConstant()
117 return MakeUnique<IntConstant>(type_->AsInteger(), words_); in CopyIntConstant()
/third_party/spirv-tools/source/opt/
Dconstants.h45 class IntConstant; variable
68 virtual IntConstant* AsIntConstant() { return nullptr; } in AsIntConstant()
79 virtual const IntConstant* AsIntConstant() const { return nullptr; } in AsIntConstant()
175 class IntConstant : public ScalarConstant {
177 IntConstant(const Integer* ty, const std::vector<uint32_t>& w) in IntConstant() function
179 IntConstant(const Integer* ty, std::vector<uint32_t>&& w) in IntConstant() function
182 IntConstant* AsIntConstant() override { return this; } in AsIntConstant()
183 const IntConstant* AsIntConstant() const override { return this; } in AsIntConstant()
216 std::unique_ptr<IntConstant> CopyIntConstant() const { in CopyIntConstant()
217 return MakeUnique<IntConstant>(type_->AsInteger(), words_); in CopyIntConstant()
Dconstants.cpp62 if (const IntConstant* ic = AsIntConstant()) { in GetU32()
74 if (const IntConstant* ic = AsIntConstant()) { in GetU64()
86 if (const IntConstant* ic = AsIntConstant()) { in GetS32()
98 if (const IntConstant* ic = AsIntConstant()) { in GetS64()
113 if (const IntConstant* ic = AsIntConstant()) { in GetZeroExtendedValue()
132 if (const IntConstant* ic = AsIntConstant()) { in GetSignExtendedValue()
251 return MakeUnique<IntConstant>(it, literal_words_or_ids); in CreateConstant()
337 } else if (const IntConstant* ic = c->AsIntConstant()) { in CreateInstruction()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dconstants.h45 class IntConstant; variable
68 virtual IntConstant* AsIntConstant() { return nullptr; } in AsIntConstant()
79 virtual const IntConstant* AsIntConstant() const { return nullptr; } in AsIntConstant()
175 class IntConstant : public ScalarConstant {
177 IntConstant(const Integer* ty, const std::vector<uint32_t>& w) in IntConstant() function
179 IntConstant(const Integer* ty, std::vector<uint32_t>&& w) in IntConstant() function
182 IntConstant* AsIntConstant() override { return this; } in AsIntConstant()
183 const IntConstant* AsIntConstant() const override { return this; } in AsIntConstant()
216 std::unique_ptr<IntConstant> CopyIntConstant() const { in CopyIntConstant()
217 return MakeUnique<IntConstant>(type_->AsInteger(), words_); in CopyIntConstant()
Dconstants.cpp62 if (const IntConstant* ic = AsIntConstant()) { in GetU32()
74 if (const IntConstant* ic = AsIntConstant()) { in GetU64()
86 if (const IntConstant* ic = AsIntConstant()) { in GetS32()
98 if (const IntConstant* ic = AsIntConstant()) { in GetS64()
113 if (const IntConstant* ic = AsIntConstant()) { in GetZeroExtendedValue()
132 if (const IntConstant* ic = AsIntConstant()) { in GetSignExtendedValue()
252 return MakeUnique<IntConstant>(it, literal_words_or_ids); in CreateConstant()
338 } else if (const IntConstant* ic = c->AsIntConstant()) { in CreateInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dconstants.h45 class IntConstant; variable
68 virtual IntConstant* AsIntConstant() { return nullptr; } in AsIntConstant()
79 virtual const IntConstant* AsIntConstant() const { return nullptr; } in AsIntConstant()
175 class IntConstant : public ScalarConstant {
177 IntConstant(const Integer* ty, const std::vector<uint32_t>& w) in IntConstant() function
179 IntConstant(const Integer* ty, std::vector<uint32_t>&& w) in IntConstant() function
182 IntConstant* AsIntConstant() override { return this; } in AsIntConstant()
183 const IntConstant* AsIntConstant() const override { return this; } in AsIntConstant()
216 std::unique_ptr<IntConstant> CopyIntConstant() const { in CopyIntConstant()
217 return MakeUnique<IntConstant>(type_->AsInteger(), words_); in CopyIntConstant()
Dconstants.cpp62 if (const IntConstant* ic = AsIntConstant()) { in GetU32()
74 if (const IntConstant* ic = AsIntConstant()) { in GetU64()
86 if (const IntConstant* ic = AsIntConstant()) { in GetS32()
98 if (const IntConstant* ic = AsIntConstant()) { in GetS64()
113 if (const IntConstant* ic = AsIntConstant()) { in GetZeroExtendedValue()
132 if (const IntConstant* ic = AsIntConstant()) { in GetSignExtendedValue()
252 return MakeUnique<IntConstant>(it, literal_words_or_ids); in CreateConstant()
338 } else if (const IntConstant* ic = c->AsIntConstant()) { in CreateInstruction()
/third_party/spirv-tools/test/opt/
Dconstants_test.cpp49 IntConstant value(&type, GetParam().words); in TEST_P()
56 IntConstant value(&type, GetParam().words); in TEST_P()
Dconstant_manager_test.cpp101 IntConstant int_constant(int_type->AsInteger(), {3}); in TEST_F()
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dconstants_test.cpp49 IntConstant value(&type, GetParam().words); in TEST_P()
56 IntConstant value(&type, GetParam().words); in TEST_P()
Dconstant_manager_test.cpp101 IntConstant int_constant(int_type->AsInteger(), {3}); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dconstants_test.cpp49 IntConstant value(&type, GetParam().words); in TEST_P()
56 IntConstant value(&type, GetParam().words); in TEST_P()
Dconstant_manager_test.cpp101 IntConstant int_constant(int_type->AsInteger(), {3}); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dtransformation_replace_constant_with_uniform.cpp61 opt::analysis::IntConstant int_constant(registered_int_type, {index}); in MakeAccessChainInstruction()
217 opt::analysis::IntConstant int_constant(registered_int_type, {index}); in IsApplicable()
Dtransformation_add_function.cpp435 opt::analysis::IntConstant zero(registered_unsigned_int_type->AsInteger(), in TryToAddLoopLimiters()
447 opt::analysis::IntConstant one(registered_unsigned_int_type->AsInteger(), in TryToAddLoopLimiters()
841 opt::analysis::IntConstant bound_minus_one(index_int_type, {bound - 1}); in TryToClampAccessChainIndices()
/third_party/spirv-tools/source/fuzz/
Dtransformation_replace_constant_with_uniform.cpp61 opt::analysis::IntConstant int_constant(registered_int_type, {index}); in MakeAccessChainInstruction()
217 opt::analysis::IntConstant int_constant(registered_int_type, {index}); in IsApplicable()
Dtransformation_add_function.cpp435 opt::analysis::IntConstant zero(registered_unsigned_int_type->AsInteger(), in TryToAddLoopLimiters()
447 opt::analysis::IntConstant one(registered_unsigned_int_type->AsInteger(), in TryToAddLoopLimiters()
841 opt::analysis::IntConstant bound_minus_one(index_int_type, {bound - 1}); in TryToClampAccessChainIndices()
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
Dtransformation_replace_constant_with_uniform.cpp61 opt::analysis::IntConstant int_constant(registered_int_type, {index}); in MakeAccessChainInstruction()
217 opt::analysis::IntConstant int_constant(registered_int_type, {index}); in IsApplicable()
Dtransformation_add_function.cpp435 opt::analysis::IntConstant zero(registered_unsigned_int_type->AsInteger(), in TryToAddLoopLimiters()
447 opt::analysis::IntConstant one(registered_unsigned_int_type->AsInteger(), in TryToAddLoopLimiters()
841 opt::analysis::IntConstant bound_minus_one(index_int_type, {bound - 1}); in TryToClampAccessChainIndices()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dremove_struct_member_reduction_opportunity.cpp194 opt::analysis::IntConstant(int_type, {member - 1}); in AdjustAccessedIndices()
/third_party/skia/third_party/externals/spirv-tools/source/reduce/
Dremove_struct_member_reduction_opportunity.cpp194 opt::analysis::IntConstant(int_type, {member - 1}); in AdjustAccessedIndices()
/third_party/spirv-tools/source/reduce/
Dremove_struct_member_reduction_opportunity.cpp192 opt::analysis::IntConstant(int_type, {member - 1}); in AdjustAccessedIndices()
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/fact_manager/
Dconstant_uniform_facts_test.cpp30 using opt::analysis::IntConstant;
786 opt::analysis::IntConstant constant_one(int_type, {1}); in TEST()
/third_party/spirv-tools/test/fuzz/fact_manager/
Dconstant_uniform_facts_test.cpp30 using opt::analysis::IntConstant;
786 opt::analysis::IntConstant constant_one(int_type, {1}); in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/fact_manager/
Dconstant_uniform_facts_test.cpp30 using opt::analysis::IntConstant;
786 opt::analysis::IntConstant constant_one(int_type, {1}); in TEST()

123