[all-commits] [llvm/llvm-project] 3cbfe9: [X86] Merge X86TargetInfo::setFeatureEnabled and X...

topperc via All-commits all-commits at lists.llvm.org
Tue Jul 7 00:10:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cbfe988bc5cd366fb0f62e597f899b489c3834d
      https://github.com/llvm/llvm-project/commit/3cbfe988bc5cd366fb0f62e597f899b489c3834d
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-07-06 (Mon, 06 Jul 2020)

  Changed paths:
    M clang/lib/Basic/Targets/X86.cpp
    M clang/lib/Basic/Targets/X86.h

  Log Message:
  -----------
  [X86] Merge X86TargetInfo::setFeatureEnabled and X86TargetInfo::setFeatureEnabledImpl. NFC

setFeatureEnabled is a virtual function. setFeatureEnabledImpl
was its implementation. This split was to avoid virtual calls
when we need to call setFeatureEnabled in initFeatureMap.

With C++11 we can use 'final' on setFeatureEnabled to enable
the compiler to perform de-virtualization for the initFeatureMap
calls.




More information about the All-commits mailing list