[LLVMdev] Description of SDTypeProfile

Heyu Zhu
Mon, 30 Nov 2009 10:43:06 -0000

Hi,

A piece of code in a target description file:

def SDTIntBinOp : SDTypeProfile<1, 2, [     // add, and, or, xor, udiv, etc.
  SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisInt<0>
]>;

May I understand "SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>,
SDTCisInt<0>" as
below?

(Z = X + Y, for example);

Z:0
X:1
Y:2
X has same type as Z
 Y has same type as Z
Z is a integer

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20091130/d423e4cf/attachment.html>