summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
diff options
context:
space:
mode:
authorDaniel Neilson <dneilson@azul.com>2017-06-12 14:22:21 +0000
committerDaniel Neilson <dneilson@azul.com>2017-06-12 14:22:21 +0000
commitc0112ae8dacc969b828e7ca17251126413bcc8cc (patch)
tree13602ae68d2982acd1a2a6ac8ce6cf5d9b919328 /llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
parent41b4f1aa83c48a2573cec93864f95f60d36604bb (diff)
downloadbcm5719-llvm-c0112ae8dacc969b828e7ca17251126413bcc8cc.tar.gz
bcm5719-llvm-c0112ae8dacc969b828e7ca17251126413bcc8cc.zip
Const correctness for TTI::getRegisterBitWidth
Summary: The method TargetTransformInfo::getRegisterBitWidth() is declared const, but the type erasing implementation classes (TargetTransformInfo::Concept & TargetTransformInfo::Model) that were introduced by Chandler in https://reviews.llvm.org/D7293 do not have the method declared const. This is an NFC to tidy up the const consistency between TTI and its implementation. Reviewers: chandlerc, rnk, reames Reviewed By: reames Subscribers: reames, jfb, arsenm, dschuff, nemanjai, nhaehnle, javed.absar, sbc100, jgravelle-google, llvm-commits Differential Revision: https://reviews.llvm.org/D33903 llvm-svn: 305189
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
index f658609f893..7b35fc91613 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
@@ -55,7 +55,7 @@ public:
/// @{
unsigned getNumberOfRegisters(bool Vector);
- unsigned getRegisterBitWidth(bool Vector);
+ unsigned getRegisterBitWidth(bool Vector) const;
unsigned getArithmeticInstrCost(
unsigned Opcode, Type *Ty,
TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
OpenPOWER on IntegriCloud