1 //===-- R600MachineFunctionInfo.cpp - R600 Machine Function Info-*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #include "R600MachineFunctionInfo.h"
15 R600MachineFunctionInfo::R600MachineFunctionInfo(const MachineFunction &MF)
16 : MachineFunctionInfo(),
17 HasLinearInterpolation(false),
18 HasPerspectiveInterpolation(false) {
19 memset(Outputs, 0, sizeof(Outputs));
20 memset(StreamOutputs, 0, sizeof(StreamOutputs));
23 unsigned R600MachineFunctionInfo::GetIJPerspectiveIndex() const {
24 assert(HasPerspectiveInterpolation);
28 unsigned R600MachineFunctionInfo::GetIJLinearIndex() const {
29 assert(HasLinearInterpolation);
30 if (HasPerspectiveInterpolation)