blob: 0b01433cc926a1ad719f83c00bc2ff7e4812eb9b [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);
Vincent Lejeune8e591912013-04-01 21:47:42 +000026FunctionPass *createR600EmitClauseMarkers(TargetMachine &tm);
Vincent Lejeune08001a52013-04-01 21:48:05 +000027FunctionPass *createR600ControlFlowFinalizer(TargetMachine &tm);
Tom Stellardf98f2ce2012-12-11 21:25:42 +000028
29// SI Passes
Tom Stellard6b7d99d2012-12-19 22:10:31 +000030FunctionPass *createSIAnnotateControlFlowPass();
Tom Stellardf98f2ce2012-12-11 21:25:42 +000031FunctionPass *createSILowerControlFlowPass(TargetMachine &tm);
32FunctionPass *createSICodeEmitterPass(formatted_raw_ostream &OS);
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);
Tom Stellardc0b0c672013-02-06 17:32:29 +000038FunctionPass* createAMDGPUIndirectAddressingPass(TargetMachine &tm);
Tom Stellardf98f2ce2012-12-11 21:25:42 +000039
40} // End namespace llvm
41
42namespace ShaderType {
43 enum Type {
44 PIXEL = 0,
45 VERTEX = 1,
46 GEOMETRY = 2,
47 COMPUTE = 3
48 };
49}
50
51#endif // AMDGPU_H