Tom Stellard | 75aadc2 | 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 | |
Tom Stellard | b0804ec | 2013-06-07 20:28:43 +0000 | [diff] [blame^] | 14 | #include "AMDILDeviceInfo.h" |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 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 |
Vincent Lejeune | d3eed66 | 2013-05-17 16:50:20 +0000 | [diff] [blame] | 24 | FunctionPass* createR600TextureIntrinsicsReplacer(); |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 25 | FunctionPass* createR600KernelParametersPass(const DataLayout *TD); |
Vincent Lejeune | dec1875 | 2013-06-05 21:38:04 +0000 | [diff] [blame] | 26 | FunctionPass *createR600VectorRegMerger(TargetMachine &tm); |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 27 | FunctionPass *createR600ExpandSpecialInstrsPass(TargetMachine &tm); |
Vincent Lejeune | f43bc57 | 2013-04-01 21:47:42 +0000 | [diff] [blame] | 28 | FunctionPass *createR600EmitClauseMarkers(TargetMachine &tm); |
Vincent Lejeune | 147700b | 2013-04-30 00:14:27 +0000 | [diff] [blame] | 29 | FunctionPass *createR600Packetizer(TargetMachine &tm); |
Vincent Lejeune | bfaa63a6 | 2013-04-01 21:48:05 +0000 | [diff] [blame] | 30 | FunctionPass *createR600ControlFlowFinalizer(TargetMachine &tm); |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 31 | |
| 32 | // SI Passes |
Tom Stellard | f879435 | 2012-12-19 22:10:31 +0000 | [diff] [blame] | 33 | FunctionPass *createSIAnnotateControlFlowPass(); |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 34 | FunctionPass *createSILowerControlFlowPass(TargetMachine &tm); |
| 35 | FunctionPass *createSICodeEmitterPass(formatted_raw_ostream &OS); |
Tom Stellard | c4cabef | 2013-01-18 21:15:53 +0000 | [diff] [blame] | 36 | FunctionPass *createSIInsertWaits(TargetMachine &tm); |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 37 | |
| 38 | // Passes common to R600 and SI |
Tom Stellard | f879435 | 2012-12-19 22:10:31 +0000 | [diff] [blame] | 39 | Pass *createAMDGPUStructurizeCFGPass(); |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 40 | FunctionPass *createAMDGPUConvertToISAPass(TargetMachine &tm); |
Tom Stellard | f3b2a1e | 2013-02-06 17:32:29 +0000 | [diff] [blame] | 41 | FunctionPass* createAMDGPUIndirectAddressingPass(TargetMachine &tm); |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 42 | |
| 43 | } // End namespace llvm |
| 44 | |
| 45 | namespace ShaderType { |
| 46 | enum Type { |
| 47 | PIXEL = 0, |
| 48 | VERTEX = 1, |
| 49 | GEOMETRY = 2, |
| 50 | COMPUTE = 3 |
| 51 | }; |
| 52 | } |
| 53 | |
| 54 | #endif // AMDGPU_H |