diff options
author | Tom Stellard <[email protected]> | 2012-05-10 12:49:41 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-10 15:41:31 -0400 |
commit | 92faa21d29b49689ccfff852cfff257fccec514e (patch) | |
tree | 83683cfbb82836f68bb42b77427e45b065cbfde6 /src/gallium/drivers/radeon/AMDGPUUtil.h | |
parent | c56918246162d9059ce914f36e8df6db0f578909 (diff) |
radeon/llvm: Move util functions into AMDGPU namespace
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUUtil.h')
-rw-r--r-- | src/gallium/drivers/radeon/AMDGPUUtil.h | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUUtil.h b/src/gallium/drivers/radeon/AMDGPUUtil.h index 38a7ebc1103..15f2ce57af9 100644 --- a/src/gallium/drivers/radeon/AMDGPUUtil.h +++ b/src/gallium/drivers/radeon/AMDGPUUtil.h @@ -1,4 +1,4 @@ -//===-- AMDGPUUtil.h - TODO: Add brief description -------===// +//===-- AMDGPUUtil.h - AMDGPU Utility function declarations -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,22 +7,22 @@ // //===----------------------------------------------------------------------===// // -// TODO: Add full description +// Declarations for utility functions common to all hw codegen targets. // //===----------------------------------------------------------------------===// #ifndef AMDGPU_UTIL_H #define AMDGPU_UTIL_H -#include "AMDGPURegisterInfo.h" -#include "llvm/Support/DataTypes.h" - namespace llvm { -class AMDILMachineFunctionInfo; +class MachineFunction; +class MachineRegisterInfo; +class TargetInstrInfo; + +} -class TargetMachine; -class TargetRegisterInfo; +namespace AMDGPU { bool isPlaceHolderOpcode(unsigned opcode); @@ -32,19 +32,15 @@ bool isReductionOp(unsigned opcode); bool isCubeOp(unsigned opcode); bool isFCOp(unsigned opcode); -/* XXX: Move these to AMDGPUInstrInfo.h */ +// XXX: Move these to AMDGPUInstrInfo.h #define MO_FLAG_CLAMP (1 << 0) #define MO_FLAG_NEG (1 << 1) #define MO_FLAG_ABS (1 << 2) #define MO_FLAG_MASK (1 << 3) -} /* End namespace llvm */ - -namespace AMDGPU { - void utilAddLiveIn(llvm::MachineFunction * MF, llvm::MachineRegisterInfo & MRI, const struct llvm::TargetInstrInfo * TII, unsigned physReg, unsigned virtReg); } // End namespace AMDGPU -#endif /* AMDGPU_UTIL_H */ +#endif // AMDGPU_UTIL_H |