Lines Matching defs:out

70 static void Kill(std::ostream& out, const char* message)
72 out << std::endl << "Disassembly failed: " << message << std::endl;
89 SpirvStream(std::ostream& out, const std::vector<unsigned int>& stream) : out(out), stream(stream), word(0), nextNestedControl(0) { }
114 std::ostream& out; // where to write the disassembly
137 Kill(out, "stream is too short");
141 out << "Bad magic number";
146 out << "// Module Version " << std::hex << stream[word++] << std::endl;
149 out << "// Generated by (magic number): " << std::hex << stream[word++] << std::dec << std::endl;
155 out << "// Id's are bound by " << bound << std::endl;
156 out << std::endl;
161 Kill(out, "bad schema, must be 0");
181 Kill(out, "stream instruction terminated too early");
210 out << " ERROR, incorrect number of operands consumed. At " << word << " instead of " << nextInst << " instruction start was " << instructionStart;
213 out << std::endl;
220 out << " ";
229 Kill(out, "Bad <id>");
242 out << std::setw(width) << std::right << idStream.str();
244 out << ":";
246 out << " ";
257 out << std::setw(width) << std::right << idStream.str() << " ";
263 Kill(out, "Bad <id>");
265 out << id;
267 out << "(" << idDescriptor[id] << ")";
273 out << "None";
277 out << OperandClassParams[operandClass].getName(m) << " ";
285 out << stream[word++];
287 out << " ";
296 out << " ";
328 out << " \"";
332 out << decoderes.second;
333 out << "\"";
344 out << (OpcodeString(opCode) + 2); // leave out the "Op"
418 // Handle images specially, so can put out helpful strings.
420 out << " ";
422 out << " " << DimensionString((Dim)stream[word++]);
423 out << (stream[word++] != 0 ? " depth" : "");
424 out << (stream[word++] != 0 ? " array" : "");
425 out << (stream[word++] != 0 ? " multi-sampled" : "");
427 case 0: out << " runtime"; break;
428 case 1: out << " sampled"; break;
429 case 2: out << " nonsampled"; break;
431 out << " format:" << ImageFormatString((ImageFormat)stream[word++]);
434 out << " " << AccessQualifierString(stream[word++]);
441 out << " ";
465 out << BuiltInString(stream[word++]);
473 out << std::endl;
477 out << " Type ";
479 out << ", member ";
486 out << std::endl;
490 out << " case ";
492 out << ": ";
527 out << "(" << GlslStd450DebugNames[entrypoint] << ")";
530 out << "(" << GLSLextAMDGetDebugNames(name, entrypoint) << ")";
533 out << "(" << GLSLextNVGetDebugNames(name, entrypoint) << ")";
535 out << "(DebugPrintf)";
537 out << "(" << NonSemanticShaderDebugInfo100GetDebugNames(entrypoint) << ")";
558 out << " ";
568 out << OperandClassParams[operandClass].getName(stream[word++]);
814 void Disassemble(std::ostream& out, const std::vector<unsigned int>& stream)
816 SpirvStream SpirvStream(out, stream);