diff options
Diffstat (limited to 'src/gpu-compute/gpu_static_inst.cc')
-rw-r--r-- | src/gpu-compute/gpu_static_inst.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpu-compute/gpu_static_inst.cc b/src/gpu-compute/gpu_static_inst.cc index bcb8a5f3d..83b429e62 100644 --- a/src/gpu-compute/gpu_static_inst.cc +++ b/src/gpu-compute/gpu_static_inst.cc @@ -40,3 +40,13 @@ GPUStaticInst::GPUStaticInst(const std::string &opcode) _instNum(0), _scalarOp(false) { } +const std::string& +GPUStaticInst::disassemble() +{ + if (disassembly.empty()) { + generateDisassembly(); + assert(!disassembly.empty()); + } + + return disassembly; +} |