blob: 4eb5efa19f0752d7bb437189e199c91f0f8097f4 [file] [log] [blame]
Tom Stellardf98f2ce2012-12-11 21:25:42 +00001//===-- R600MachineFunctionInfo.cpp - R600 Machine Function Info-*- 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/// \file
9//===----------------------------------------------------------------------===//
10
11#include "R600MachineFunctionInfo.h"
12
13using namespace llvm;
14
15R600MachineFunctionInfo::R600MachineFunctionInfo(const MachineFunction &MF)
16 : MachineFunctionInfo(),
17 HasLinearInterpolation(false),
18 HasPerspectiveInterpolation(false) {
19 memset(Outputs, 0, sizeof(Outputs));
20 memset(StreamOutputs, 0, sizeof(StreamOutputs));
21 }
22
23unsigned R600MachineFunctionInfo::GetIJPerspectiveIndex() const {
24 assert(HasPerspectiveInterpolation);
25 return 0;
26}
27
28unsigned R600MachineFunctionInfo::GetIJLinearIndex() const {
29 assert(HasLinearInterpolation);
30 if (HasPerspectiveInterpolation)
31 return 1;
32 else
33 return 0;
34}