<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">sure!<div><br></div><div>class TEST_INTINSIC_FM< string asmstr> : Intrinsic</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> <llvm_i32_ty], [llvm_i32_ty, llvm_ptr_ty],</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>[IntrReadWriteArgMem],</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>!strconcat(“llvm.test”, asmstr),”.float”)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>>;</div><div><br></div><div>tks<br><div><div>On Jul 18, 2014, at 4:06 PM, Tom Stellard <<a href="mailto:tom@stellard.net">tom@stellard.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On Fri, Jul 18, 2014 at 03:19:47PM -0400, kewuzhang wrote:<br><blockquote type="cite">en!<br><br>my test is : %r1 = call<float> @test.adddiv( <float> %r0, <float>* %p0).<br>since<span class="Apple-converted-space"> </span><br><br></blockquote><br>Can you show us the code from your .td file where you define the intrinsic?<br><br>-Tom<br><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> but somehow it always fall into INTRINSIC_WO_CHAIN category. <br></blockquote></blockquote>(caught it in lowering..)<br><br>I think it doesn’t have chain in initial DAG.<br><br>unfortunately the intrinsic “test.adddiv” is defined by me for now. not sure how to make it has a chain.<br><br>kevin<br><br><br>On Jul 18, 2014, at 3:06 PM, Krzysztof Parzyszek <<a href="mailto:kparzysz@codeaurora.org">kparzysz@codeaurora.org</a>> wrote:<br><br><blockquote type="cite">On 7/18/2014 2:00 PM, kewuzhang wrote:<br><blockquote type="cite"><br>I am working on an intrinsic function, which will write to a pointer argument.<br>So I am lowering it and think I need to catch it in lowerINTRINSIC_W_CHAIN, but somehow it always fall into INTRINSIC_WO_CHAIN category.<br><br>I put [IntrReadwriteArgMem] into my Intrinsic class definition, it did not help.<br>tried put [SDNPHasChain] into intrinsic class definition, cause errors” Element type mismatch for list”.<br><br>wondering how to flag it to INTRINSIC_W_CHAIN?<br></blockquote><br><br>Does it have chain in the initial DAG?<br><br>-Krzysztof<br><br><br>--<span class="Apple-converted-space"> </span><br>Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation<br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote><br><br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span> <a href="http://llvm.cs.uiuc.edu/">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></blockquote></div></blockquote></div><br></div></body></html>