JITStruct

You can model C struct types by creating JITStruct and JITField instances, in either order:

  • By creating the fields, then the structure.
  • By creating the structure, then populating it with fields, typically to allow modelling self-referential structs.

Constructors

this
this()
this
this(gcc_jit_struct* agg)

Members

Functions

getStruct
gcc_jit_struct* getStruct()

Returns the internal gcc_jit_struct object.

setFields
void setFields(JITLocation loc, JITField[] fields)
void setFields(JITField[] fields)

Populate the fields of a formerly-opaque struct type. This can only be called once on a given struct type.

Inherited Members

From JITType

getType
gcc_jit_type* getType()

Returns the internal gcc_jit_type object.

pointerOf
JITType pointerOf()

Given type T, get type T*.

constOf
JITType constOf()

Given type T, get type const T.

volatileOf
JITType volatileOf()

Given type T, get type volatile T.

Meta