mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Ignore source mapping for LLVM debug, lifetime, invariant instructions
This commit is contained in:
@@ -113,10 +113,10 @@ bool IsLLVMIntrinsicCall(const Instruction &inst)
|
||||
|
||||
bool ShouldIgnoreSourceMapping(const Instruction &inst)
|
||||
{
|
||||
// Do not set source mapping for handle creation instructions
|
||||
if(inst.op == Operation::Call)
|
||||
{
|
||||
rdcstr funcCallName = inst.getFuncCall()->name;
|
||||
// Do not set source mapping for handle creation instructions
|
||||
if(funcCallName.beginsWith("dx.op."))
|
||||
{
|
||||
DXOp dxOpCode = DXOp::NumOpCodes;
|
||||
@@ -131,6 +131,24 @@ bool ShouldIgnoreSourceMapping(const Instruction &inst)
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
else if(funcCallName.beginsWith("llvm."))
|
||||
{
|
||||
// Do not set source mapping for LLVM debug instructions
|
||||
if(funcCallName.beginsWith("llvm.dbg."))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// Do not set source mapping for LLVM lifetime instructions
|
||||
else if(funcCallName.beginsWith("llvm.lifetime."))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// Do not set source mapping for LLVM invariant instructions
|
||||
else if(funcCallName.beginsWith("llvm.invariant"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user