<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>So I have debugged into my problem w/ VerifySDNode more  to try to figure out why this is occuring and I ran across another peculiarity.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I have a intrinsic that reads from a special register a vec4 i32 value.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>The intrinsic is specified as:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>def int_AMDIL_get_global_id : GCCBuiltin<"__amdil_get_global_id_int">,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>      Intrinsic<[llvm_v4i32_ty], [], []>;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>My pattern for the intrinsic is:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>def GET_GLOBAL_ID : ILFormat<IL_OP_MOV, (outs GPRV4I32:$dst),<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>      (ins), !strconcat(IL_OP_MOV.Text, " $dst, r1021.xyz0"),<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>      [(set GPRV4I32:$dst, (int_AMDIL_get_global_id))]>;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>There is no problem here and works fine.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>However if I do this:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>def int_AMDIL_get_global_id : GCCBuiltin<"__amdil_get_global_id_int">,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>      Intrinsic<[llvm_v4i32_ty], [], [IntrNoMem]>;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Then my pattern fails and my intrinsic has two extra arguments(Entry Token and some constant value which I am guessing is the intrinsic opcode).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Does anyone have an idea of what would cause IntroNoMem to stop my pattern from being matched? It isn't just this intrinsic, any intrinsic I add it to no longer matches. If I remove the field, it matches correctly.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Micah<o:p></o:p></span></p></div></body></html>