Intrinsics and Builtin functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,
   I've been trying to provide a special #pragma directive to
allow a dynamic declaration of intrinsics as builtin function
in GCC 4.0.1.

e.g. #pragma builtin my_nice_intrinsic

I've already implemented the mechanism using the
lang_hooks.builtin_function, and it seem to work correctly.
Unfortunately, I need to extend this mechanism with non-standard
intrinsics which represent assembly instruction with more than one
output (e.g. 4 outputs).

Builtin functions return only one value and the argument list
is only take as input, and I not able to find/build the correct
way to modify them. It is possible to use a different templete
(maybe similar of that one used for assembler inlining)
as builtin_function declaration or someone has idea if this
"dynamic" extension is feasible ?

I'm also trying to "explore" the functionality of BUILT_IN_FRONTEND
and BUILT_IN_NORMAL, but I've not found documentation
(if we exclude to navigate the source codes :-( ).

Thanks, Claudio



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux