Displaying 2 results from an estimated 2 matches for "built_in_md".
2009 Mar 04
0
[LLVMdev] Adding Intrinsics for custom processor (frotend, problem)
...; 2) Edit the file gcc/builtins.def
>
> The comments at the top are helpful, read them.
>
> a) Add a macro that looks something like
>
> #undef DEF_MY_BUILTIN
> #define DEF_MY_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
> DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_MD, TYPE, TYPE, \
> false, false, true, ATTRS, false, true)
>
> You can figure out what this means based on the comments in the
> builtins.def file. Essentially the important magic is the
> BUILT_IN_MD flag trickles through and gets your llvm i...
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