HI,
I have some question about the meaning of the instructions of the
whirl IR, e.g. following is one line taken from the result of
"ir_b2a xxx.I", it simplements "i++"
...
LOC 1 19
I4I4LDID 0 <2,2,i> T<4, .predef_I4, 4>
I4INTCONST 1 (0x1)
I4ADD
I4STID 0 <2,2,i> T<4, .predef_I4, 4>
...
what is the meaning of <2,2,i>, T<4, .predef_I4, 4>, I4I4 , "LOC 1
19"?
Although I can guess something, it is still not very clear to me.
Can somebody tell me the meaning of these fields explicitly and
the rule to diciper them? I cannot find the description of them in the
Whirl specificatoin.
Thank you very much.
BTW: It seems to me that there is a little bug in the LOC(source
position information) related
things in ir_b2a. Sometimes, the LOC appears before the other codes of the
same whirl node, but sometimes it appears behind them. It is somewhat
confusing.
Peng
--
Peng Zhao pengzhao@xxxxxxxxxxxxxx
http://www.cs.ualberta.ca/~pengzhao
TEL (Lab): (780)492-3725 Lab: CSC251
|