Lines Matching refs:ek
711 eval_kind(AstExprValue *ev, EvalKind ek) in eval_kind() argument
713 if (ek == EK_const) in eval_kind()
715 if (ek == EK_positive_int) in eval_kind()
792 void AstExpression::evaluate(EvalKind ek) in evaluate() argument
794 m_exprValue = eval_internal(ek); in evaluate()
795 m_exprValue = eval_kind(m_exprValue, ek); in evaluate()
885 AstExprValue* AstExpression::eval_internal(EvalKind ek) in eval_internal() argument
891 return eval_kind(m_exprValue, ek); in eval_internal()
902 m_exprValue = eval_bin_op(ek); in eval_internal()
903 return eval_kind(m_exprValue, ek); in eval_internal()
909 m_exprValue = eval_bit_op(ek); in eval_internal()
910 return eval_kind(m_exprValue, ek); in eval_internal()
914 m_exprValue = eval_un_op(ek); in eval_internal()
915 return eval_kind(m_exprValue, ek); in eval_internal()
917 m_exprValue = eval_symbol(ek); in eval_internal()
918 return eval_kind(m_exprValue, ek); in eval_internal()
926 AstExprValue* AstExpression::eval_bin_op(EvalKind ek) in eval_bin_op() argument
933 if (ek != EK_const && ek != EK_positive_int) in eval_bin_op()
937 m_subExpr1->setExprValue(m_subExpr1->eval_internal(ek)); in eval_bin_op()
943 m_subExpr2->setExprValue(m_subExpr2->eval_internal(ek)); in eval_bin_op()
981 AstExprValue* AstExpression::eval_bit_op(EvalKind ek) in eval_bit_op() argument
983 if (ek != EK_const && ek != EK_positive_int) in eval_bit_op()
987 m_subExpr1->setExprValue(m_subExpr1->eval_internal(ek)); in eval_bit_op()
993 m_subExpr2->setExprValue(m_subExpr2->eval_internal(ek)); in eval_bit_op()
1027 AstExprValue* AstExpression::eval_un_op(EvalKind ek) in eval_un_op() argument
1032 if (ek != EK_const && ek != EK_positive_int) in eval_un_op()
1036 m_subExpr1->setExprValue(m_subExpr1->eval_internal(ek)); in eval_un_op()
1067 AstExprValue* AstExpression::eval_symbol(EvalKind ek) in eval_symbol() argument
1119 return pConst->getConstValue()->eval_internal(ek); in eval_symbol()