Sebastien DELDON-GNB
2013-Feb-20 13:09 UTC
[LLVMdev] Is it possible to define a LLVM intrinsic that expands in more than one instructions ?
Hi all, Is it possible to define a LLVM intrinsic that expands in more than one instructions ? If yes, how ? Best Regards Seb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130220/e5863d46/attachment.html>
Justin Holewinski
2013-Feb-20 13:46 UTC
[LLVMdev] Is it possible to define a LLVM intrinsic that expands in more than one instructions ?
Sure, a back-end is free to expand an intrinsic into as many instructions as it wishes. You can define this in TableGen with a pattern: def : Pat<(my_intrinsic Reg:$a, Reg:$b), (MyInst1 (MyInst2 Reg:$a), Reg:$b)>; This would expand a call to @llvm.my_intrinsic(a, b) to: r1 = MyInst2 $a r2 = MyInst1 r1, $b On Wed, Feb 20, 2013 at 8:09 AM, Sebastien DELDON-GNB < sebastien.deldon at st.com> wrote:> Hi all,**** > > ** ** > > Is it possible to define a LLVM intrinsic that expands in more than one > instructions ?**** > > If yes, how ?**** > > ** ** > > Best Regards**** > > Seb**** > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- Thanks, Justin Holewinski -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130220/087863fa/attachment.html>
Maybe Matching Threads
- [LLVMdev] RE : Is there any llvm neon intrinsic that maps to vmla.f32 instruction ?
- [LLVMdev] fmac generation for cortex-a9
- [LLVMdev] RE : Is there any llvm neon intrinsic that maps to vmla.f32 instruction ?
- [LLVMdev] fmac generation for cortex-a9
- [LLVMdev] fmac generation for cortex-a9