class BinaryOperation
Declaration
class BinaryOperation : public ExpressionAST { /* full declaration omitted */ };
Description
Class representing a single binary operation in the AST of an expression.
Declared at: llvm/lib/Support/FileCheckImpl.h:142
Inherits from: ExpressionAST
Method Overview
- public BinaryOperation(llvm::binop_eval_t EvalBinop, std::unique_ptr<ExpressionAST> LeftOp, std::unique_ptr<ExpressionAST> RightOp)
- public Expected<uint64_t> eval() const
Inherited from ExpressionAST:
Methods
¶BinaryOperation(
llvm::binop_eval_t EvalBinop,
std::unique_ptr<ExpressionAST> LeftOp,
std::unique_ptr<ExpressionAST> RightOp)
BinaryOperation(
llvm::binop_eval_t EvalBinop,
std::unique_ptr<ExpressionAST> LeftOp,
std::unique_ptr<ExpressionAST> RightOp)
Declared at: llvm/lib/Support/FileCheckImpl.h:154
Parameters
- llvm::binop_eval_t EvalBinop
- std::unique_ptr<ExpressionAST> LeftOp
- std::unique_ptr<ExpressionAST> RightOp
¶Expected<uint64_t> eval() const
Expected<uint64_t> eval() const
Description
Evaluates the value of the binary operation represented by this AST, using EvalBinop on the result of recursively evaluating the operands.
Declared at: llvm/lib/Support/FileCheckImpl.h:165
Returns
the expression value or an error if an undefined numeric variable is used in one of the operands.