aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/ast.h
diff options
context:
space:
mode:
authorJim Lawson <ucbjrl@berkeley.edu>2019-03-04 12:55:02 -0800
committerJim Lawson <ucbjrl@berkeley.edu>2019-03-04 12:55:02 -0800
commit6d2ea6fe5563205c0f565810d615c4900d4508d8 (patch)
treee042d8e294ca9a7ea7d65b83142ebe86270e1153 /frontends/ast/ast.h
parent4cce7f6967313772207448569635e6e5c6bc44ce (diff)
parent107d8848041289bdf3ed85f2ca6c7e02fa9ec774 (diff)
downloadyosys-6d2ea6fe5563205c0f565810d615c4900d4508d8.tar.gz
yosys-6d2ea6fe5563205c0f565810d615c4900d4508d8.tar.bz2
yosys-6d2ea6fe5563205c0f565810d615c4900d4508d8.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'frontends/ast/ast.h')
-rw-r--r--frontends/ast/ast.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h
index 08f91c9c3..8b185ff51 100644
--- a/frontends/ast/ast.h
+++ b/frontends/ast/ast.h
@@ -214,6 +214,8 @@ namespace AST
MEM2REG_FL_SET_ASYNC = 0x00000800,
MEM2REG_FL_EQ2 = 0x00001000,
MEM2REG_FL_CMPLX_LHS = 0x00002000,
+ MEM2REG_FL_CONST_LHS = 0x00004000,
+ MEM2REG_FL_VAR_LHS = 0x00008000,
/* proc flags */
MEM2REG_FL_EQ1 = 0x01000000,
@@ -237,6 +239,7 @@ namespace AST
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);
+ bool is_simple_const_expr();
// create a human-readable text representation of the AST (for debugging)
void dumpAst(FILE *f, std::string indent) const;