We are seeing extremely long time in building AMDGPUInstPrinter.cpp when profile instrumentation is enabled: It takes more than 5 minutes (compared to ~ 8 seconds in non-instrument build)
This caused by the huge statements in printInsruction functions. In profile instrumentation build, we need have extra
control flow to differentiate each case statement. This in turn adds significant compile time in block placement and branch folding.
Function printInstruction is not likely to benefit from PGO build as it's rarely executed in a typical compilation.
So here I disable the profile instrumentation for this function.
__has_attribute is defined to false here if it is not available. I believe that will handle MSVC.