brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 57ede28 Raw
34 lines · c
1//===-- DirectXInstrInfo.h - Define InstrInfo for DirectX -------*- 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-exception6//7//===----------------------------------------------------------------------===//8//9// This file declares the DirectX specific subclass of TargetInstrInfo.10//11//===----------------------------------------------------------------------===//12 13#ifndef LLVM_DIRECTX_DIRECTXINSTRINFO_H14#define LLVM_DIRECTX_DIRECTXINSTRINFO_H15 16#include "DirectXRegisterInfo.h"17#include "llvm/CodeGen/TargetInstrInfo.h"18 19#define GET_INSTRINFO_HEADER20#include "DirectXGenInstrInfo.inc"21 22namespace llvm {23class DirectXSubtarget;24 25struct DirectXInstrInfo : public DirectXGenInstrInfo {26  const DirectXRegisterInfo RI;27  explicit DirectXInstrInfo(const DirectXSubtarget &STI);28  const DirectXRegisterInfo &getRegisterInfo() const { return RI; }29  ~DirectXInstrInfo() override;30};31} // namespace llvm32 33#endif // LLVM_DIRECTX_DIRECTXINSTRINFO_H34