Any syntax to specify whether a function should or should not be compiled?

Perhaps @nospecialize.

See When should we use `@nospecialize`?