Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Attributes | List of all members
dart::CInstr Class Reference

#include <constants_riscv.h>

Public Member Functions

 CInstr (uint16_t encoding)
 
uint16_t encoding () const
 
size_t length () const
 
COpcode opcode () const
 
Register rd () const
 
Register rs1 () const
 
Register rs2 () const
 
Register rdp () const
 
Register rs1p () const
 
Register rs2p () const
 
FRegister frd () const
 
FRegister frs1 () const
 
FRegister frs2 () const
 
FRegister frdp () const
 
FRegister frs1p () const
 
FRegister frs2p () const
 
intx_t spload4_imm ()
 
intx_t spload8_imm ()
 
intx_t spstore4_imm ()
 
intx_t spstore8_imm ()
 
intx_t mem4_imm ()
 
intx_t mem8_imm ()
 
intx_t j_imm ()
 
intx_t b_imm ()
 
intx_t i_imm ()
 
intx_t u_imm ()
 
intx_t i16_imm ()
 
intx_t i4spn_imm ()
 

Static Public Attributes

static constexpr uint32_t kInstrSize = 2
 

Detailed Description

Definition at line 1484 of file constants_riscv.h.

Constructor & Destructor Documentation

◆ CInstr()

dart::CInstr::CInstr ( uint16_t  encoding)
inlineexplicit

Definition at line 1486 of file constants_riscv.h.

1486: encoding_(encoding) {}
uint16_t encoding() const

Member Function Documentation

◆ b_imm()

intx_t dart::CInstr::b_imm ( )
inline

Definition at line 1514 of file constants_riscv.h.

1514{ return DecodeCBImm(encoding_); }
intx_t DecodeCBImm(uint32_t encoding)

◆ encoding()

uint16_t dart::CInstr::encoding ( ) const
inline

Definition at line 1487 of file constants_riscv.h.

1487{ return encoding_; }

◆ frd()

FRegister dart::CInstr::frd ( ) const
inline

Definition at line 1500 of file constants_riscv.h.

1500{ return DecodeCFRd(encoding_); }

◆ frdp()

FRegister dart::CInstr::frdp ( ) const
inline

Definition at line 1503 of file constants_riscv.h.

1503{ return DecodeCFRdp(encoding_); }

◆ frs1()

FRegister dart::CInstr::frs1 ( ) const
inline

Definition at line 1501 of file constants_riscv.h.

1501{ return DecodeCFRd(encoding_); }

◆ frs1p()

FRegister dart::CInstr::frs1p ( ) const
inline

Definition at line 1504 of file constants_riscv.h.

1504{ return DecodeCFRs1p(encoding_); }

◆ frs2()

FRegister dart::CInstr::frs2 ( ) const
inline

Definition at line 1502 of file constants_riscv.h.

1502{ return DecodeCFRs2(encoding_); }

◆ frs2p()

FRegister dart::CInstr::frs2p ( ) const
inline

Definition at line 1505 of file constants_riscv.h.

1505{ return DecodeCFRs2p(encoding_); }

◆ i16_imm()

intx_t dart::CInstr::i16_imm ( )
inline

Definition at line 1517 of file constants_riscv.h.

1517{ return DecodeCI16Imm(encoding_); }
intx_t DecodeCI16Imm(uint32_t encoding)

◆ i4spn_imm()

intx_t dart::CInstr::i4spn_imm ( )
inline

Definition at line 1518 of file constants_riscv.h.

1518{ return DecodeCI4SPNImm(encoding_); }
intx_t DecodeCI4SPNImm(uint32_t encoding)

◆ i_imm()

intx_t dart::CInstr::i_imm ( )
inline

Definition at line 1515 of file constants_riscv.h.

1515{ return DecodeCIImm(encoding_); }
intx_t DecodeCIImm(uint32_t encoding)

◆ j_imm()

intx_t dart::CInstr::j_imm ( )
inline

Definition at line 1513 of file constants_riscv.h.

1513{ return DecodeCJImm(encoding_); }
intx_t DecodeCJImm(uint32_t encoding)

◆ length()

size_t dart::CInstr::length ( ) const
inline

Definition at line 1490 of file constants_riscv.h.

1490{ return kInstrSize; }
static constexpr uint32_t kInstrSize

◆ mem4_imm()

intx_t dart::CInstr::mem4_imm ( )
inline

Definition at line 1511 of file constants_riscv.h.

1511{ return DecodeCMem4Imm(encoding_); }
intx_t DecodeCMem4Imm(uint32_t encoding)

◆ mem8_imm()

intx_t dart::CInstr::mem8_imm ( )
inline

Definition at line 1512 of file constants_riscv.h.

1512{ return DecodeCMem8Imm(encoding_); }
intx_t DecodeCMem8Imm(uint32_t encoding)

◆ opcode()

COpcode dart::CInstr::opcode ( ) const
inline

Definition at line 1492 of file constants_riscv.h.

1492{ return COpcode(encoding_ & C_OP_MASK); }

◆ rd()

Register dart::CInstr::rd ( ) const
inline

Definition at line 1494 of file constants_riscv.h.

1494{ return DecodeCRd(encoding_); }

◆ rdp()

Register dart::CInstr::rdp ( ) const
inline

Definition at line 1497 of file constants_riscv.h.

1497{ return DecodeCRdp(encoding_); }

◆ rs1()

Register dart::CInstr::rs1 ( ) const
inline

Definition at line 1495 of file constants_riscv.h.

1495{ return DecodeCRd(encoding_); }

◆ rs1p()

Register dart::CInstr::rs1p ( ) const
inline

Definition at line 1498 of file constants_riscv.h.

1498{ return DecodeCRs1p(encoding_); }

◆ rs2()

Register dart::CInstr::rs2 ( ) const
inline

Definition at line 1496 of file constants_riscv.h.

1496{ return DecodeCRs2(encoding_); }

◆ rs2p()

Register dart::CInstr::rs2p ( ) const
inline

Definition at line 1499 of file constants_riscv.h.

1499{ return DecodeCRs2p(encoding_); }

◆ spload4_imm()

intx_t dart::CInstr::spload4_imm ( )
inline

Definition at line 1507 of file constants_riscv.h.

1507{ return DecodeCSPLoad4Imm(encoding_); }
intx_t DecodeCSPLoad4Imm(uint32_t encoding)

◆ spload8_imm()

intx_t dart::CInstr::spload8_imm ( )
inline

Definition at line 1508 of file constants_riscv.h.

1508{ return DecodeCSPLoad8Imm(encoding_); }
intx_t DecodeCSPLoad8Imm(uint32_t encoding)

◆ spstore4_imm()

intx_t dart::CInstr::spstore4_imm ( )
inline

Definition at line 1509 of file constants_riscv.h.

1509{ return DecodeCSPStore4Imm(encoding_); }
intx_t DecodeCSPStore4Imm(uint32_t encoding)

◆ spstore8_imm()

intx_t dart::CInstr::spstore8_imm ( )
inline

Definition at line 1510 of file constants_riscv.h.

1510{ return DecodeCSPStore8Imm(encoding_); }
intx_t DecodeCSPStore8Imm(uint32_t encoding)

◆ u_imm()

intx_t dart::CInstr::u_imm ( )
inline

Definition at line 1516 of file constants_riscv.h.

1516{ return DecodeCUImm(encoding_); }
intx_t DecodeCUImm(uint32_t encoding)

Member Data Documentation

◆ kInstrSize

constexpr uint32_t dart::CInstr::kInstrSize = 2
staticconstexpr

Definition at line 1489 of file constants_riscv.h.


The documentation for this class was generated from the following file: