/external/skia/src/sksl/ir/ |
D | SkSLModifiers.cpp | 18 bool Modifiers::checkPermitted(const Context& context, in checkPermitted() 22 static constexpr struct { Modifiers::Flag flag; const char* name; } kModifierFlags[] = { in checkPermitted() 23 { Modifiers::kConst_Flag, "const" }, in checkPermitted() 24 { Modifiers::kIn_Flag, "in" }, in checkPermitted() 25 { Modifiers::kOut_Flag, "out" }, in checkPermitted() 26 { Modifiers::kUniform_Flag, "uniform" }, in checkPermitted() 27 { Modifiers::kFlat_Flag, "flat" }, in checkPermitted() 28 { Modifiers::kNoPerspective_Flag, "noperspective" }, in checkPermitted() 29 { Modifiers::kPure_Flag, "$pure" }, in checkPermitted() 30 { Modifiers::kInline_Flag, "inline" }, in checkPermitted() [all …]
|
D | SkSLVarDeclarations.cpp | 138 const Modifiers& modifiers, in ErrorCheck() 161 if ((modifiers.fFlags & Modifiers::kIn_Flag) && baseType->isMatrix()) { in ErrorCheck() 164 if ((modifiers.fFlags & Modifiers::kIn_Flag) && type->isUnsizedArray()) { in ErrorCheck() 167 if ((modifiers.fFlags & Modifiers::kOut_Flag) && type->isUnsizedArray()) { in ErrorCheck() 170 if ((modifiers.fFlags & Modifiers::kIn_Flag) && (modifiers.fFlags & Modifiers::kUniform_Flag)) { in ErrorCheck() 173 if ((modifiers.fFlags & Modifiers::kReadOnly_Flag) && in ErrorCheck() 174 (modifiers.fFlags & Modifiers::kWriteOnly_Flag)) { in ErrorCheck() 177 if ((modifiers.fFlags & Modifiers::kUniform_Flag) && in ErrorCheck() 178 (modifiers.fFlags & Modifiers::kBuffer_Flag)) { in ErrorCheck() 181 if ((modifiers.fFlags & Modifiers::kWorkgroup_Flag) && in ErrorCheck() [all …]
|
D | SkSLFunctionDeclaration.cpp | 39 const Modifiers& modifiers) { in check_modifiers() 40 const int permitted = Modifiers::kInline_Flag | in check_modifiers() 41 Modifiers::kNoInline_Flag | in check_modifiers() 42 (context.fConfig->fIsBuiltinCode ? (Modifiers::kES3_Flag | in check_modifiers() 43 Modifiers::kPure_Flag | in check_modifiers() 44 Modifiers::kExport_Flag) : 0); in check_modifiers() 46 if ((modifiers.fFlags & Modifiers::kInline_Flag) && in check_modifiers() 47 (modifiers.fFlags & Modifiers::kNoInline_Flag)) { in check_modifiers() 86 int permittedFlags = Modifiers::kConst_Flag | Modifiers::kIn_Flag; in check_parameters() 88 permittedFlags |= Modifiers::kOut_Flag; in check_parameters() [all …]
|
D | SkSLFunctionDeclaration.h | 32 struct Modifiers; 42 const Modifiers* modifiers, 52 const Modifiers* modifiers, 58 const Modifiers& modifiers() const { in modifiers() 62 void setModifiers(const Modifiers* m) { in setModifiers() 141 const Modifiers* fModifiers;
|
D | SkSLVariable.h | 52 Variable(Position pos, Position modifiersPosition, const Modifiers* modifiers, in Variable() 63 Position modifiersPos, const Modifiers& modifiers, const Type* baseType, 68 Position modifiersPos, const Modifiers& modifiers, const Type* baseType, 84 const Modifiers& modifiers, 87 const Modifiers& modifiers() const { in modifiers() 91 void setModifiers(const Modifiers* modifiers) { in setModifiers() 142 const Modifiers* fModifiers;
|
D | SkSLVariable.cpp | 98 const Modifiers& modifiers, in Convert() 106 (modifiers.fFlags & Modifiers::kOut_Flag) && in Convert() 117 if (modifiers.fFlags & Modifiers::kIn_Flag) { in Convert() 119 } else if (modifiers.fFlags & Modifiers::kOut_Flag) { in Convert() 132 const Modifiers& modifiers, in Make() 171 const Modifiers& modifiers, in MakeScratchVariable() 183 SkASSERT(!(modifiers.fFlags & Modifiers::kOut_Flag)); in MakeScratchVariable() 193 context.fModifiersPool->add(Modifiers{}), in MakeScratchVariable()
|
D | SkSLModifiersDeclaration.h | 25 ModifiersDeclaration(const Modifiers* modifiers) in ModifiersDeclaration() 29 const Modifiers& modifiers() const { in modifiers() 42 const Modifiers* fModifiers;
|
D | SkSLType.cpp | 668 if (field.fModifiers.fFlags != Modifiers::kNo_Flag) { in MakeStructType() 761 Modifiers* modifiers, in applyQualifiers() 771 Modifiers* modifiers, in applyPrecisionQualifiers() 774 int precisionQualifiers = modifiers->fFlags & (Modifiers::kHighp_Flag | in applyPrecisionQualifiers() 775 Modifiers::kMediump_Flag | in applyPrecisionQualifiers() 776 Modifiers::kLowp_Flag); in applyPrecisionQualifiers() 795 modifiers->fFlags &= ~(Modifiers::kHighp_Flag | in applyPrecisionQualifiers() 796 Modifiers::kMediump_Flag | in applyPrecisionQualifiers() 797 Modifiers::kLowp_Flag); in applyPrecisionQualifiers() 801 if (precisionQualifiers & Modifiers::kHighp_Flag) { in applyPrecisionQualifiers() [all …]
|
/external/skia/include/sksl/ |
D | DSLModifiers.h | 23 kNo_Modifier = SkSL::Modifiers::kNo_Flag, 24 kConst_Modifier = SkSL::Modifiers::kConst_Flag, 25 kIn_Modifier = SkSL::Modifiers::kIn_Flag, 26 kOut_Modifier = SkSL::Modifiers::kOut_Flag, 27 kInOut_Modifier = SkSL::Modifiers::kIn_Flag | SkSL::Modifiers::kOut_Flag, 28 kUniform_Modifier = SkSL::Modifiers::kUniform_Flag, 29 kFlat_Modifier = SkSL::Modifiers::kFlat_Flag, 30 kNoPerspective_Modifier = SkSL::Modifiers::kNoPerspective_Flag, 55 SkSL::Modifiers fModifiers;
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/ |
D | NativeTypeUDT.cpp | 33 UnmodifiedType(&UnmodifiedType), Modifiers(std::move(Modifier)) {} in NativeTypeUDT() 47 if (Modifiers.hasValue()) in dump() 136 if (!Modifiers) in isConstType() 138 return (Modifiers->Modifiers & ModifierOptions::Const) != in isConstType() 209 if (!Modifiers) in isUnalignedType() 211 return (Modifiers->Modifiers & ModifierOptions::Unaligned) != in isUnalignedType() 216 if (!Modifiers) in isVolatileType() 218 return (Modifiers->Modifiers & ModifierOptions::Volatile) != in isVolatileType()
|
D | NativeTypeEnum.cpp | 124 UnmodifiedType(&UnmodifiedType), Modifiers(std::move(Modifier)) {} in NativeTypeEnum() 141 if (Modifiers.hasValue()) in dump() 169 if (!Modifiers) in findChildren() 355 if (!Modifiers) in isConstType() 357 return ((Modifiers->getModifiers() & ModifierOptions::Const) != in isConstType() 362 if (!Modifiers) in isVolatileType() 364 return ((Modifiers->getModifiers() & ModifierOptions::Volatile) != in isVolatileType() 369 if (!Modifiers) in isUnalignedType() 371 return ((Modifiers->getModifiers() & ModifierOptions::Unaligned) != in isUnalignedType()
|
/external/skia/include/private/ |
D | SkSLModifiers.h | 25 struct Modifiers { struct 62 Modifiers() in Modifiers() argument 66 Modifiers(const Layout& layout, int flags) in Modifiers() argument 143 bool operator==(const Modifiers& other) const { 147 bool operator!=(const Modifiers& other) const { 169 struct hash<SkSL::Modifiers> { argument 170 size_t operator()(const SkSL::Modifiers& key) const {
|
/external/skia/src/sksl/transform/ |
D | SkSLAddConstToVarModifiers.cpp | 20 const Modifiers* Transform::AddConstToVarModifiers(const Context& context, in AddConstToVarModifiers() 25 const Modifiers* modifiers = &var.modifiers(); in AddConstToVarModifiers() 26 if (modifiers->fFlags & Modifiers::kConst_Flag) { in AddConstToVarModifiers() 39 Modifiers constModifiers = *modifiers; in AddConstToVarModifiers() 40 constModifiers.fFlags |= Modifiers::kConst_Flag; in AddConstToVarModifiers()
|
D | SkSLRenamePrivateSymbols.cpp | 49 Modifiers modifiers = mutableDecl->modifiers(); in strip_export_flag() 50 modifiers.fFlags &= ~Modifiers::kExport_Flag; in strip_export_flag() 157 !(funcDecl.modifiers().fFlags & Modifiers::kExport_Flag); in RenamePrivateSymbols() 236 if (funcDecl->modifiers().fFlags & Modifiers::kExport_Flag) { in RenamePrivateSymbols()
|
/external/jdiff/src/jdiff/ |
D | Modifiers.java | 15 class Modifiers implements Comparable { class 33 public Modifiers() { in Modifiers() method in Modifiers 38 Modifiers oModifiers = (Modifiers)o; in compareTo() 61 public String diff(Modifiers newModifiers) { in diff()
|
/external/skia/src/sksl/ |
D | SkSLModifiersPool.h | 23 const Modifiers* add(const Modifiers& modifiers) { in add() 33 std::unordered_set<Modifiers> fModifiersSet;
|
D | SkSLThreadContext.h | 32 struct Modifiers; 115 static const SkSL::Modifiers* Modifiers(const SkSL::Modifiers& modifiers);
|
D | SkSLThreadContext.cpp | 87 const SkSL::Modifiers* ThreadContext::Modifiers(const SkSL::Modifiers& modifiers) { in Modifiers() function in SkSL::ThreadContext
|
/external/skia/tests/ |
D | SkSLMemoryLayoutTest.cpp | 71 fields1.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("a"), in DEF_TEST() 78 fields1.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("b"), in DEF_TEST() 85 fields1.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("c"), in DEF_TEST() 94 fields2.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("a"), in DEF_TEST() 101 fields2.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("b"), in DEF_TEST() 169 fields1.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("a"), in DEF_TEST() 176 fields1.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("b"), in DEF_TEST() 183 fields1.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("c"), in DEF_TEST() 192 fields2.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("a"), in DEF_TEST() 199 fields2.emplace_back(SkSL::Position(), SkSL::Modifiers(), std::string_view("b"), in DEF_TEST() [all …]
|
/external/skia/src/sksl/codegen/ |
D | SkSLWGSLCodeGenerator.cpp | 352 const Modifiers& modifiers = v.variable()->modifiers(); in visitExpression() 354 if (modifiers.fFlags & Modifiers::kIn_Flag) { in visitExpression() 357 if (modifiers.fFlags & Modifiers::kOut_Flag) { in visitExpression() 432 if (v->modifiers().fFlags & Modifiers::kIn_Flag) { in count_pipeline_inputs() 437 if (v->modifiers().fFlags & Modifiers::kIn_Flag) { in count_pipeline_inputs() 447 return var.modifiers().fFlags & Modifiers::kUniform_Flag && !var.type().isOpaque(); in is_in_global_uniforms() 538 void WGSLCodeGenerator::writePipelineIODeclaration(Modifiers modifiers, in writePipelineIODeclaration() 621 if (param->modifiers().fFlags & Modifiers::kOut_Flag) { in writeFunctionDeclaration() 791 bool isConst = varDecl.var()->modifiers().fFlags & Modifiers::kConst_Flag; in writeVarDeclaration() 919 if (v.modifiers().fFlags & Modifiers::kIn_Flag) { in writeFieldAccess() [all …]
|
D | SkSLGLSLCodeGenerator.cpp | 1130 Modifiers modifiers = param->modifiers(); in writeFunctionDeclaration() 1132 modifiers.fFlags &= ~Modifiers::kConst_Flag; in writeFunctionDeclaration() 1192 void GLSLCodeGenerator::writeModifiers(const Modifiers& modifiers, in writeModifiers() 1200 if (modifiers.fFlags & Modifiers::kFlat_Flag) { in writeModifiers() 1203 if (modifiers.fFlags & Modifiers::kNoPerspective_Flag) { in writeModifiers() 1207 if (modifiers.fFlags & Modifiers::kConst_Flag) { in writeModifiers() 1210 if (modifiers.fFlags & Modifiers::kUniform_Flag) { in writeModifiers() 1213 if ((modifiers.fFlags & Modifiers::kIn_Flag) && in writeModifiers() 1214 (modifiers.fFlags & Modifiers::kOut_Flag)) { in writeModifiers() 1216 } else if (modifiers.fFlags & Modifiers::kIn_Flag) { in writeModifiers() [all …]
|
D | SkSLPipelineStageCodeGenerator.cpp | 94 std::string modifierString(const Modifiers& modifiers); 277 const Modifiers& modifiers = var->modifiers(); in writeVariableReference() 396 (decl.modifiers().fFlags & Modifiers::kInline_Flag) ? "inline " : "", in functionDeclaration() 397 (decl.modifiers().fFlags & Modifiers::kNoInline_Flag) ? "noinline " : "", in functionDeclaration() 422 } else if (var.modifiers().fFlags & Modifiers::kUniform_Flag) { in writeGlobalVarDeclaration() 652 std::string PipelineStageCodeGenerator::modifierString(const Modifiers& modifiers) { in modifierString() 654 if (modifiers.fFlags & Modifiers::kConst_Flag) { in modifierString() 658 if ((modifiers.fFlags & Modifiers::kIn_Flag) && (modifiers.fFlags & Modifiers::kOut_Flag)) { in modifierString() 660 } else if (modifiers.fFlags & Modifiers::kIn_Flag) { in modifierString() 662 } else if (modifiers.fFlags & Modifiers::kOut_Flag) { in modifierString()
|
/external/skia/src/sksl/analysis/ |
D | SkSLIsDynamicallyUniformExpression.cpp | 49 if (!var || !(var->modifiers().fFlags & (Modifiers::Flag::kConst_Flag | in IsDynamicallyUniformExpression() 50 Modifiers::Flag::kUniform_Flag))) { in IsDynamicallyUniformExpression() 59 if (!(decl.modifiers().fFlags & Modifiers::Flag::kPure_Flag)) { in IsDynamicallyUniformExpression()
|
D | SkSLProgramUsage.cpp | 134 const Modifiers& modifiers = v.modifiers(); in isDead() 138 (Modifiers::kIn_Flag | Modifiers::kOut_Flag | Modifiers::kUniform_Flag))) { in isDead()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 635 std::vector<std::unique_ptr<Modifier>> Modifiers; in FillFunction() local 636 Modifiers.emplace_back(new LoadModifier(BB, &PT, &R)); in FillFunction() 637 Modifiers.emplace_back(new StoreModifier(BB, &PT, &R)); in FillFunction() 638 auto SM = Modifiers.back().get(); in FillFunction() 639 Modifiers.emplace_back(new ExtractElementModifier(BB, &PT, &R)); in FillFunction() 640 Modifiers.emplace_back(new ShuffModifier(BB, &PT, &R)); in FillFunction() 641 Modifiers.emplace_back(new InsertElementModifier(BB, &PT, &R)); in FillFunction() 642 Modifiers.emplace_back(new BinModifier(BB, &PT, &R)); in FillFunction() 643 Modifiers.emplace_back(new CastModifier(BB, &PT, &R)); in FillFunction() 644 Modifiers.emplace_back(new SelectModifier(BB, &PT, &R)); in FillFunction() [all …]
|