[AMDGPU] Create isGFX9Plus utility function
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 6 Oct 2020 17:05:43 +0000 (10:05 -0700)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 6 Oct 2020 17:18:43 +0000 (10:18 -0700)
commitacce6b6082684d601e0375818260226259d96b7a
treeffaf2c0e602713a7924b692e876b981ea43c02b1
parentc781dc74a8b282eb4c6f3aa48982c5de898611a2
[AMDGPU] Create isGFX9Plus utility function

Introduce a utility function to make it more
convenient to write code that is the same on
the GFX9 and GFX10 subtargets.

Use isGFX9Plus in the AsmParser for AMDGPU.

Authored By: Joe_Nash

Differential Revision: https://reviews.llvm.org/D88908
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h