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));
22 unsigned R600MachineFunctionInfo::GetIJPerspectiveIndex() const {
23 assert(HasPerspectiveInterpolation);
27 unsigned R600MachineFunctionInfo::GetIJLinearIndex() const {
28 assert(HasLinearInterpolation);
29 if (HasPerspectiveInterpolation)