Home
last modified time | relevance | path

Searched refs:Modifiers (Results 1 – 25 of 100) sorted by relevance

1234

/external/skqp/src/sksl/ast/
DSkSLASTPrecision.h21 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;
DSkSLASTModifiersDeclaration.h22 ASTModifiersDeclaration(Modifiers modifiers) in ASTModifiersDeclaration()
30 Modifiers fModifiers;
DSkSLASTParameter.h23 ASTParameter(int offset, Modifiers modifiers, std::unique_ptr<ASTType> type, in ASTParameter()
39 const Modifiers fModifiers;
/external/skia/src/sksl/ast/
DSkSLASTPrecision.h21 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;
DSkSLASTModifiersDeclaration.h22 ASTModifiersDeclaration(Modifiers modifiers) in ASTModifiersDeclaration()
30 Modifiers fModifiers;
/external/jdiff/src/jdiff/
DModifiers.java15 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/
DSkSLModifiers.h18 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 {
DSkSLVariable.h32 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;
DSkSLModifiersDeclaration.h22 ModifiersDeclaration(Modifiers modifiers) in ModifiersDeclaration()
30 Modifiers fModifiers;
/external/skqp/src/sksl/ir/
DSkSLModifiers.h18 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 {
DSkSLVariable.h32 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;
DSkSLModifiersDeclaration.h22 ModifiersDeclaration(Modifiers modifiers) in ModifiersDeclaration()
30 Modifiers fModifiers;
/external/skia/src/sksl/
DSkSLGLSLCodeGenerator.cpp912 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 …]
DSkSLParser.h47 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);
DSkSLMetalCodeGenerator.cpp161 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 …]
DSkSLParser.cpp350 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 …]
DSkSLCPPCodeGenerator.cpp16 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/
DSkSLGLSLCodeGenerator.cpp902 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 …]
DSkSLParser.h47 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);
DSkSLMetalCodeGenerator.cpp161 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 …]
DSkSLParser.cpp350 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 …]
DSkSLCPPCodeGenerator.cpp16 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/
DSkSLMemoryLayoutTest.cpp57 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/
DSkSLMemoryLayoutTest.cpp57 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/
Dllvm-stress.cpp635 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 …]

1234