xo-expression: add explicit types to all Expressions

This commit is contained in:
Roland Conybeare 2024-06-18 16:55:46 -04:00
commit 9ff173f68a
12 changed files with 223 additions and 54 deletions

View file

@ -22,7 +22,7 @@ namespace xo {
public:
/** @p extype sets expression-type; could be constant|primitive **/
ConstantInterface(exprtype extype) : Expression{extype} {}
ConstantInterface(exprtype extype, TypeDescr valuetype) : Expression{extype, valuetype} {}
/** downcast from Expression **/
static ref::brw<ConstantInterface> from(ref::brw<Expression> x) {