blob: 40864b09dda3a30905fc8f7cf7a042cd5330759e [file] [log] [blame]
Tom Stellard75aadc22012-12-11 21:25:42 +00001//===-- AMDGPU.h - MachineFunction passes hw codegen --------------*- 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#ifndef AMDGPU_H
12#define AMDGPU_H
13
14#include "AMDGPUTargetMachine.h"
15#include "llvm/Support/TargetRegistry.h"
16#include "llvm/Target/TargetMachine.h"
17
18namespace llvm {
19
20class FunctionPass;
21class AMDGPUTargetMachine;
22
23// R600 Passes
24FunctionPass* createR600KernelParametersPass(const DataLayout *TD);
25FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm);
26
27// SI Passes
28FunctionPass *createSIAssignInterpRegsPass(TargetMachine &tm);
29FunctionPass *createSILowerControlFlowPass(TargetMachine &tm);
30FunctionPass *createSICodeEmitterPass(formatted_raw_ostream &OS);
31FunctionPass *createSILowerLiteralConstantsPass(TargetMachine &tm);
32FunctionPass *createSIFixSGPRLivenessPass(TargetMachine &tm);
33
34// Passes common to R600 and SI
35FunctionPass *createAMDGPUConvertToISAPass(TargetMachine &tm);
36
37} // End namespace llvm
38
39namespace ShaderType {
40 enum Type {
41 PIXEL = 0,
42 VERTEX = 1,
43 GEOMETRY = 2,
44 COMPUTE = 3
45 };
46}
47
48#endif // AMDGPU_H