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

Method PrettyPrint

source/opt/basic_block.cpp:234–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234std::string BasicBlock::PrettyPrint(uint32_t options) const {
235 std::ostringstream str;
236 ForEachInst([&str, options](const Instruction* inst) {
237 str << inst->PrettyPrint(options);
238 if (!spvOpcodeIsBlockTerminator(inst->opcode())) {
239 str << std::endl;
240 }
241 });
242 return str.str();
243}
244
245BasicBlock* BasicBlock::SplitBasicBlock(IRContext* context, uint32_t label_id,
246 iterator iter) {

Callers 1

basic_block.cppFile · 0.45

Calls 3

opcodeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected