On Tue, Nov 03, 2026 at 02:09:20PM +0100, Richard Biener wrote:
> I'd appreciate amending doc/ifn.texi but also starting a
> ifn-specific section of verify_gimple_call.  We might want
> to amend internal-fn.def with some basic information such
> as the min/max number of arguments and maybe a set of flags
> for example requiring uniformity of argument/result types.
> Or simply start with open-coding a switch/case for each
> IFN_* in verify_gimple_call.

Indeed.  Especially it would be useful if it would be a function
that also -fgimple could call and in that case just reject
the source instead of ICEing.
Some internal functions are e.g. to be used only if there is
corresponding optab, so the checking would need to verify that too,
etc., some are supposed to be lowered at some point during GIMPLE
passes, ...

        Jakub

Reply via email to