|
@@ -305,6 +305,12 @@ namespace AZ::ShaderCompiler
|
|
// If @structUid is not struct or class, then it returns nullptr.
|
|
// If @structUid is not struct or class, then it returns nullptr.
|
|
IdentifierUID GetLastMemberVariable(const IdentifierUID& structUid);
|
|
IdentifierUID GetLastMemberVariable(const IdentifierUID& structUid);
|
|
|
|
|
|
|
|
+ //! Determine a heurisitcal global order between options in the program, using "impacted code size" static analysis.
|
|
|
|
+ void AnalyzeOptionRanks();
|
|
|
|
+
|
|
|
|
+ //! Estimate a score proportional to how much code is "child" to the AST node at `location`
|
|
|
|
+ int AnalyzeImpact(TokensLocation const& location);
|
|
|
|
+
|
|
// the maps of all variables, functions, etc, from the source code (things with declarations and a name).
|
|
// the maps of all variables, functions, etc, from the source code (things with declarations and a name).
|
|
SymbolAggregator m_symbols;
|
|
SymbolAggregator m_symbols;
|
|
// stateful helper during parsing
|
|
// stateful helper during parsing
|