[all-commits] [llvm/llvm-project] 7352f4: [clang-tblgen] Fix non-determinism in generating A...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Tue Nov 9 19:09:51 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7352f42cdc3c44038408edcdc4eb9890546020eb
      https://github.com/llvm/llvm-project/commit/7352f42cdc3c44038408edcdc4eb9890546020eb
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M clang/utils/TableGen/ClangAttrEmitter.cpp

  Log Message:
  -----------
  [clang-tblgen] Fix non-determinism in generating AttrSubMatchRulesParserStringSwitches.inc

llvm::MapVector, compared to std::map, guarantees the same iteration
order in different runs.

Differential Revision: https://reviews.llvm.org/D113168


  Commit: 5b7ea8e62921e53fdea73d948eb0d48c071d4b73
      https://github.com/llvm/llvm-project/commit/5b7ea8e62921e53fdea73d948eb0d48c071d4b73
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M clang/utils/TableGen/ClangAttrEmitter.cpp

  Log Message:
  -----------
  [clang-tblgen] Fix non-determinism in generating AttributeReference.rst

As for now, the categories are printed in an arbitrary order which
depends on the addresses of dynamically allocated objects. The patch
sorts them in an alphabetical order thus making the output stable.

Differential Revision: https://reviews.llvm.org/D113477


Compare: https://github.com/llvm/llvm-project/compare/ffd9c123e759...5b7ea8e62921


More information about the All-commits mailing list