diff options
author | Helena Kotas <hekotas@microsoft.com> | 2024-05-29 21:52:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 21:52:20 -0700 |
commit | 8890209ead2246461985f49c4c9c01cc2371ac09 (patch) | |
tree | b0719bdb4ed01f34e3c97046d29ece2a9e003631 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 02c6845c762dfd0a19d4a2f997990e160f392dae (diff) | |
download | llvm-8890209ead2246461985f49c4c9c01cc2371ac09.zip llvm-8890209ead2246461985f49c4c9c01cc2371ac09.tar.gz llvm-8890209ead2246461985f49c4c9c01cc2371ac09.tar.bz2 |
[HLSL] Default and Relaxed Availability Diagnostics (#92704)
Implements HLSL availability diagnostics' default and relaxed mode.
HLSL availability diagnostics emits errors or warning when unavailable
shader APIs are used. Unavailable shader APIs are APIs that are exposed
in HLSL code but are not available in the target shader stage or shader
model version.
In the default mode the compiler emits an error when an unavailable API
is found in a code that is reachable from the shader entry point
function. In the future this check will also extended to exported
library functions (#92073). The relaxed diagnostic mode is the same
except the compiler emits a warning. This mode is enabled by
``-Wno-error=hlsl-availability``.
See HLSL Availability Diagnostics design doc
[here](https://github.com/llvm/llvm-project/blob/main/clang/docs/HLSL/AvailabilityDiagnostics.rst)
for more details.
Fixes #90095
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions