CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CoordTranslateArg Struct Reference

Translated argument struct for CoordTranslator. More...

Collaboration diagram for CoordTranslateArg:
Collaboration graph
[legend]

Public Member Functions

Coordcoords ()
 Get pointer to trailing coords array.
 
const Coordcoords () const
 
std::span< CoordcoordsSpan ()
 Get span view of coords (requires coordsLength to be set first).
 
std::span< const CoordcoordsSpan () const
 

Static Public Member Functions

static size_t allocSize (size_t numCoords)
 

Public Attributes

size_t coordsLength
 
uint32_t yTranslation
 
uint32_t xTranslation
 

Detailed Description

Translated argument struct for CoordTranslator.

Memory layout (standard C struct ordering): ESI type: struct { x_translation: UInt(32), y_translation: UInt(32), coords: List<struct{x, y}> } becomes host struct: { coords_length (size_t, 8 bytes on 64-bit), y_translation (uint32_t), x_translation (uint32_t), coords[] } Note: Fields are in reverse order due to SV struct ordering. Note: size_t is used for list lengths, so this format is platform-dependent.

Definition at line 1592 of file esitester.cpp.

Member Function Documentation

◆ allocSize()

static size_t CoordTranslateArg::allocSize ( size_t  numCoords)
inlinestatic

Definition at line 1607 of file esitester.cpp.

Referenced by coordTranslateTest().

◆ coords() [1/2]

Coord * CoordTranslateArg::coords ( )
inline

Get pointer to trailing coords array.

Definition at line 1599 of file esitester.cpp.

Referenced by coordsSpan(), and coordsSpan().

◆ coords() [2/2]

const Coord * CoordTranslateArg::coords ( ) const
inline

Definition at line 1600 of file esitester.cpp.

◆ coordsSpan() [1/2]

std::span< Coord > CoordTranslateArg::coordsSpan ( )
inline

Get span view of coords (requires coordsLength to be set first).

Definition at line 1604 of file esitester.cpp.

References coords(), and coordsLength.

◆ coordsSpan() [2/2]

std::span< const Coord > CoordTranslateArg::coordsSpan ( ) const
inline

Definition at line 1605 of file esitester.cpp.

References coords(), and coordsLength.

Member Data Documentation

◆ coordsLength

size_t CoordTranslateArg::coordsLength

Definition at line 1593 of file esitester.cpp.

Referenced by coordsSpan(), coordsSpan(), and coordTranslateTest().

◆ xTranslation

uint32_t CoordTranslateArg::xTranslation

Definition at line 1595 of file esitester.cpp.

◆ yTranslation

uint32_t CoordTranslateArg::yTranslation

Definition at line 1594 of file esitester.cpp.


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