Tom Stellard | f98f2ce | 2012-12-11 21:25:42 +0000 | [diff] [blame^] | 1 | //===-- 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 | |
| 13 | using namespace llvm; |
| 14 | |
| 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)); |
| 21 | } |
| 22 | |
| 23 | unsigned R600MachineFunctionInfo::GetIJPerspectiveIndex() const { |
| 24 | assert(HasPerspectiveInterpolation); |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | unsigned R600MachineFunctionInfo::GetIJLinearIndex() const { |
| 29 | assert(HasLinearInterpolation); |
| 30 | if (HasPerspectiveInterpolation) |
| 31 | return 1; |
| 32 | else |
| 33 | return 0; |
| 34 | } |