Displaying 2 results from an estimated 2 matches for "int_my_foo".
2009 Mar 04
0
[LLVMdev] Adding Intrinsics for custom processor (frotend, problem)
...e from svn
>
> 6) Edit include/llvm/Intrinsics.td
>
> You can either add your intrinsics directly, or just add an
> include to your own file. Here I'm adding them directly.
>
> a) Add a definition of your intrinsic. In our case, it looks like
>
> def int_my_foo : Intrinsic<[llvm_ptr_ty],
> [llvm_ptrptr_ty, llvm_ptr_ty]>,
> GCCBuiltin<"__builtin_my_foo">;
>
> Clearly the fun here is the GCCBuiltin tag which is what gets
> everything to /just work/.
>
> 7)...
2009 Mar 03
4
[LLVMdev] Adding Intrinsics for custom processor (frotend problem)
As mentioned in an earlier mail, I am working on an LLVM backend for a
custom processor based on MIPS.
My problem is how to extend LLVM to support some esoteric/non-standard
feature of the underlying hardware.
I saw in the "Extending LLVM" document, that the easiest / most common
way to do this was using an intrinsic function,
and examples of the technique abound (all SSE for