[all-commits] [llvm/llvm-project] e1784a: [GVN] Remove the "private" `llvm::gvn` namespace (...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Fri Jul 17 06:24:17 PDT 2026


  Branch: refs/heads/users/momchil-velikov/gvn-remove-ns
  Home:   https://github.com/llvm/llvm-project
  Commit: e1784a875479f2bb3fd139c7fff75393a3b91dc5
      https://github.com/llvm/llvm-project/commit/e1784a875479f2bb3fd139c7fff75393a3b91dc5
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/GVN.h
    M llvm/lib/Transforms/Scalar/GVN.cpp

  Log Message:
  -----------
  [GVN] Remove the "private" `llvm::gvn` namespace (NFC)

Move `AvailableValue` and `AvailableValueInBlock` into GVNPass, similar
to other helper types.

Retain `llvm::gvn::GVNLegacyPass` as just `llvm::GVNLegacyPass` -
"legacy" is already a sufficent hint and it is not going to become more
"private" by stacking "gvn" prefixes to the name.

Ideally, `GVNLegacyPass` should be defined in an anonymous namespace, but
that is not possible because it is declared as a friend of GVNPass.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list