OSDN Git Service

radeonsi: initial WIP SI code
[android-x86/external-mesa.git] / src / gallium / drivers / radeon / AMDGPULowerShaderInstructions.h
1 //===-- AMDGPULowerShaderInstructions.h - TODO: Add brief description -------===//
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 //===----------------------------------------------------------------------===//
9 //
10 // TODO: Add full description
11 //
12 //===----------------------------------------------------------------------===//
13
14
15 #ifndef AMDGPU_LOWER_SHADER_INSTRUCTIONS
16 #define AMDGPU_LOWER_SHADER_INSTRUCTIONS
17
18 namespace llvm {
19
20 class MachineFunction;
21 class MachineRegisterInfo;
22 class TargetInstrInfo;
23
24 class AMDGPULowerShaderInstructionsPass {
25
26   protected:
27     MachineRegisterInfo * MRI;
28     /**
29      * @param physReg The physical register that will be preloaded.
30      * @param virtReg The virtual register that currently holds the
31      *                preloaded value.
32      */
33     void preloadRegister(MachineFunction * MF, const TargetInstrInfo * TII,
34                          unsigned physReg, unsigned virtReg) const;
35 };
36
37 } // end namespace llvm
38
39
40 #endif // AMDGPU_LOWER_SHADER_INSTRUCTIONS