[LLVMdev] %noreg in DBG_VALUE

Aditya Kumar hiraditya at codeaurora.org
Thu Sep 12 14:36:54 PDT 2013


I have a question regarding the DBG_VALUE instruction.

IIUC the DBG_VALUE appears in two different forms:

1. DBG_VALUE( %Reg, %Reg, metadata)
2. DBG_VALUE(%Reg, offset, metadata)
 
In the first version, the second operand is always a %noreg in the form of:
DBG_VALUE(%Reg, %noreg, metadata).

Is it possible to have a different version of DBG_VALUE that only has 2
operands which will have only %Reg and metadata, because the second operand
appears to be redundant?

Thanks,
-Aditya





More information about the llvm-dev mailing list