LLVM 19.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
21
22namespace llvm {
23namespace dxil {
24
25enum class ParameterKind : uint8_t {
26 Invalid = 0,
27 Void,
28 Half,
29 Float,
30 Double,
31 I1,
32 I8,
33 I16,
34 I32,
35 I64,
40};
41
42/// The kind of resource for an SRV or UAV resource. Sometimes referred to as
43/// "Shape" in the DXIL docs.
44enum class ResourceKind : uint32_t {
45 Invalid = 0,
58 CBuffer,
59 Sampler,
60 TBuffer,
65};
66
67/// The element type of an SRV or UAV resource.
68enum class ElementType : uint32_t {
69 Invalid = 0,
70 I1,
71 I16,
72 U16,
73 I32,
74 U32,
75 I64,
76 U64,
77 F16,
78 F32,
79 F64,
88};
89
90} // namespace dxil
91} // namespace llvm
92
93#endif // LLVM_SUPPORT_DXILABI_H
This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...
ResourceKind
The kind of resource for an SRV or UAV resource.
Definition: DXILABI.h:44
ElementType
The element type of an SRV or UAV resource.
Definition: DXILABI.h:68
ParameterKind
Definition: DXILABI.h:25
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18