]> granicus.if.org Git - llvm/commitdiff
R600/SI: Fix return type for isMIMG / isSMRD
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 28 Jul 2014 17:59:38 +0000 (17:59 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 28 Jul 2014 17:59:38 +0000 (17:59 +0000)
All the others use bool, so these should too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214106 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/SIInstrInfo.cpp
lib/Target/R600/SIInstrInfo.h

index 8c3af77e0235244eb07b80092a9cbe22d4e27cba..4aea68d5c351fc9c19822bfa51ac409769ad137c 100644 (file)
@@ -475,11 +475,11 @@ bool SIInstrInfo::isDS(uint16_t Opcode) const {
   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;
 }
 
-int SIInstrInfo::isSMRD(uint16_t Opcode) const {
+bool SIInstrInfo::isSMRD(uint16_t Opcode) const {
   return get(Opcode).TSFlags & SIInstrFlags::SMRD;
 }
 
index 13ab4843fdad36c056746518ef28eb1ad2f14c3f..914138bfb6a1fecd1141a9588d15d3145b1bf72b 100644 (file)
@@ -96,8 +96,8 @@ public:
 
   bool isSafeToMoveRegClassDefs(const TargetRegisterClass *RC) const override;
   bool isDS(uint16_t Opcode) const;
-  int isMIMG(uint16_t Opcode) const;
-  int isSMRD(uint16_t Opcode) const;
+  bool isMIMG(uint16_t Opcode) const;
+  bool isSMRD(uint16_t Opcode) const;
   bool isVOP1(uint16_t Opcode) const;
   bool isVOP2(uint16_t Opcode) const;
   bool isVOP3(uint16_t Opcode) const;