Home
last modified time | relevance | path

Searched refs:ConstantValue (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver_constants_test.cc38 EXPECT_EQ(sem->ConstantValue().Type(), sem->Type()); in TEST_F()
39 EXPECT_EQ(sem->ConstantValue().ElementType(), sem->Type()); in TEST_F()
40 ASSERT_EQ(sem->ConstantValue().Elements().size(), 1u); in TEST_F()
41 EXPECT_EQ(sem->ConstantValue().Elements()[0].i32, 99); in TEST_F()
53 EXPECT_EQ(sem->ConstantValue().Type(), sem->Type()); in TEST_F()
54 EXPECT_EQ(sem->ConstantValue().ElementType(), sem->Type()); in TEST_F()
55 ASSERT_EQ(sem->ConstantValue().Elements().size(), 1u); in TEST_F()
56 EXPECT_EQ(sem->ConstantValue().Elements()[0].u32, 99u); in TEST_F()
68 EXPECT_EQ(sem->ConstantValue().Type(), sem->Type()); in TEST_F()
69 EXPECT_EQ(sem->ConstantValue().ElementType(), sem->Type()); in TEST_F()
[all …]
Dpipeline_overridable_constant_test.cc35 EXPECT_FALSE(sem->ConstantValue()); in ExpectConstantId()
48 EXPECT_TRUE(sem_a->ConstantValue()); in TEST_F()
Dresolver_constants.cc94 if (!arg || !arg->ConstantValue()) { in EvaluateConstantValue()
97 auto cast = ConstantCast(arg->ConstantValue(), elem_type); in EvaluateConstantValue()
Dresolver.cc406 has_const_val ? rhs->ConstantValue() : sem::Constant{}, in Variable()
424 (rhs && var->is_const) ? rhs->ConstantValue() : sem::Constant{}); in Variable()
774 value = Sem(decl->constructor)->ConstantValue(); in WorkgroupSize()
781 value = Sem(expr)->ConstantValue(); in WorkgroupSize()
2120 auto count_val = count_sem->ConstantValue(); in Array()
Dresolver_validation.cc1520 if (auto values = arg->ConstantValue()) { in ValidateTextureIntrinsicFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DGVNExpression.h587 Constant *ConstantValue = nullptr;
592 : Expression(ET_Constant), ConstantValue(constantValue) {} in ConstantExpression()
600 Constant *getConstantValue() const { return ConstantValue; } in getConstantValue()
601 void setConstantValue(Constant *V) { ConstantValue = V; } in setConstantValue()
605 return ConstantValue == OC.ConstantValue; in equals()
610 ConstantValue->getType(), ConstantValue); in getHashValue()
618 OS << " constant = " << *ConstantValue; in printInternal()
/third_party/flutter/skia/src/sksl/
DSkSLSPIRVCodeGenerator.h46 union ConstantValue { union
47 ConstantValue(int64_t i) in ConstantValue() function
50 ConstantValue(double d) in ConstantValue() function
53 bool operator==(const ConstantValue& other) const {
74 struct hash<std::pair<ConstantValue, ConstantType>> {
75 size_t operator()(const std::pair<ConstantValue, ConstantType>& key) const {
389 std::unordered_map<std::pair<ConstantValue, ConstantType>, SpvId> fNumberConstants;
DSkSLSPIRVCodeGenerator.cpp2486 std::pair<ConstantValue, ConstantType> key(i.fValue, type); in writeIntLiteral()
2507 std::pair<ConstantValue, ConstantType> key(f.fValue, type); in writeFloatLiteral()
2521 std::pair<ConstantValue, ConstantType> key(f.fValue, ConstantType::kDouble); in writeFloatLiteral()
/third_party/skia/third_party/externals/tint/src/sem/
Dexpression.h55 const Constant& ConstantValue() const { return constant_; } in ConstantValue() function
Dvariable.cc81 : Base(declaration, variable->Type(), statement, variable->ConstantValue()), in VariableUser()
Dvariable.h73 const Constant& ConstantValue() const { return constant_value_; } in ConstantValue() function
/third_party/skia/third_party/externals/tint/src/transform/
Dfold_constants.cc43 auto value = call->ConstantValue(); in Run()
Drobustness.cc127 if (auto idx_constant = idx_sem->ConstantValue()) { in Transform()
Dzero_init_workgroup_memory.cc372 if (auto c = sem->ConstantValue()) { in CalculateWorkgroupSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstructions.cpp158 Value *ConstantValue = getIncomingValue(0); in hasConstantValue() local
160 if (getIncomingValue(i) != ConstantValue && getIncomingValue(i) != this) { in hasConstantValue()
161 if (ConstantValue != this) in hasConstantValue()
164 ConstantValue = getIncomingValue(i); in hasConstantValue()
166 if (ConstantValue == this) in hasConstantValue()
168 return ConstantValue; in hasConstantValue()
177 Value *ConstantValue = nullptr; in hasConstantOrUndefValue() local
181 if (ConstantValue && ConstantValue != Incoming) in hasConstantOrUndefValue()
183 ConstantValue = Incoming; in hasConstantOrUndefValue()
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl.cc574 if (!rhs_col_idx_sem->ConstantValue().IsValid() || in EmitAssign()
575 !rhs_row_idx_sem->ConstantValue().IsValid()) { in EmitAssign()
585 if (!lhs_index_sem->ConstantValue().IsValid()) { in EmitAssign()
593 if (!rhs_sem->ConstantValue().IsValid()) { in EmitAssign()
735 if (auto val = builder_.Sem().Get(expr->rhs)->ConstantValue()) { in EmitBinary()
1014 if (auto val = offset_arg->ConstantValue()) { in EmitUniformBufferAccess()
2195 switch (call->Arguments()[0]->ConstantValue().Elements()[0].i32) { in EmitTextureCall()
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl.cc1127 auto c = component->ConstantValue().Elements()[0].i32; in EmitTextureCall()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp7913 SDValue ConstantValue; in LowerBUILD_VECTOR() local
7927 if (!ConstantValue.getNode()) in LowerBUILD_VECTOR()
7928 ConstantValue = V; in LowerBUILD_VECTOR()
7929 else if (ConstantValue != V) in LowerBUILD_VECTOR()
8068 SDValue Vec = DAG.getSplatBuildVector(VT, dl, ConstantValue), in LowerBUILD_VECTOR()
8072 Val = DAG.getNode(AArch64ISD::DUP, dl, VT, ConstantValue); in LowerBUILD_VECTOR()