aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-07-28 17:59:38 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-07-28 17:59:38 +0000
commitb9f46eeff14d425cd8abeb354513f328fa030d5e (patch)
tree7bb9984a643e50ea0cacdc31d104aa7d04348d22 /llvm
parentb143274ad0b51709eb7840881eb9857330731fba (diff)
downloadllvm-b9f46eeff14d425cd8abeb354513f328fa030d5e.zip
llvm-b9f46eeff14d425cd8abeb354513f328fa030d5e.tar.gz
llvm-b9f46eeff14d425cd8abeb354513f328fa030d5e.tar.bz2
R600/SI: Fix return type for isMIMG / isSMRD
All the others use bool, so these should too. llvm-svn: 214106
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/R600/SIInstrInfo.cpp4
-rw-r--r--llvm/lib/Target/R600/SIInstrInfo.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/R600/SIInstrInfo.cpp b/llvm/lib/Target/R600/SIInstrInfo.cpp
index 8c3af77..4aea68d 100644
--- a/llvm/lib/Target/R600/SIInstrInfo.cpp
+++ b/llvm/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/llvm/lib/Target/R600/SIInstrInfo.h b/llvm/lib/Target/R600/SIInstrInfo.h
index 13ab484..914138b 100644
--- a/llvm/lib/Target/R600/SIInstrInfo.h
+++ b/llvm/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;