LLVM 23.0.0git
DXILABI.h
Go to the documentation of this file.
1//===-- DXILABI.h - ABI Sensitive Values for DXIL ---------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file contains definitions of various constants and enums that are
10// required to remain stable as per the DXIL format's requirements.
11//
12// Documentation for DXIL can be found in
13// https://github.com/Microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst.
14//
15//===----------------------------------------------------------------------===//
16
17#ifndef LLVM_SUPPORT_DXILABI_H
18#define LLVM_SUPPORT_DXILABI_H
19
20#include "llvm/ADT/StringRef.h"
21#include <cstdint>
22
23namespace llvm {
24namespace dxil {
25
33
41
42/// The kind of resource for an SRV or UAV resource. Sometimes referred to as
43/// "Shape" in the DXIL docs.
66
67/// The element type of an SRV or UAV resource.
89
90/// Metadata tags for extra resource properties.
97
98enum class SamplerType : uint32_t {
101 Mono = 2, // Note: Seems to be unused.
102};
103
108
109const unsigned MinWaveSize = 4;
110const unsigned MaxWaveSize = 128;
111
113} // namespace dxil
114} // namespace llvm
115
116#endif // LLVM_SUPPORT_DXILABI_H
#define LLVM_ABI
Definition Compiler.h:213
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
LLVM_ABI StringRef getResourceClassName(ResourceClass RC)
Definition DXILABI.cpp:21
ResourceKind
The kind of resource for an SRV or UAV resource.
Definition DXILABI.h:44
ExtPropTags
Metadata tags for extra resource properties.
Definition DXILABI.h:91
ResourceDimension
Definition DXILABI.h:34
SamplerFeedbackType
Definition DXILABI.h:104
ElementType
The element type of an SRV or UAV resource.
Definition DXILABI.h:68
const unsigned MaxWaveSize
Definition DXILABI.h:110
const unsigned MinWaveSize
Definition DXILABI.h:109
This is an optimization pass for GlobalISel generic memory operations.
Definition Types.h:26