LLVM 19.0.0git
SPIRVRegisterInfo.cpp
Go to the documentation of this file.
1//===-- SPIRVRegisterInfo.cpp - SPIR-V Register Information -----*- 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 contains the SPIR-V implementation of the TargetRegisterInfo class.
10//
11//===----------------------------------------------------------------------===//
12
13#include "SPIRVRegisterInfo.h"
14#include "SPIRV.h"
15#include "SPIRVSubtarget.h"
17
18#define GET_REGINFO_TARGET_DESC
19#include "SPIRVGenRegisterInfo.inc"
20using namespace llvm;
21
23
25 return BitVector(getNumRegs());
26}
27
28const MCPhysReg *
30 static const MCPhysReg CalleeSavedReg = {0};
31 return &CalleeSavedReg;
32}
static const MCPhysReg CalleeSavedReg
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
BitVector getReservedRegs(const MachineFunction &MF) const override