diff options
author | Jay Foad <jay.foad@amd.com> | 2020-04-09 12:01:05 +0100 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2020-04-17 15:16:57 +0100 |
commit | 96b61571d03aa20183a7f3e7f6fcc9692e7a2a7d (patch) | |
tree | f8066b7e359d6c45c22048e107893730efd15fcc /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 61ba1481e200b5b35baa81ffcff81acb678e8508 (diff) | |
download | llvm-96b61571d03aa20183a7f3e7f6fcc9692e7a2a7d.zip llvm-96b61571d03aa20183a7f3e7f6fcc9692e7a2a7d.tar.gz llvm-96b61571d03aa20183a7f3e7f6fcc9692e7a2a7d.tar.bz2 |
[AMDGPU] New helper functions to get a register class of a given width
Summary:
Introduce new helper functions getVGPRClassForBitWidth,
getAGPRClassForBitWidth, getSGPRClassForBitWidth and use them to
refactor various other functions that all contained their own lists of
valid register class widths. NFC.
Reviewers: arsenm, rampitec
Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, kerbowa, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D78311
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions