blob: c75ec245e0c1303c56e2a5ba06142f9181405f52 [file] [log] [blame]
Tom Stellardf98f2ce2012-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
Tom Stellard6b7d99d2012-12-19 22:10:31 +000028FunctionPass *createSIAnnotateControlFlowPass();
Tom Stellardf98f2ce2012-12-11 21:25:42 +000029FunctionPass *createSIAssignInterpRegsPass(TargetMachine &tm);
30FunctionPass *createSILowerControlFlowPass(TargetMachine &tm);
31FunctionPass *createSICodeEmitterPass(formatted_raw_ostream &OS);
32FunctionPass *createSILowerLiteralConstantsPass(TargetMachine &tm);
Tom Stellard82d3d452013-01-18 21:15:53 +000033FunctionPass *createSIInsertWaits(TargetMachine &tm);
Tom Stellardf98f2ce2012-12-11 21:25:42 +000034
35// Passes common to R600 and SI
Tom Stellard6b7d99d2012-12-19 22:10:31 +000036Pass *createAMDGPUStructurizeCFGPass();
Tom Stellardf98f2ce2012-12-11 21:25:42 +000037FunctionPass *createAMDGPUConvertToISAPass(TargetMachine &tm);
38
39} // End namespace llvm
40
41namespace ShaderType {
42 enum Type {
43 PIXEL = 0,
44 VERTEX = 1,
45 GEOMETRY = 2,
46 COMPUTE = 3
47 };
48}
49
50#endif // AMDGPU_H