Lines Matching defs:module
43 // A Builder has a 1:1 relationship with a SPIR-V module.
102 module.mapInstruction(fileString);
252 Id getTypeId(Id resultId) const { return module.getTypeId(resultId); }
254 Op getOpCode(Id id) const { return module.getInstruction(id)->getOpCode(); }
263 StorageClass getTypeStorageClass(Id typeId) const { return module.getStorageClass(typeId); }
265 { return (ImageFormat)module.getInstruction(typeId)->getImmediateOperand(6); }
267 Id getIdOperand(Id resultId, int idx) { return module.getInstruction(resultId)->getIdOperand(idx); }
280 { return getTypeClass(typeId) == OpTypeInt && module.getInstruction(typeId)->getImmediateOperand(1) != 0; }
282 { return getTypeClass(typeId) == OpTypeInt && module.getInstruction(typeId)->getImmediateOperand(1) == 0; }
310 { return module.getInstruction(resultId)->getImmediateOperand(0); }
326 return module.getInstruction(scalarTypeId)->getImmediateOperand(0);
345 return (Dim)module.getInstruction(typeId)->getImmediateOperand(1);
351 return isSampledImageType(typeId) ? module.getInstruction(typeId)->getIdOperand(0) : typeId;
356 return module.getInstruction(typeId)->getImmediateOperand(3) != 0;
840 // Add capabilities, extensions based on instructions in the module.
906 Module module;