MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
imm.h File Reference
#include <climits>
#include <algorithm>
#include <bit>
#include <optional>
#include <mim/def.h>
Include dependency graph for imm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mim
namespace  mim::plug
namespace  mim::plug::x86
 The x86 Plugin

Functions

nat_t mim::plug::x86::reg_width (nat_t size)
 Width of the register holding an Idx size.
bool mim::plug::x86::fits_i32 (s64 x)
bool mim::plug::x86::fits_imm (std::optional< nat_t > size, nat_t val)
 Does the literal val fit a sign-extended 32-bit immediate, if it is an Idx size?
bool mim::plug::x86::fits_imm (const Def *lit)
 Does the literal lit fit a sign-extended 32-bit immediate?