
A new tableGen backend gen-dxil-enum is added to generate enum for DXIL operation and operation class. A new file "DXILConstants.inc" will be generated when build DirectX target which include the enums. More tableGen backends will be added to replace manually written table in DirectX backend. The unused fields in dxil_inst will be used in future PR. Reviewed By: bogner Differential Revision: https://reviews.llvm.org/D125435
26 lines
761 B
C++
26 lines
761 B
C++
//===- DXILConstants.h - Essential DXIL constants -------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
///
|
|
/// \file This file contains essential DXIL constants.
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_DIRECTX_DXILCONSTANTS_H
|
|
#define LLVM_LIB_TARGET_DIRECTX_DXILCONSTANTS_H
|
|
|
|
namespace llvm {
|
|
namespace DXIL {
|
|
|
|
#define DXIL_OP_ENUM
|
|
#include "DXILOperation.inc"
|
|
#undef DXIL_OP_ENUM
|
|
|
|
} // namespace DXIL
|
|
} // namespace llvm
|
|
|
|
#endif
|