libTriton version 1.0 build 1590
Loading...
Searching...
No Matches
Namespaces | Macros
x86Specifications.cpp File Reference
#include <cassert>
#include <triton/architecture.hpp>
#include <triton/cpuSize.hpp>
#include <triton/exceptions.hpp>
#include <triton/externalLibs.hpp>
#include <triton/x86Specifications.hpp>
#include "triton/x86.spec"

Go to the source code of this file.

Namespaces

namespace  triton
 The Triton namespace.
 
namespace  triton::arch
 The Architecture namespace.
 
namespace  triton::arch::x86
 The x86 namespace.
 

Macros

#define REG_SPEC(UPPER_NAME, LOWER_NAME, X86_64_UPPER, X86_64_LOWER, X86_64_PARENT, X86_UPPER, X86_LOWER, X86_PARENT, X86_AVAIL)
 
#define REG_SPEC_NO_CAPSTONE   REG_SPEC
 
#define REG_SPEC(UPPER_NAME, LOWER_NAME, _1, _2, _3, X86_UPPER, X86_LOWER, X86_PARENT, X86_AVAIL)
 
#define REG_SPEC_NO_CAPSTONE   REG_SPEC
 
#define REG_SPEC(UPPER_NAME, _1, _2, _3, _4, _5, _6, _7, _8)
 
#define REG_SPEC_NO_CAPSTONE(_1, _2, _3, _4, _5, _6, _7, _8, _9)
 

Macro Definition Documentation

◆ REG_SPEC [1/3]

#define REG_SPEC (   UPPER_NAME,
  _1,
  _2,
  _3,
  _4,
  _5,
  _6,
  _7,
  _8 
)
Value:
case triton::extlibs::capstone::X86_REG_##UPPER_NAME: \
tritonId = triton::arch::ID_REG_X86_##UPPER_NAME; \
break;

◆ REG_SPEC [2/3]

#define REG_SPEC (   UPPER_NAME,
  LOWER_NAME,
  _1,
  _2,
  _3,
  X86_UPPER,
  X86_LOWER,
  X86_PARENT,
  X86_AVAIL 
)
Value:
if (X86_AVAIL) \
id2reg.emplace(ID_REG_X86_##UPPER_NAME, \
triton::arch::Register(triton::arch::ID_REG_X86_##UPPER_NAME, \
#LOWER_NAME, \
triton::arch::ID_REG_X86_##X86_PARENT, \
X86_UPPER, \
X86_LOWER, \
true) \
); \
name2id.emplace(#LOWER_NAME, ID_REG_X86_##UPPER_NAME);
This class is used when an instruction has a register operand.
Definition register.hpp:44

◆ REG_SPEC [3/3]

#define REG_SPEC (   UPPER_NAME,
  LOWER_NAME,
  X86_64_UPPER,
  X86_64_LOWER,
  X86_64_PARENT,
  X86_UPPER,
  X86_LOWER,
  X86_PARENT,
  X86_AVAIL 
)
Value:
id2reg.emplace(ID_REG_X86_##UPPER_NAME, \
triton::arch::Register(triton::arch::ID_REG_X86_##UPPER_NAME, \
#LOWER_NAME, \
triton::arch::ID_REG_X86_##X86_64_PARENT, \
X86_64_UPPER, \
X86_64_LOWER, \
true) \
); \
name2id.emplace(#LOWER_NAME, ID_REG_X86_##UPPER_NAME);