/external/skqp/src/sksl/ast/ |
D | SkSLASTPrecision.h | 21 ASTPrecision(int offset, Modifiers::Flag precision) in ASTPrecision() 27 case Modifiers::kLowp_Flag: return String("precision lowp float;"); in description() 28 case Modifiers::kMediump_Flag: return String("precision mediump float;"); in description() 29 case Modifiers::kHighp_Flag: return String("precision highp float;"); in description() 38 const Modifiers::Flag fPrecision;
|
D | SkSLASTModifiersDeclaration.h | 22 ASTModifiersDeclaration(Modifiers modifiers) in ASTModifiersDeclaration() 30 Modifiers fModifiers;
|
D | SkSLASTParameter.h | 23 ASTParameter(int offset, Modifiers modifiers, std::unique_ptr<ASTType> type, in ASTParameter() 39 const Modifiers fModifiers;
|
/external/skia/src/sksl/ast/ |
D | SkSLASTPrecision.h | 21 ASTPrecision(int offset, Modifiers::Flag precision) in ASTPrecision() 27 case Modifiers::kLowp_Flag: return String("precision lowp float;"); in description() 28 case Modifiers::kMediump_Flag: return String("precision mediump float;"); in description() 29 case Modifiers::kHighp_Flag: return String("precision highp float;"); in description() 38 const Modifiers::Flag fPrecision;
|
D | SkSLASTModifiersDeclaration.h | 22 ASTModifiersDeclaration(Modifiers modifiers) in ASTModifiersDeclaration() 30 Modifiers fModifiers;
|
/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/ir/ |
D | SkSLModifiers.h | 18 struct Modifiers { struct 39 Modifiers() in Modifiers() function 43 Modifiers(Layout& layout, int flags) in Modifiers() argument 103 bool operator==(const Modifiers& other) const { 107 bool operator!=(const Modifiers& other) const {
|
D | SkSLVariable.h | 32 Variable(int offset, Modifiers modifiers, StringFragment name, const Type& type, 55 return !fWriteCount || (!fReadCount && !(fModifiers.fFlags & Modifiers::kOut_Flag)); in dead() 58 mutable Modifiers fModifiers;
|
D | SkSLModifiersDeclaration.h | 22 ModifiersDeclaration(Modifiers modifiers) in ModifiersDeclaration() 30 Modifiers fModifiers;
|
/external/skqp/src/sksl/ir/ |
D | SkSLModifiers.h | 18 struct Modifiers { struct 39 Modifiers() in Modifiers() argument 43 Modifiers(Layout& layout, int flags) in Modifiers() argument 103 bool operator==(const Modifiers& other) const { 107 bool operator!=(const Modifiers& other) const {
|
D | SkSLVariable.h | 32 Variable(int offset, Modifiers modifiers, StringFragment name, const Type& type, 47 return !fWriteCount || (!fReadCount && !(fModifiers.fFlags & Modifiers::kOut_Flag)); in dead() 50 mutable Modifiers fModifiers;
|
D | SkSLModifiersDeclaration.h | 22 ModifiersDeclaration(Modifiers modifiers) in ModifiersDeclaration() 30 Modifiers fModifiers;
|
/external/skia/src/sksl/ |
D | SkSLGLSLCodeGenerator.cpp | 912 void GLSLCodeGenerator::writeModifiers(const Modifiers& modifiers, in writeModifiers() 914 if (modifiers.fFlags & Modifiers::kFlat_Flag) { in writeModifiers() 917 if (modifiers.fFlags & Modifiers::kNoPerspective_Flag) { in writeModifiers() 924 if (modifiers.fFlags & Modifiers::kReadOnly_Flag) { in writeModifiers() 927 if (modifiers.fFlags & Modifiers::kWriteOnly_Flag) { in writeModifiers() 930 if (modifiers.fFlags & Modifiers::kCoherent_Flag) { in writeModifiers() 933 if (modifiers.fFlags & Modifiers::kVolatile_Flag) { in writeModifiers() 936 if (modifiers.fFlags & Modifiers::kRestrict_Flag) { in writeModifiers() 939 if ((modifiers.fFlags & Modifiers::kIn_Flag) && in writeModifiers() 940 (modifiers.fFlags & Modifiers::kOut_Flag)) { in writeModifiers() [all …]
|
D | SkSLParser.h | 47 struct Modifiers; 135 std::unique_ptr<ASTVarDeclarations> structVarDeclaration(Modifiers modifiers); 137 std::unique_ptr<ASTVarDeclarations> varDeclarationEnd(Modifiers modifiers, 153 Modifiers modifiers(); 155 Modifiers modifiersWithDefaults(int defaultFlags); 161 std::unique_ptr<ASTDeclaration> interfaceBlock(Modifiers mods);
|
D | SkSLMetalCodeGenerator.cpp | 161 if (c.fFunction.fParameters[i]->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeFunctionCall() 207 if (ref.fVariable.fModifiers.fFlags & Modifiers::kIn_Flag) { in writeVariableReference() 209 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kOut_Flag) { in writeVariableReference() 211 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 303 (((VariableReference&) *b.fLeft).fVariable.fModifiers.fFlags & Modifiers::kOut_Flag)) { in writeBinaryExpression() 440 if (param->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeFunction() 494 void MetalCodeGenerator::writeModifiers(const Modifiers& modifiers, in writeModifiers() 496 if (modifiers.fFlags & Modifiers::kOut_Flag) { in writeModifiers() 499 if (modifiers.fFlags & Modifiers::kConst_Flag) { in writeModifiers() 545 if (var.fVar->fModifiers.fFlags & (Modifiers::kIn_Flag | Modifiers::kOut_Flag | in writeVarDeclarations() [all …]
|
D | SkSLParser.cpp | 350 Modifiers modifiers = this->modifiers(); in declaration() 409 Modifiers modifiers = this->modifiers(); in varDeclarations() 467 std::unique_ptr<ASTVarDeclarations> Parser::structVarDeclaration(Modifiers modifiers) { in structVarDeclaration() 493 std::unique_ptr<ASTVarDeclarations> Parser::varDeclarationEnd(Modifiers mods, in varDeclarationEnd() 559 Modifiers modifiers = this->modifiersWithDefaults(0); in parameter() 831 Modifiers Parser::modifiers() { in modifiers() 839 flags |= Modifiers::kUniform_Flag; in modifiers() 843 flags |= Modifiers::kConst_Flag; in modifiers() 847 flags |= Modifiers::kIn_Flag; in modifiers() 851 flags |= Modifiers::kOut_Flag; in modifiers() [all …]
|
D | SkSLCPPCodeGenerator.cpp | 16 return (var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in needs_uniform_var() 138 return !(var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in is_private() 139 !(var.fModifiers.fFlags & Modifiers::kIn_Flag) && in is_private() 253 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 382 if (var.fModifiers.fFlags & (Modifiers::kIn_Flag | Modifiers::kUniform_Flag) || in writeProgramElement() 395 if (var.fModifiers.fFlags & Modifiers::kHighp_Flag) { in addUniform() 397 } else if (var.fModifiers.fFlags & Modifiers::kMediump_Flag) { in addUniform() 399 } else if (var.fModifiers.fFlags & Modifiers::kLowp_Flag) { in addUniform() 568 if (u->fModifiers.fFlags & Modifiers::kIn_Flag) { in writeSetData() 709 (param->fModifiers.fFlags & Modifiers::kUniform_Flag)) { in writeGetKey() [all …]
|
/external/skqp/src/sksl/ |
D | SkSLGLSLCodeGenerator.cpp | 902 void GLSLCodeGenerator::writeModifiers(const Modifiers& modifiers, in writeModifiers() 904 if (modifiers.fFlags & Modifiers::kFlat_Flag) { in writeModifiers() 907 if (modifiers.fFlags & Modifiers::kNoPerspective_Flag) { in writeModifiers() 914 if (modifiers.fFlags & Modifiers::kReadOnly_Flag) { in writeModifiers() 917 if (modifiers.fFlags & Modifiers::kWriteOnly_Flag) { in writeModifiers() 920 if (modifiers.fFlags & Modifiers::kCoherent_Flag) { in writeModifiers() 923 if (modifiers.fFlags & Modifiers::kVolatile_Flag) { in writeModifiers() 926 if (modifiers.fFlags & Modifiers::kRestrict_Flag) { in writeModifiers() 929 if ((modifiers.fFlags & Modifiers::kIn_Flag) && in writeModifiers() 930 (modifiers.fFlags & Modifiers::kOut_Flag)) { in writeModifiers() [all …]
|
D | SkSLParser.h | 47 struct Modifiers; 135 std::unique_ptr<ASTVarDeclarations> structVarDeclaration(Modifiers modifiers); 137 std::unique_ptr<ASTVarDeclarations> varDeclarationEnd(Modifiers modifiers, 153 Modifiers modifiers(); 155 Modifiers modifiersWithDefaults(int defaultFlags); 161 std::unique_ptr<ASTDeclaration> interfaceBlock(Modifiers mods);
|
D | SkSLMetalCodeGenerator.cpp | 161 if (c.fFunction.fParameters[i]->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeFunctionCall() 207 if (ref.fVariable.fModifiers.fFlags & Modifiers::kIn_Flag) { in writeVariableReference() 209 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kOut_Flag) { in writeVariableReference() 211 } else if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 303 (((VariableReference&) *b.fLeft).fVariable.fModifiers.fFlags & Modifiers::kOut_Flag)) { in writeBinaryExpression() 440 if (param->fModifiers.fFlags & Modifiers::kOut_Flag) { in writeFunction() 494 void MetalCodeGenerator::writeModifiers(const Modifiers& modifiers, in writeModifiers() 496 if (modifiers.fFlags & Modifiers::kOut_Flag) { in writeModifiers() 499 if (modifiers.fFlags & Modifiers::kConst_Flag) { in writeModifiers() 545 if (var.fVar->fModifiers.fFlags & (Modifiers::kIn_Flag | Modifiers::kOut_Flag | in writeVarDeclarations() [all …]
|
D | SkSLParser.cpp | 350 Modifiers modifiers = this->modifiers(); in declaration() 409 Modifiers modifiers = this->modifiers(); in varDeclarations() 467 std::unique_ptr<ASTVarDeclarations> Parser::structVarDeclaration(Modifiers modifiers) { in structVarDeclaration() 493 std::unique_ptr<ASTVarDeclarations> Parser::varDeclarationEnd(Modifiers mods, in varDeclarationEnd() 559 Modifiers modifiers = this->modifiersWithDefaults(0); in parameter() 831 Modifiers Parser::modifiers() { in modifiers() 839 flags |= Modifiers::kUniform_Flag; in modifiers() 843 flags |= Modifiers::kConst_Flag; in modifiers() 847 flags |= Modifiers::kIn_Flag; in modifiers() 851 flags |= Modifiers::kOut_Flag; in modifiers() [all …]
|
D | SkSLCPPCodeGenerator.cpp | 16 return (var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in needs_uniform_var() 138 return !(var.fModifiers.fFlags & Modifiers::kUniform_Flag) && in is_private() 139 !(var.fModifiers.fFlags & Modifiers::kIn_Flag) && in is_private() 253 if (ref.fVariable.fModifiers.fFlags & Modifiers::kUniform_Flag) { in writeVariableReference() 382 if (var.fModifiers.fFlags & (Modifiers::kIn_Flag | Modifiers::kUniform_Flag) || in writeProgramElement() 395 if (var.fModifiers.fFlags & Modifiers::kHighp_Flag) { in addUniform() 397 } else if (var.fModifiers.fFlags & Modifiers::kMediump_Flag) { in addUniform() 399 } else if (var.fModifiers.fFlags & Modifiers::kLowp_Flag) { in addUniform() 568 if (u->fModifiers.fFlags & Modifiers::kIn_Flag) { in writeSetData() 709 (param->fModifiers.fFlags & Modifiers::kUniform_Flag)) { in writeGetKey() [all …]
|
/external/skqp/tests/ |
D | SkSLMemoryLayoutTest.cpp | 57 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("a"), context.fFloat3_Type.get()); in DEF_TEST() 62 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fFloat_Type.get()); in DEF_TEST() 67 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("c"), context.fBool_Type.get()); in DEF_TEST() 74 fields2.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("a"), context.fInt_Type.get()); in DEF_TEST() 79 fields2.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fFloat3_Type.get()); in DEF_TEST() 138 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("a"), context.fFloat3_Type.get()); in DEF_TEST() 143 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fFloat_Type.get()); in DEF_TEST() 148 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("c"), context.fBool_Type.get()); in DEF_TEST() 155 fields2.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("a"), context.fInt_Type.get()); in DEF_TEST() 160 fields2.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fFloat3_Type.get()); in DEF_TEST()
|
/external/skia/tests/ |
D | SkSLMemoryLayoutTest.cpp | 57 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("a"), context.fFloat3_Type.get()); in DEF_TEST() 62 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fFloat_Type.get()); in DEF_TEST() 67 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("c"), context.fBool_Type.get()); in DEF_TEST() 74 fields2.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("a"), context.fInt_Type.get()); in DEF_TEST() 79 fields2.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fFloat3_Type.get()); in DEF_TEST() 138 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("a"), context.fFloat3_Type.get()); in DEF_TEST() 143 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fFloat_Type.get()); in DEF_TEST() 148 fields1.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("c"), context.fBool_Type.get()); in DEF_TEST() 155 fields2.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("a"), context.fInt_Type.get()); in DEF_TEST() 160 fields2.emplace_back(SkSL::Modifiers(), SkSL::StringFragment("b"), context.fFloat3_Type.get()); in DEF_TEST()
|
/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 …]
|