blob: 91a809b124a515ab934d8a68fc801ed44e2ab50f [file] [log] [blame]
Tom Stellardf98f2ce2012-12-11 21:25:42 +00001//===- SIMachineFunctionInfo.h - SIMachineFunctionInfo 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//
12//===----------------------------------------------------------------------===//
13
14
15#ifndef SIMACHINEFUNCTIONINFO_H_
16#define SIMACHINEFUNCTIONINFO_H_
17
18#include "llvm/CodeGen/MachineFunction.h"
19
20namespace llvm {
21
22/// This class keeps track of the SPI_SP_INPUT_ADDR config register, which
23/// tells the hardware which interpolation parameters to load.
24class SIMachineFunctionInfo : public MachineFunctionInfo {
25public:
Christian Konigc3c169c2013-03-07 09:03:46 +000026 static const char *ShaderTypeAttribute;
27
Tom Stellardf98f2ce2012-12-11 21:25:42 +000028 SIMachineFunctionInfo(const MachineFunction &MF);
Tom Stellardf98f2ce2012-12-11 21:25:42 +000029 unsigned ShaderType;
Christian Konigcc226402013-03-07 09:04:14 +000030 unsigned PSInputAddr;
Tom Stellardf98f2ce2012-12-11 21:25:42 +000031};
32
33} // End namespace llvm
34
35
36#endif //_SIMACHINEFUNCTIONINFO_H_