HLSL IR Reference — Clang 16.0.6 documentation

# Clang 16.0.6 documentation

## HLSL IR Reference

## 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.

## IR Metadata

### `hlsl.uavs`

The `hlsl.uavs` metadata is a list of all the external global variables that represent UAV resources.

## 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).