Function* F is used only inside LLVM_DEBUG, so that it causes unused variable warning.
This patch introduces a pass that uses the Attributor to deduce AMDGPU specific attributes. Reviewed By: jdoerfert, arsenm Differential Revision: https://reviews.llvm.org/D104997