AMDGPU: Add AMDGPUSubtarget::getEUsPerCU()
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 1 Dec 2022 09:57:22 +0000 (10:57 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 23 Jan 2023 20:43:05 +0000 (21:43 +0100)
commit84610a82a1aa9bac828569560818b919951039e1
tree9afee97946213507780f2ebbe5e04b77bcdf5440
parent20f895cd7104b56e02db9609b4c9e760b2458472
AMDGPU: Add AMDGPUSubtarget::getEUsPerCU()

We will use this for more accurate occupancy computations. Note that
IsaInfo takes WGP mode vs. CU mode into account on gfx10+.

Differential Revision: https://reviews.llvm.org/D139467
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h