LLVM 22.0.0git
DirectXRegisterInfo.h
Go to the documentation of this file.
1//===-- DirectXRegisterInfo.h - Define RegisterInfo 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 TargetRegisterInfo.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_DIRECTX_DXILREGISTERINFO_H
14#define LLVM_DIRECTX_DXILREGISTERINFO_H
15
17
18#define GET_REGINFO_HEADER
19#include "DirectXGenRegisterInfo.inc"
20
21namespace llvm {
25
26 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
27 BitVector getReservedRegs(const MachineFunction &MF) const override;
29 unsigned FIOperandNum,
30 RegScavenger *RS = nullptr) const override;
31 // Debug information queries.
32 Register getFrameRegister(const MachineFunction &MF) const override;
33};
34} // namespace llvm
35
36#endif // LLVM_DIRECTX_DXILREGISTERINFO_H
uint64_t IntrinsicInst * II
MachineInstrBundleIterator< MachineInstr > iterator
Wrapper class representing virtual and physical registers.
Definition Register.h:19
This is an optimization pass for GlobalISel generic memory operations.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
Definition MCRegister.h:21
Register getFrameRegister(const MachineFunction &MF) const override
BitVector getReservedRegs(const MachineFunction &MF) const override
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
bool eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override