1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

R600/SI: Fix return type for isMIMG / isSMRD

All the others use bool, so these should too.

llvm-svn: 214106
This commit is contained in:
Matt Arsenault 2014-07-28 17:59:38 +00:00
parent 4123a2c212
commit feabef83e1
2 changed files with 4 additions and 4 deletions

View File

@ -475,11 +475,11 @@ bool SIInstrInfo::isDS(uint16_t Opcode) const {
return ::AMDGPU::isDS(Opcode) != -1; return ::AMDGPU::isDS(Opcode) != -1;
} }
int SIInstrInfo::isMIMG(uint16_t Opcode) const { bool SIInstrInfo::isMIMG(uint16_t Opcode) const {
return get(Opcode).TSFlags & SIInstrFlags::MIMG; return get(Opcode).TSFlags & SIInstrFlags::MIMG;
} }
int SIInstrInfo::isSMRD(uint16_t Opcode) const { bool SIInstrInfo::isSMRD(uint16_t Opcode) const {
return get(Opcode).TSFlags & SIInstrFlags::SMRD; return get(Opcode).TSFlags & SIInstrFlags::SMRD;
} }

View File

@ -96,8 +96,8 @@ public:
bool isSafeToMoveRegClassDefs(const TargetRegisterClass *RC) const override; bool isSafeToMoveRegClassDefs(const TargetRegisterClass *RC) const override;
bool isDS(uint16_t Opcode) const; bool isDS(uint16_t Opcode) const;
int isMIMG(uint16_t Opcode) const; bool isMIMG(uint16_t Opcode) const;
int isSMRD(uint16_t Opcode) const; bool isSMRD(uint16_t Opcode) const;
bool isVOP1(uint16_t Opcode) const; bool isVOP1(uint16_t Opcode) const;
bool isVOP2(uint16_t Opcode) const; bool isVOP2(uint16_t Opcode) const;
bool isVOP3(uint16_t Opcode) const; bool isVOP3(uint16_t Opcode) const;