Revert "R600: Add a pass that merge Vector Register"
[oota-llvm.git] / lib / Target / R600 / AMDGPU.h
1 //===-- 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
18 namespace llvm {
19
20 class FunctionPass;
21 class AMDGPUTargetMachine;
22
23 // R600 Passes
24 FunctionPass* createR600TextureIntrinsicsReplacer();
25 FunctionPass* createR600KernelParametersPass(const DataLayout *TD);
26 FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm);
27 FunctionPass *createR600EmitClauseMarkers(TargetMachine &tm);
28 FunctionPass *createR600Packetizer(TargetMachine &tm);
29 FunctionPass *createR600ControlFlowFinalizer(TargetMachine &tm);
30
31 // SI Passes
32 FunctionPass *createSIAnnotateControlFlowPass();
33 FunctionPass *createSILowerControlFlowPass(TargetMachine &tm);
34 FunctionPass *createSICodeEmitterPass(formatted_raw_ostream &OS);
35 FunctionPass *createSIInsertWaits(TargetMachine &tm);
36
37 // Passes common to R600 and SI
38 Pass *createAMDGPUStructurizeCFGPass();
39 FunctionPass *createAMDGPUConvertToISAPass(TargetMachine &tm);
40 FunctionPass* createAMDGPUIndirectAddressingPass(TargetMachine &tm);
41
42 } // End namespace llvm
43
44 namespace ShaderType {
45   enum Type {
46     PIXEL = 0,
47     VERTEX = 1,
48     GEOMETRY = 2,
49     COMPUTE = 3
50   };
51 }
52
53 #endif // AMDGPU_H