[LLVMdev] %noreg in DBG_VALUE
dblaikie at gmail.com
Thu Sep 12 14:43:30 PDT 2013
On Thu, Sep 12, 2013 at 2:36 PM, Aditya Kumar <hiraditya at codeaurora.org>wrote:
> 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?
Possible, but it simplifies the code to only have one representation for
the schema rather than two.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev