[LLVMdev] Description of SDTypeProfile

Heyu Zhu zhu.heyu at gmail.com
Mon Nov 30 02:43:06 PST 2009


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>


More information about the llvm-dev mailing list