Displaying 2 results from an estimated 2 matches for "__builtin_my_foo".
2009 Mar 04
0
[LLVMdev] Adding Intrinsics for custom processor (frotend, problem)
...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) Build llvm.
>
> 8) Configure llvm-gcc with your modified llvm binary directory as it's
> llvm directory.
>
> 9) Build llvm-gcc.
>
&...
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