| 263 | } |
| 264 | |
| 265 | std::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 | |
| 276 | void Function::ReorderBasicBlocksInStructuredOrder() { |
| 277 | std::list<BasicBlock*> order; |
no test coverage detected