Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_term_t Struct Reference

#include <core.h>

Collaboration diagram for srn_term_t:
[legend]

Data Fields

srn_node_type_t type
 This type field is a bare number value that we split into a few ranges.
srn_metadata_t * metadata
void * data
 An opaque pointer that depending on the type might point to totally different type of data.
srn_fiber_mutex_t * lock
 Since multiple fibers can work on the same node at the same time, writers have to acquire the lock.

Detailed Description

Definition at line 192 of file core.h.

Field Documentation

◆ data

void* srn_term_t::data

An opaque pointer that depending on the type might point to totally different type of data.

Definition at line 209 of file core.h.

◆ lock

srn_fiber_mutex_t* srn_term_t::lock

Since multiple fibers can work on the same node at the same time, writers have to acquire the lock.

Definition at line 212 of file core.h.

◆ metadata

srn_metadata_t* srn_term_t::metadata

Definition at line 205 of file core.h.

◆ type

srn_node_type_t srn_term_t::type

This type field is a bare number value that we split into a few ranges.

Each range is dedicated to a certain level or better to say phase of the evaluation. For example:

And so on. Each layer/phase of the compiler that needs to walk/transform the graph can add its own range.

Definition at line 204 of file core.h.


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