Tom Stellard | f98f2ce | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 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* createR600KernelParametersPass(const DataLayout *TD); |
| 25 | FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm); |
Vincent Lejeune | 8e59191 | 2013-04-01 21:47:42 +0000 | [diff] [blame] | 26 | FunctionPass *createR600EmitClauseMarkers(TargetMachine &tm); |
Vincent Lejeune | 08001a5 | 2013-04-01 21:48:05 +0000 | [diff] [blame] | 27 | FunctionPass *createR600ControlFlowFinalizer(TargetMachine &tm); |
Tom Stellard | f98f2ce | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 28 | |
| 29 | // SI Passes |
Tom Stellard | 6b7d99d | 2012-12-19 22:10:31 +0000 | [diff] [blame] | 30 | FunctionPass *createSIAnnotateControlFlowPass(); |
Tom Stellard | f98f2ce | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 31 | FunctionPass *createSILowerControlFlowPass(TargetMachine &tm); |
| 32 | FunctionPass *createSICodeEmitterPass(formatted_raw_ostream &OS); |
Tom Stellard | 82d3d45 | 2013-01-18 21:15:53 +0000 | [diff] [blame] | 33 | FunctionPass *createSIInsertWaits(TargetMachine &tm); |
Tom Stellard | f98f2ce | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 34 | |
| 35 | // Passes common to R600 and SI |
Tom Stellard | 6b7d99d | 2012-12-19 22:10:31 +0000 | [diff] [blame] | 36 | Pass *createAMDGPUStructurizeCFGPass(); |
Tom Stellard | f98f2ce | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 37 | FunctionPass *createAMDGPUConvertToISAPass(TargetMachine &tm); |
Tom Stellard | c0b0c67 | 2013-02-06 17:32:29 +0000 | [diff] [blame] | 38 | FunctionPass* createAMDGPUIndirectAddressingPass(TargetMachine &tm); |
Tom Stellard | f98f2ce | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 39 | |
| 40 | } // End namespace llvm |
| 41 | |
| 42 | namespace ShaderType { |
| 43 | enum Type { |
| 44 | PIXEL = 0, |
| 45 | VERTEX = 1, |
| 46 | GEOMETRY = 2, |
| 47 | COMPUTE = 3 |
| 48 | }; |
| 49 | } |
| 50 | |
| 51 | #endif // AMDGPU_H |