[LLVMdev] How to add a trivial LLVM intrinsic

Matt Renzelmann mjr at cs.wisc.edu
Wed Jun 24 12:46:42 PDT 2009


Thank you again for your help.  Assuming my experimental "noop" intrinsic is
intended to be target independent, what file should I modify to provide the
code generator with the necessary information?  I've already modified:

./lib/CodeGen/IntrinsicLowering.cpp
./lib/Target/CBackend/CBackend.cpp
./include/llvm/Intrinsics.td

Presumably it's not one of those?  Or, if it is, I imagine I've simply
screwed something up?

Thanks again,
Matt

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Duncan Sands
Sent: Wednesday, June 24, 2009 2:38 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] How to add a trivial LLVM intrinsic

Hi Matt,

> Thank you for your reply--I've now done that.  Unfortunately, there's a
new
> error now:
> 
> ------------
> Cannot yet select: intrinsic %llvm.test_intrinsic
> test.c:25: internal compiler error: Aborted

that's because you didn't tell the code generators what
they should do with your intrinsic.

Ciao,

Duncan.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list