3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 12:53:39 +00:00

further improved const function support

This commit is contained in:
Clifford Wolf 2014-06-07 00:02:05 +02:00
parent 5281562d0e
commit 7c8a7b2131
3 changed files with 22 additions and 17 deletions

View file

@ -202,7 +202,7 @@ namespace AST
// additional functionality for evaluating constant functions
struct varinfo_t { RTLIL::Const val; int offset; bool is_signed; };
bool has_const_only_constructs();
bool has_const_only_constructs(bool &recommend_const_eval);
void replace_variables(std::map<std::string, varinfo_t> &variables, AstNode *fcall);
AstNode *eval_const_function(AstNode *fcall);