[AMDGPU][NFC]: Remove unnecessary MFI functions
authorChangpeng Fang <Changpeng.Fang@amd.com>
Mon, 28 Mar 2022 19:13:33 +0000 (12:13 -0700)
committerChangpeng Fang <Changpeng.Fang@amd.com>
Mon, 28 Mar 2022 19:13:33 +0000 (12:13 -0700)
commit8384ced974c629a8c01e8fe19c417b2fd3dd2165
tree327c5ea4bd688b18dcd963352b52db67d77ae98f
parenta621b0af9cd03bce079a2a6f4d72a6471ca1bb85
[AMDGPU][NFC]: Remove unnecessary MFI functions

Summary:
  hasHostcallPtr() and hasHeapPtr() are only used in metadata emit.
However, we can use the corresponding function attributes directly
instead introducing the functions.

Reviewers: arsenm

Differential Revision: https://reviews.llvm.org/D122600
llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h