LLVM  3.7.0
R600RegisterInfo.h
Go to the documentation of this file.
1 //===-- R600RegisterInfo.h - R600 Register Info Interface ------*- C++ -*--===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 /// \file
11 /// \brief Interface definition for R600RegisterInfo
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_TARGET_R600_R600REGISTERINFO_H
16 #define LLVM_LIB_TARGET_R600_R600REGISTERINFO_H
17 
18 #include "AMDGPURegisterInfo.h"
19 
20 namespace llvm {
21 
22 class AMDGPUSubtarget;
23 
26 
28 
29  BitVector getReservedRegs(const MachineFunction &MF) const override;
30 
31  /// \brief get the HW encoding for a register's channel.
32  unsigned getHWRegChan(unsigned reg) const;
33 
34  unsigned getHWRegIndex(unsigned Reg) const override;
35 
36  /// \brief get the register class of the specified type to use in the
37  /// CFGStructurizer
38  const TargetRegisterClass * getCFGStructurizerRegClass(MVT VT) const override;
39 
40  const RegClassWeight &
41  getRegClassWeight(const TargetRegisterClass *RC) const override;
42 
43  // \returns true if \p Reg can be defined in one ALU caluse and used in another.
44  bool isPhysRegLiveAcrossClauses(unsigned Reg) const;
45 };
46 
47 } // End namespace llvm
48 
49 #endif
unsigned getHWRegChan(unsigned reg) const
get the HW encoding for a register's channel.
const TargetRegisterClass * getCFGStructurizerRegClass(MVT VT) const override
get the register class of the specified type to use in the CFGStructurizer
Each TargetRegisterClass has a per register weight, and weight limit which must be less than the limi...
Reg
All possible values of the reg field in the ModR/M byte.
TargetRegisterInfo interface that is implemented by all hw codegen targets.
MVT - Machine Value Type.
unsigned getHWRegIndex(unsigned Reg) const override
bool isPhysRegLiveAcrossClauses(unsigned Reg) const
const RegClassWeight & getRegClassWeight(const TargetRegisterClass *RC) const override
BitVector getReservedRegs(const MachineFunction &MF) const override