[all-commits] [llvm/llvm-project] 7420f9: [TableGen] Move generated *Attr class methods out ...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Thu Mar 12 09:08:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7420f96924a3889af628c851ff1940aae614f3f3
      https://github.com/llvm/llvm-project/commit/7420f96924a3889af628c851ff1940aae614f3f3
  Author: Reid Kleckner <rnk at google.com>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

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

  Log Message:
  -----------
  [TableGen] Move generated *Attr class methods out of line

After this change, clang spends ~200ms parsing Attrs.inc instead of
~560ms. A large part of the cost was from the StringSwitch
instantiations, but this is a good way to avoid similar problems in the
future.

Reviewed By: aaron.ballman, rjmccall

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




More information about the All-commits mailing list