1 //===-- AMDGPUUtil.h - TODO: Add brief description -------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // TODO: Add full description
12 //===----------------------------------------------------------------------===//
17 #include "AMDGPURegisterInfo.h"
18 #include "llvm/Support/DataTypes.h"
22 class AMDILMachineFunctionInfo
;
25 class TargetRegisterInfo
;
27 bool isPlaceHolderOpcode(unsigned opcode
);
29 bool isTransOp(unsigned opcode
);
30 bool isTexOp(unsigned opcode
);
31 bool isReductionOp(unsigned opcode
);
32 bool isCubeOp(unsigned opcode
);
33 bool isFCOp(unsigned opcode
);
35 /* XXX: Move these to AMDGPUInstrInfo.h */
36 #define MO_FLAG_CLAMP (1 << 0)
37 #define MO_FLAG_NEG (1 << 1)
38 #define MO_FLAG_ABS (1 << 2)
39 #define MO_FLAG_MASK (1 << 3)
41 } /* End namespace llvm */
45 void utilAddLiveIn(llvm::MachineFunction
* MF
, llvm::MachineRegisterInfo
& MRI
,
46 const struct llvm::TargetInstrInfo
* TII
, unsigned physReg
, unsigned virtReg
);
48 } // End namespace AMDGPU
50 #endif /* AMDGPU_UTIL_H */