This RFC is for adding extension builtins to flang. The approach is to make use of the existing intrinsic module mechanism (i.e. __fortran_builtins.f90) to add the platforms specific builtins (e.g. fmsub builtin supported for PPC platform). The framework here is to add an intrinsic module (__fortran_ppc_intrinsics.f90) that the __Fortran_PPC_intrinsics.mod is implicitly "USEd" in every compilation.
This work is still WIP (e.g. no platform specific checking). Please comment. Thanks.
As with the line above, please put the module name into the comment.