Lines Matching defs:def

64   explicit Availability(const Record *def);
103 const Record *getDef() const { return def; }
107 const Record *def;
111 Availability::Availability(const Record *def) : def(def) {
112 assert(def->isSubClassOf("Availability") &&
118 def->getDirectSuperClasses(parentClass);
120 PrintFatalError(def->getLoc(),
127 return def->getValueAsString("cppNamespace");
131 return def->getValueAsString("interfaceName");
135 return def->getValueAsString("interfaceDescription");
139 return def->getValueAsString("queryFnRetType");
143 return def->getValueAsString("queryFnName");
147 return def->getValueAsString("mergeAction");
151 return def->getValueAsString("initializer");
155 return def->getValueAsString("instanceType");
159 return def->getValueAsString("instancePreparation");
163 return def->getValueAsString("instance");
166 // Returns the availability spec of the given `def`.
167 std::vector<Availability> getAvailabilities(const Record &def) {
170 if (def.getValue("availability")) {
172 def.getValueAsListOfDefs("availability");
206 for (const Record *def : defs) {
208 def->getDirectSuperClasses(parent);
210 PrintFatalError(def->getLoc(),
216 Availability availability(def);
295 for (const Record *def : defs) {
297 def->getDirectSuperClasses(parent);
299 PrintFatalError(def->getLoc(),
305 Availability avail(def);
458 for (const auto *def : defs)
459 emitEnumDecl(*def, os);
490 for (const auto *def : defs)
491 emitEnumDef(*def, os);
628 os << tabs << " assert(id && \"use before def!\");\n";
655 "\"operand #{1} has a use before def\");\n",
1080 static void emitDeserializationDispatch(const Operator &op, const Record *def,
1085 def->getValueAsString("spirvOpName"));
1141 for (const auto *def : defs) {
1142 if (!def->getValueAsBit("autogenSerialization")) {
1145 Operator op(def);
1146 auto setName = def->getValueAsString("extendedInstSetName");
1156 def->getValueAsInt("extendedInstOpcode"));
1199 for (const auto *def : defs) {
1200 Operator op(def);
1201 emitSerializationFunction(attrClass, def, op, serFn);
1202 emitDeserializationFunction(attrClass, def, op, deserFn);
1203 if (def->getValueAsBit("hasOpcode") ||
1204 def->isSubClassOf("SPIRV_ExtInstOp")) {
1207 if (def->getValueAsBit("hasOpcode")) {
1208 emitDeserializationDispatch(op, def, " ", words, dDesFn);
1268 for (const auto *def : defs) {
1269 EnumAttr enumAttr(*def);
1410 for (const auto *def : defs) {
1411 Operator op(def);
1412 if (def->getValueAsBit("autogenAvailability"))
1445 const Record &def = enumerant.getDef();
1446 if (!def.getValue("implies"))
1450 def.getValueAsListOfDefs("implies");