Restrict sin/cos optimization to 64-bit only for now. 32-bit is a bit messy and less...
[oota-llvm.git] / lib / Target / R600 / R600MachineFunctionInfo.cpp
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   }
21
22 unsigned R600MachineFunctionInfo::GetIJPerspectiveIndex() const {
23   assert(HasPerspectiveInterpolation);
24   return 0;
25 }
26
27 unsigned R600MachineFunctionInfo::GetIJLinearIndex() const {
28   assert(HasLinearInterpolation);
29   if (HasPerspectiveInterpolation)
30     return 1;
31   else
32     return 0;
33 }