[PATCH] D33903: Const correctness for TTI::getRegisterBitWidth

Daniel Neilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 11:26:44 PDT 2017


dneilson created this revision.
Herald added subscribers: jgravelle-google, sbc100, javed.absar, nhaehnle, nemanjai, dschuff, arsenm, jfb.

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.


https://reviews.llvm.org/D33903

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/CodeGen/BasicTTIImpl.h
  lib/Target/AArch64/AArch64TargetTransformInfo.h
  lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
  lib/Target/ARM/ARMTargetTransformInfo.h
  lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  lib/Target/PowerPC/PPCTargetTransformInfo.h
  lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  lib/Target/SystemZ/SystemZTargetTransformInfo.h
  lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
  lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33903.101432.patch
Type: text/x-patch
Size: 7129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170605/5082f702/attachment.bin>


More information about the llvm-commits mailing list