Displaying 1 result from an estimated 1 matches for "int_vmp_someth".
2009 Mar 04
0
[LLVMdev] Adding Intrinsics for custom processor (frotend, problem)
...ly, so I'd like to avoid it.
What I did was a rather quick-and-dirty hack which I know is
non-standard, but nevertheless quite painless and straightforward :
A. I define my proprietary intrinsics in an include file something like
int __VMPINTR__something(....) ;
B. I define a corresponding int_vmp_something in llvms Intrinsics.td .
C. I changed Function::getIntrinsicID by adding the following :
unsigned vmpi=VMP_intrinsic(Name,Len);
if(vmpi)
return vmpi;
where VMP_intrinsic function code recognizes my proprietary
'__VMPINTR__' style intrinsic names.
I know also that for Chris or other...