LLVM 22.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
34/// The kind of resource for an SRV or UAV resource. Sometimes referred to as
35/// "Shape" in the DXIL docs.
58
59/// The element type of an SRV or UAV resource.
81
82/// Metadata tags for extra resource properties.
89
90enum class SamplerType : uint32_t {
93 Mono = 2, // Note: Seems to be unused.
94};
95
100
101const unsigned MinWaveSize = 4;
102const unsigned MaxWaveSize = 128;
103
105
106} // namespace dxil
107} // namespace llvm
108
109#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:36
ExtPropTags
Metadata tags for extra resource properties.
Definition DXILABI.h:83
SamplerFeedbackType
Definition DXILABI.h:96
ElementType
The element type of an SRV or UAV resource.
Definition DXILABI.h:60
const unsigned MaxWaveSize
Definition DXILABI.h:102
const unsigned MinWaveSize
Definition DXILABI.h:101
This is an optimization pass for GlobalISel generic memory operations.