/third_party/skia/third_party/externals/tint/src/resolver/ |
D | resolver_constants_test.cc | 38 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 …]
|
D | pipeline_overridable_constant_test.cc | 35 EXPECT_FALSE(sem->ConstantValue()); in ExpectConstantId() 48 EXPECT_TRUE(sem_a->ConstantValue()); in TEST_F()
|
D | resolver_constants.cc | 94 if (!arg || !arg->ConstantValue()) { in EvaluateConstantValue() 97 auto cast = ConstantCast(arg->ConstantValue(), elem_type); in EvaluateConstantValue()
|
D | resolver.cc | 406 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()
|
D | resolver_validation.cc | 1520 if (auto values = arg->ConstantValue()) { in ValidateTextureIntrinsicFunction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/ |
D | GVNExpression.h | 587 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/ |
D | SkSLSPIRVCodeGenerator.h | 46 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;
|
D | SkSLSPIRVCodeGenerator.cpp | 2486 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/ |
D | expression.h | 55 const Constant& ConstantValue() const { return constant_; } in ConstantValue() function
|
D | variable.cc | 81 : Base(declaration, variable->Type(), statement, variable->ConstantValue()), in VariableUser()
|
D | variable.h | 73 const Constant& ConstantValue() const { return constant_value_; } in ConstantValue() function
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | fold_constants.cc | 43 auto value = call->ConstantValue(); in Run()
|
D | robustness.cc | 127 if (auto idx_constant = idx_sem->ConstantValue()) { in Transform()
|
D | zero_init_workgroup_memory.cc | 372 if (auto c = sem->ConstantValue()) { in CalculateWorkgroupSize()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 158 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/ |
D | generator_impl.cc | 574 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/ |
D | generator_impl.cc | 1127 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/ |
D | AArch64ISelLowering.cpp | 7913 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()
|