[PATCH] D128930: [pseudo] Add ForestNode descendants iterator, print ambiguous/opaque node stats.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 30 11:06:05 PDT 2022


sammccall added a comment.

Results on the first 1k lines of SemaCodeComplete.cpp:

  Forest bytes: 809824 nodes: 47378
  GSS bytes: 24736 nodes: 41925
  
  1490 Ambiguous nodes:
    518 type-name
    377 simple-type-specifier
    137 namespace-name
    135 nested-name-specifier
     65 postfix-expression
     45 decl-specifier-seq
     40 template-argument
     37 parameter-declaration
     26 relational-expression
     25 member-declaration
     21 virt-specifier
     18 function-definition
     16 mem-initializer-id
      9 literal
      7 user-defined-literal
      4 condition
      2 declaration-seq
      2 logical-or-expression
      2 simple-declaration
      2 statement
      1 logical-and-expression
      1 type-specifier-seq
  
  0 Opaque nodes:


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128930/new/

https://reviews.llvm.org/D128930



More information about the cfe-commits mailing list