7 #ifndef RETDEC_LLVMIR2HLL_IR_EXT_CAST_EXPR_H
8 #define RETDEC_LLVMIR2HLL_IR_EXT_CAST_EXPR_H
Base class for cast instructions.
Base class for cast instructions.
Definition: cast_expr.h:25
ShPtr< Expression > op
Operand.
Definition: cast_expr.h:45
ShPtr< Type > dstType
Destination type.
Definition: cast_expr.h:48
Cast of LLVM Ext instructions.
Definition: ext_cast_expr.h:26
static ShPtr< ExtCastExpr > create(ShPtr< Expression > op, ShPtr< Type > dstType, Variant variant=Variant::ZExt)
Creates a new cast operand of LLVM Ext instructions.
Definition: ext_cast_expr.cpp:60
virtual ShPtr< Value > clone() override
Clones the cast operator.
Definition: ext_cast_expr.cpp:36
ExtCastExpr(ShPtr< Expression > op, ShPtr< Type > dstType, Variant variant=Variant::ZExt)
Constructs a cast operator of LLVM Ext instructions.
Definition: ext_cast_expr.cpp:20
Variant
Variants of the cast.
Definition: ext_cast_expr.h:29
virtual void accept(Visitor *v) override
Visitor pattern implementation.
Definition: ext_cast_expr.cpp:74
Variant variant
Variant of the cast.
Definition: ext_cast_expr.h:50
virtual bool isEqualTo(ShPtr< Value > otherValue) const override
Returns true if this value is equal to otherValue, false otherwise.
Definition: ext_cast_expr.cpp:24
Variant getVariant() const
Returns the variant of the cast.
Definition: ext_cast_expr.cpp:46
A base class of all visitors.
Definition: visitor.h:95
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.