OpenASIP
2.0
|
#include <ImmInfo.hh>
Public Member Functions | |
ImmInfoValue () | |
ImmInfoValue (int immediateWidth, bool signExtending) | |
int64_t | lowerBound () const |
int64_t | upperBound () const |
int | width () const |
bool | signExtending () const |
The stored immediate result in ImmInfo.
Definition at line 58 of file ImmInfo.hh.
ImmInfoValue::ImmInfoValue | ( | ) |
Default constructor. Set as zero width and as zero extending.
Definition at line 164 of file ImmInfo.cc.
ImmInfoValue::ImmInfoValue | ( | int | immediateWidth, |
bool | signExtending | ||
) |
Constructor with the specified immediate width and sign-extension.
Definition at line 172 of file ImmInfo.cc.
int64_t ImmInfoValue::lowerBound | ( | ) | const |
Return largest inclusive value that can be expressed as immediate.
Definition at line 181 of file ImmInfo.cc.
|
inline |
Return true if the immediate is sign extending.
Definition at line 75 of file ImmInfo.hh.
Referenced by ImmInfo::canTakeImmediate().
int64_t ImmInfoValue::upperBound | ( | ) | const |
Return smallest inclusive value that can be expressed as immediate.
Definition at line 193 of file ImmInfo.cc.
|
inline |
Returns bit width of the immediate.
Definition at line 71 of file ImmInfo.hh.
Referenced by ImmInfo::canTakeImmediate(), and ImmInfo::canTakeImmediateByWidth().