[TargetVersion] Only enable on RISC-V and AArch64 (#115991)
[llvm-project.git] / clang / docs / HLSL / HLSLIRReference.rst
blobc0033946a6ec8c372527718d708cb000202fd57b
1 =================
2 HLSL IR Reference
3 =================
5 .. contents::
6    :local:
8 Introduction
9 ============
11 The goal of this document is to provide a reference for all the special purpose
12 IR metadata and attributes used by the HLSL code generation path.
14 Function Attributes
15 ===================
17 ``hlsl.shader``
18 ---------------
20 The ``hlsl.shader`` function attribute is a string attribute applied to entry
21 functions. The value is the string representation of the shader stage (i.e.
22 ``compute``, ``pixel``, etc).