aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorAustin Kerbow <Austin.Kerbow@amd.com>2020-11-30 09:06:35 -0800
committerAustin Kerbow <Austin.Kerbow@amd.com>2021-01-26 11:25:51 -0800
commit2291bd137d12cc4f806d80be93bb442246df4f0e (patch)
treeff8d25c785aec9d819e9554fb0408014601bb5b8 /clang/lib/Frontend
parent683719bc0cc8e12a5f9c06135fc97a13ef414f69 (diff)
downloadllvm-2291bd137d12cc4f806d80be93bb442246df4f0e.zip
llvm-2291bd137d12cc4f806d80be93bb442246df4f0e.tar.gz
llvm-2291bd137d12cc4f806d80be93bb442246df4f0e.tar.bz2
[AMDGPU] Update subtarget features for new target ID support
Support for XNACK and SRAMECC is not static on some GPUs. We must be able to differentiate between different scenarios for these dynamic subtarget features. The possible settings are: - Unsupported: The GPU has no support for XNACK/SRAMECC. - Any: Preference is unspecified. Use conservative settings that can run anywhere. - Off: Request support for XNACK/SRAMECC Off - On: Request support for XNACK/SRAMECC On GCNSubtarget will track the four options based on the following criteria. If the subtarget does not support XNACK/SRAMECC we say the setting is "Unsupported". If no subtarget features for XNACK/SRAMECC are requested we must support "Any" mode. If the subtarget features XNACK/SRAMECC exist in the feature string when initializing the subtarget, the settings are "On/Off". The defaults are updated to be conservatively correct, meaning if no setting for XNACK or SRAMECC is explicitly requested, defaults will be used which generate code that can be run anywhere. This corresponds to the "Any" setting. Differential Revision: https://reviews.llvm.org/D85882
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions