From 750560226686f064ea80233cfecf90f71f1733da Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 28 Jul 2014 17:59:38 +0000 Subject: [PATCH] R600/SI: Fix return type for isMIMG / isSMRD 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 | 4 ++-- lib/Target/R600/SIInstrInfo.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Target/R600/SIInstrInfo.cpp b/lib/Target/R600/SIInstrInfo.cpp index 8c3af77e023..4aea68d5c35 100644 --- a/lib/Target/R600/SIInstrInfo.cpp +++ b/lib/Target/R600/SIInstrInfo.cpp @@ -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; } diff --git a/lib/Target/R600/SIInstrInfo.h b/lib/Target/R600/SIInstrInfo.h index 13ab4843fda..914138bfb6a 100644 --- a/lib/Target/R600/SIInstrInfo.h +++ b/lib/Target/R600/SIInstrInfo.h @@ -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;