From 189751d5cc457f457bce86a368483779a9b09fff Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 28 Mar 2018 14:22:57 -0400 Subject: [PATCH] Mark generated symbols as local We need to cut down on symbol imports as much as possible; the whole system starts dragging if we are importing thousands of symbols into a single package. * src/current/include/preproc/symtable.xsl (preproc:symtable)[lv:rate,c:*]: Mark as local if `@preproc:generated`. * src/current/include/preproc/template.xsl (preproc:macros)[lv:inline-template]: Mark generated templates as such. * src/symtable/symbols.xsl (preproc:symtable)[lv:template]: Mark as local if `@preproc:generated'. --- src/current/include/preproc/symtable.xsl | 28 ++++++++++++++++++++++-- src/current/include/preproc/template.xsl | 4 +++- src/symtable/symbols.xsl | 8 ++++++- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/current/include/preproc/symtable.xsl b/src/current/include/preproc/symtable.xsl index 55a4b04d..513424ca 100644 --- a/src/current/include/preproc/symtable.xsl +++ b/src/current/include/preproc/symtable.xsl @@ -660,7 +660,12 @@ + local="{@local}" dtype="float" dim="0" tex="{@sym}"> + + + + + @@ -710,7 +715,12 @@ + type="gen" dtype="float" dim="{$dim}" desc="{@desc}" tex="{@sym}"> + + + + + @@ -721,11 +731,18 @@ + + + + + + @@ -743,6 +760,13 @@ + + + + + diff --git a/src/current/include/preproc/template.xsl b/src/current/include/preproc/template.xsl index 67870960..a7cd137d 100644 --- a/src/current/include/preproc/template.xsl +++ b/src/current/include/preproc/template.xsl @@ -421,7 +421,9 @@ - + diff --git a/src/symtable/symbols.xsl b/src/symtable/symbols.xsl index e5ecfb56..b9dd0893 100644 --- a/src/symtable/symbols.xsl +++ b/src/symtable/symbols.xsl @@ -381,7 +381,13 @@ + desc="{@desc}"> + + + + + +