llvm-project/clang/docs/HLSL/HLSLIRReference.rst
Justin Bogner 9be5f4f5d5
[DirectX] Start documenting DXIL Resource handling (#90553)
This adds a new document about DXIL Resource Handling. I've attempted to
describe here how we intend to use TargetExtTypes to represent resources
in LLVM IR and the various intrinsics we'll need to lower these through
LLVM to DXIL.

For now this document is limited to the high level concepts and a few
details on buffer types, and there are a number of TODOs in the document
that we'll iterate on as we progress in the implementation.
2024-07-16 13:42:55 -07:00

23 lines
513 B
ReStructuredText

=================
HLSL IR Reference
=================
.. contents::
:local:
Introduction
============
The goal of this document is to provide a reference for all the special purpose
IR metadata and attributes used by the HLSL code generation path.
Function Attributes
===================
``hlsl.shader``
---------------
The ``hlsl.shader`` function attribute is a string attribute applied to entry
functions. The value is the string representation of the shader stage (i.e.
``compute``, ``pixel``, etc).