7 #ifndef RETDEC_LLVMIR2HLL_IR_CAST_EXPR_H
8 #define RETDEC_LLVMIR2HLL_IR_CAST_EXPR_H
Base class for cast instructions.
Definition: cast_expr.h:25
CastExpr(ShPtr< Expression > op, ShPtr< Type > dstType)
Constructs a cast operator.
Definition: cast_expr.cpp:16
ShPtr< Expression > op
Operand.
Definition: cast_expr.h:45
virtual void update(ShPtr< Value > subject, ShPtr< Value > arg=nullptr) override
Updates the cast according to the changes of subject.
Definition: cast_expr.cpp:75
virtual void replace(ShPtr< Expression > oldExpr, ShPtr< Expression > newExpr) override
Replaces all occurrences of oldExpr with newExpr in the current expression.
Definition: cast_expr.cpp:26
void setOperand(ShPtr< Expression > newOp)
Sets a new operand.
Definition: cast_expr.cpp:42
virtual ShPtr< Type > getType() const override
Returns the type of the expression.
Definition: cast_expr.cpp:22
ShPtr< Type > dstType
Destination type.
Definition: cast_expr.h:48
ShPtr< Expression > getOperand() const
Returns the operand.
Definition: cast_expr.cpp:53
A base class of all expressions.
Definition: expression.h:23
A base class of all expressions.
A base class of all types.
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
Declarations, aliases, macros, etc. for the use of smart pointers.