Home | History | Annotate | Download | only in api

Lines Matching refs:SPEC

17 /* This program processes Renderscript function definitions described in spec files.
18 * For each spec file provided on the command line, it generates a corresponding
30 * - SpecFile: Represents on spec file.
32 * spec file contains many entries for clamp, we'll only have one clamp instance.
35 * spec file. Strings that are parts of a Specification can include placeholders,
93 string specType; // The type found in the spec, e.g. "f16"
105 string specName; // e.g. x, as found in the spec file
125 /* Parse the parameter definition found in the spec file. It will generate a name if none
133 // An entire spec file and the methods to process it.
153 /* Represents a function, like "clamp". Even though the spec file contains many entries for clamp,
184 void addSpecification(Specification* spec) { mSpecifications.push_back(spec); }
198 * Specification objects and entries in the spec file. Some of the strings that are parts of a
375 const char* specType; // Name found in the .spec file
562 printf("No spec file specified\n");
706 Specification* spec = Specification::scanSpecification(specFile);
707 if (spec == NULL) {
710 getFunction(spec->getCleanName())->addSpecification(spec);
711 int specMin = spec->getMinVersion();
712 int specMax = spec->getMaxVersion();
731 const char SPEC[] = ".spec";
732 const int SPEC_SIZE = sizeof(SPEC) - 1;
734 if (start >= 0 && headerFileName.compare(start, SPEC_SIZE, SPEC) == 0) {
900 Specification* spec = new Specification();
901 spec->mTest = "scalar"; // default
914 spec->mComment.push_back(s);
924 spec->mInline.push_back(s);
937 spec->mName = s;
946 spec->mCleanName = s;
952 spec->mParam.push_back(s);
958 spec->mReturn = s;
965 spec->mTest = s;
967 spec->mTest = "limited";
973 spec->mPrecisionLimit = s.substr(8, pParen - 8);
985 return spec;
987 delete spec;
1004 sscanf(s.c_str(), "%i %i", &spec->mMinVersion, &spec->mMaxVersion);
1026 spec->mReplaceables.push_back(t);
1037 spec->mReplaceables.push_back(t);
1050 delete spec;
1105 Permutation::Permutation(Function* func, Specification* spec, int i1, int i2, int i3, int i4)
1107 mSpecification(spec),
1114 mName = spec->getName(i1, i2, i3, i4);
1115 mCleanName = spec->getCleanName();
1116 mTest = spec->getTest();
1117 mPrecisionLimit = spec->getPrecisionLimit();
1118 spec->getInlines(i1, i2, i3, i4, &mInline);
1119 spec->getComments(i1, i2, i3, i4, &mComment);
1122 spec->getParams(i1, i2, i3, i4, &paramDefinitions);
1136 const string s = spec->getReturn(i1, i2, i3, i4);