MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / PrettyPrint

Method PrettyPrint

source/opt/function.cpp:265–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265std::string Function::PrettyPrint(uint32_t options) const {
266 std::ostringstream str;
267 ForEachInst([&str, options](const Instruction* inst) {
268 str << inst->PrettyPrint(options);
269 if (inst->opcode() != spv::Op::OpFunctionEnd) {
270 str << std::endl;
271 }
272 });
273 return str.str();
274}
275
276void Function::ReorderBasicBlocksInStructuredOrder() {
277 std::list<BasicBlock*> order;

Calls 2

opcodeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected