<div><div dir="auto">We should still parse IR containing that intrinsic and turn into something equivalent. You can see what that looks like by running it through the opt binary without running any passes.</div><div dir="auto"><br></div><div dir="auto">If you're trying to generate IR and you used to generate that intrinsic, you'll need to generate an equivalent shufflevector instruction. You can find code for that in AutoUpgrade.cpp</div><br><div class="gmail_quote"><div>On Tue, Jul 25, 2017 at 1:30 AM Leslie Zhai <<a href="mailto:lesliezhai@llvm.org.cn">lesliezhai@llvm.org.cn</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi LLVM developers,<br>
<br>
After Remove int_x86_sse2_psll_dq_bs and int_x86_sse2_psrl_dq_bs<br>
intrinsics. The builtins aren't used by clang.<br>
<a href="https://reviews.llvm.org/rL229069" rel="noreferrer" target="_blank">https://reviews.llvm.org/rL229069</a> there was no<br>
Intrinsic::x86_sse2_psrl_dq any more, then how to migrate:<br>
<br>
<br>
Function *F =<br>
             Intrinsic::getDeclaration(TheModule,<br>
Intrinsic::x86_sse2_psrl_dq);<br>
         Result =<br>
             Builder.CreateCall(F, ArrayRef<Value *>(&Ops[0], 2),<br>
"palignr");<br>
<br>
<br>
And clang v3.9 migrated X86::BI__builtin_ia32_palignr128 like this<br>
<a href="https://github.com/llvm-mirror/clang/blob/master/lib/CodeGen/CGBuiltin.cpp#L7629" rel="noreferrer" target="_blank">https://github.com/llvm-mirror/clang/blob/master/lib/CodeGen/CGBuiltin.cpp#L7629</a><br>
just ignored the if (shiftVal < 32) condition?<br>
<a href="https://github.com/llvm-mirror/clang/blob/release_33/lib/CodeGen/CGBuiltin.cpp#L2642" rel="noreferrer" target="_blank">https://github.com/llvm-mirror/clang/blob/release_33/lib/CodeGen/CGBuiltin.cpp#L2642</a><br>
<br>
Please give me some hint, thanks a lot!<br>
<br>
--<br>
Regards,<br>
Leslie Zhai - a LLVM developer <a href="https://reviews.llvm.org/p/xiangzhai/" rel="noreferrer" target="_blank">https://reviews.llvm.org/p/xiangzhai/</a><br>
<br>
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature">~Craig</div>