Commit 875d98b5 by Ben Clayton

SpirvShader: Implement OpenCLDebugInfo100DebugInlinedAt

The inlined-at isn't currently used, but this unblocks tests that emit this instruction. Bug: b/145351270 Change-Id: I787e0de3d7ede8225ad3a86544f867559ea9c387 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/42095 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 18daa81e
...@@ -906,6 +906,16 @@ void SpirvShader::Impl::Debugger::process(const SpirvShader *shader, const InsnI ...@@ -906,6 +906,16 @@ void SpirvShader::Impl::Debugger::process(const SpirvShader *shader, const InsnI
break; break;
case OpenCLDebugInfo100DebugNoScope: case OpenCLDebugInfo100DebugNoScope:
break; break;
case OpenCLDebugInfo100DebugInlinedAt:
defineOrEmit(insn, pass, [&](debug::InlinedAt *ia) {
ia->line = insn.word(5);
ia->scope = get(debug::LexicalBlock::ID(insn.word(6)));
if(insn.wordCount() > 7)
{
ia->inlined = get(debug::InlinedAt::ID(insn.word(7)));
}
});
break;
case OpenCLDebugInfo100DebugLocalVariable: case OpenCLDebugInfo100DebugLocalVariable:
defineOrEmit(insn, pass, [&](debug::LocalVariable *var) { defineOrEmit(insn, pass, [&](debug::LocalVariable *var) {
var->name = shader->getString(insn.word(5)); var->name = shader->getString(insn.word(5));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment