Path: blob/main/contrib/llvm-project/llvm/lib/Target/SPIRV/SPIRVRegisterInfo.h
96353 views
//===-- SPIRVRegisterInfo.h - SPIR-V Register Information -------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file contains the SPIR-V implementation of the TargetRegisterInfo class.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVREGISTERINFO_H13#define LLVM_LIB_TARGET_SPIRV_SPIRVREGISTERINFO_H1415#include "llvm/CodeGen/TargetRegisterInfo.h"1617#define GET_REGINFO_HEADER18#include "SPIRVGenRegisterInfo.inc"1920namespace llvm {2122struct SPIRVRegisterInfo : public SPIRVGenRegisterInfo {23SPIRVRegisterInfo();24const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;25BitVector getReservedRegs(const MachineFunction &MF) const override;26bool eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj,27unsigned FIOperandNum,28RegScavenger *RS = nullptr) const override {29return false;30}31Register getFrameRegister(const MachineFunction &MF) const override {32return 0;33}34};35} // namespace llvm3637#endif // LLVM_LIB_TARGET_SPIRV_SPIRVREGISTERINFO_H383940