LLVM 22.0.0git
DirectXInstrInfo.h
Go to the documentation of this file.
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-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file declares the DirectX specific subclass of TargetInstrInfo.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_DIRECTX_DIRECTXINSTRINFO_H
14#define LLVM_DIRECTX_DIRECTXINSTRINFO_H
15
16#include "DirectXRegisterInfo.h"
18
19#define GET_INSTRINFO_HEADER
20#include "DirectXGenInstrInfo.inc"
21
22namespace llvm {
23class DirectXSubtarget;
24
27 explicit DirectXInstrInfo(const DirectXSubtarget &STI);
28 const DirectXRegisterInfo &getRegisterInfo() const { return RI; }
29 ~DirectXInstrInfo() override;
30};
31} // namespace llvm
32
33#endif // LLVM_DIRECTX_DIRECTXINSTRINFO_H
This is an optimization pass for GlobalISel generic memory operations.
const DirectXRegisterInfo & getRegisterInfo() const
const DirectXRegisterInfo RI
DirectXInstrInfo(const DirectXSubtarget &STI)