Recognize -mnop-mcount from the command line and add a function attribute "mnop-mcount"="true" when passed.
When this option is passed, a nop is added instead of a call to fentry. This is used when building the Linux Kernel.
I followed the steps of fentry and implemented this the same way. The (SystemZ) backend can recognize the function attribute and output the nop instead of the call (patch pending). Is this approach acceptable?
Why not use diag::err_opt_not_valid_without_opt here?