GPUOpen-Tools / GPU-Reshape

GPU Reshape (GRS) is an API agnostic instrumentation framework, with instruction level validation.
Other
359 stars 10 forks source link

Add missing switches for LLVM function record 46. #64

Closed aurolou closed 1 month ago

miguel-petersen commented 1 month ago

Hi Lou. Could we move the InstCmpXchg to another branch like so?

case LLVMFunctionRecord::InstCmpXchg: {
    writer.RemapRelativeValue(anchor);
    writer.RemapRelative(anchor);
    writer.RemapRelative(anchor);
    break;
}

In this case the instruction takes three values, the ptr, comparison value, and new value. So we need to remap them all.

Thanks!