Skip to content

Commit

Permalink
[TableGen] Move generated *Attr class methods out of line
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rnk committed Mar 12, 2020
1 parent e79397f commit 7420f96
Showing 1 changed file with 206 additions and 133 deletions.

0 comments on commit 7420f96

Please sign in to comment.