CIRCT 23.0.0git
Loading...
Searching...
No Matches
Functions
test_codegen.cpp File Reference
#include "test_codegen/CallServiceCallback.h"
#include "test_codegen/CallbackWindowedList.h"
#include "test_codegen/ChannelWindowedListRead.h"
#include "test_codegen/ChannelWindowedListWrite.h"
#include "test_codegen/CustomServiceDeclChannel.h"
#include "test_codegen/IndexedFuncGroup.h"
#include "test_codegen/MmioReadWrite.h"
#include "test_codegen/TelemetryMetric.h"
#include "test_codegen/TypedFuncArrayResult.h"
#include "test_codegen/TypedFuncMultiArg.h"
#include "test_codegen/TypedFuncNestedStruct.h"
#include "test_codegen/TypedFuncStruct.h"
#include "test_codegen/TypedFuncSubByteSigned.h"
#include "test_codegen/TypedFuncVoidArg.h"
#include "test_codegen/TypedFuncVoidResult.h"
#include "test_codegen/TypedFuncWindowedList.h"
#include "test_codegen/TypedReadChannelStruct.h"
#include "test_codegen/TypedWriteChannelByte.h"
#include "probe_runner.h"
#include "esi/Accelerator.h"
#include "esi/Manifest.h"
#include "esi/Services.h"
#include "esi/TypedPorts.h"
#include <atomic>
#include <chrono>
#include <cstdint>
#include <iostream>
#include <map>
#include <mutex>
#include <stdexcept>
#include <string>
#include <thread>
#include <vector>
Include dependency graph for test_codegen.cpp:

Go to the source code of this file.

Functions

static esi::HWModulefindInst (Accelerator *accel, const char *appidName)
 
static int runTypedFuncMultiArg (Accelerator *accel)
 
static int runTypedFuncVoidArg (Accelerator *accel)
 
static int runTypedFuncVoidResult (Accelerator *accel)
 
static int runCallServiceCallback (Accelerator *accel)
 
static int runTypedReadChannelStruct (Accelerator *accel)
 
static int runTypedWriteChannelByte (Accelerator *accel)
 
static int runMmioReadWrite (Accelerator *accel)
 
static int runTelemetryMetric (Accelerator *accel)
 
static int runIndexedFuncGroup (Accelerator *accel)
 
static int runCustomServiceDeclChannel (Accelerator *accel, uint32_t idx)
 
static int runCustomServiceDeclChannel0 (Accelerator *accel)
 
static int runCustomServiceDeclChannel1 (Accelerator *accel)
 
static int runTypedFuncStruct (Accelerator *accel)
 
static int runTypedFuncNestedStruct (Accelerator *accel)
 
static int runTypedFuncSubByteSigned (Accelerator *accel)
 
static int runTypedFuncArrayResult (Accelerator *accel)
 
static int runTypedFuncWindowedList (Accelerator *accel)
 
static int runChannelWindowedListRead (Accelerator *accel)
 
static int runChannelWindowedListWrite (Accelerator *accel)
 
static int runCallbackWindowedList (Accelerator *accel)
 
 ESI_PROBE_REGISTRY ("test-codegen", "Per-port-kind coverage tests for ESI runtime + facade codegen. " "Run a single probe with --probe NAME or run all probes (in registry " "order) by omitting the flag.", {"typed_func_multi_arg", &runTypedFuncMultiArg}, {"typed_func_void_arg", &runTypedFuncVoidArg}, {"typed_func_void_result", &runTypedFuncVoidResult}, {"call_service_callback", &runCallServiceCallback}, {"typed_read_channel_struct", &runTypedReadChannelStruct}, {"typed_write_channel_byte", &runTypedWriteChannelByte}, {"mmio_read_write", &runMmioReadWrite}, {"telemetry_metric", &runTelemetryMetric}, {"indexed_func_group", &runIndexedFuncGroup}, {"custom_service_decl_channel_0", &runCustomServiceDeclChannel0}, {"custom_service_decl_channel_1", &runCustomServiceDeclChannel1}, {"typed_func_struct", &runTypedFuncStruct}, {"typed_func_nested_struct", &runTypedFuncNestedStruct}, {"typed_func_subbyte_signed", &runTypedFuncSubByteSigned}, {"typed_func_array_result", &runTypedFuncArrayResult}, {"typed_func_windowed_list", &runTypedFuncWindowedList}, {"channel_windowed_list_read", &runChannelWindowedListRead}, {"channel_windowed_list_write", &runChannelWindowedListWrite}, {"callback_windowed_list", &runCallbackWindowedList},)
 

Function Documentation

◆ ESI_PROBE_REGISTRY()

ESI_PROBE_REGISTRY ( "test-codegen"  ,
"Per-port-kind coverage tests for ESI runtime + facade codegen. " "Run a single probe with --probe NAME or run all probes (in registry " "order) by omitting the flag."  ,
{"typed_func_multi_arg", &runTypedFuncMultiArg ,
{"typed_func_void_arg", &runTypedFuncVoidArg ,
{"typed_func_void_result", &runTypedFuncVoidResult ,
{"call_service_callback", &runCallServiceCallback ,
{"typed_read_channel_struct", &runTypedReadChannelStruct ,
{"typed_write_channel_byte", &runTypedWriteChannelByte ,
{"mmio_read_write", &runMmioReadWrite ,
{"telemetry_metric", &runTelemetryMetric ,
{"indexed_func_group", &runIndexedFuncGroup ,
{"custom_service_decl_channel_0", &runCustomServiceDeclChannel0 ,
{"custom_service_decl_channel_1", &runCustomServiceDeclChannel1 ,
{"typed_func_struct", &runTypedFuncStruct ,
{"typed_func_nested_struct", &runTypedFuncNestedStruct ,
{"typed_func_subbyte_signed", &runTypedFuncSubByteSigned ,
{"typed_func_array_result", &runTypedFuncArrayResult ,
{"typed_func_windowed_list", &runTypedFuncWindowedList ,
{"channel_windowed_list_read", &runChannelWindowedListRead ,
{"channel_windowed_list_write", &runChannelWindowedListWrite ,
{"callback_windowed_list", &runCallbackWindowedList  
)

◆ findInst()

static esi::HWModule * findInst ( Accelerator accel,
const char *  appidName 
)
static

◆ runCallbackWindowedList()

static int runCallbackWindowedList ( Accelerator accel)
static

Definition at line 558 of file test_codegen.cpp.

References findInst(), and esi::toHex().

◆ runCallServiceCallback()

static int runCallServiceCallback ( Accelerator accel)
static

Definition at line 111 of file test_codegen.cpp.

References findInst(), and esi::toHex().

◆ runChannelWindowedListRead()

static int runChannelWindowedListRead ( Accelerator accel)
static

Definition at line 474 of file test_codegen.cpp.

References findInst(), and esi::toHex().

◆ runChannelWindowedListWrite()

static int runChannelWindowedListWrite ( Accelerator accel)
static

Definition at line 520 of file test_codegen.cpp.

References findInst(), and esi::toHex().

◆ runCustomServiceDeclChannel()

static int runCustomServiceDeclChannel ( Accelerator accel,
uint32_t  idx 
)
static

◆ runCustomServiceDeclChannel0()

static int runCustomServiceDeclChannel0 ( Accelerator accel)
static

Definition at line 328 of file test_codegen.cpp.

References runCustomServiceDeclChannel().

◆ runCustomServiceDeclChannel1()

static int runCustomServiceDeclChannel1 ( Accelerator accel)
static

Definition at line 332 of file test_codegen.cpp.

References runCustomServiceDeclChannel().

◆ runIndexedFuncGroup()

static int runIndexedFuncGroup ( Accelerator accel)
static

Definition at line 267 of file test_codegen.cpp.

References findInst().

◆ runMmioReadWrite()

static int runMmioReadWrite ( Accelerator accel)
static

Definition at line 227 of file test_codegen.cpp.

References findInst(), and esi::toHex().

◆ runTelemetryMetric()

static int runTelemetryMetric ( Accelerator accel)
static

Definition at line 246 of file test_codegen.cpp.

References findInst().

◆ runTypedFuncArrayResult()

static int runTypedFuncArrayResult ( Accelerator accel)
static

Definition at line 412 of file test_codegen.cpp.

References findInst().

◆ runTypedFuncMultiArg()

static int runTypedFuncMultiArg ( Accelerator accel)
static

Definition at line 62 of file test_codegen.cpp.

References findInst().

Referenced by ESI_PROBE_REGISTRY().

◆ runTypedFuncNestedStruct()

static int runTypedFuncNestedStruct ( Accelerator accel)
static

Definition at line 359 of file test_codegen.cpp.

References findInst().

◆ runTypedFuncStruct()

static int runTypedFuncStruct ( Accelerator accel)
static

Definition at line 340 of file test_codegen.cpp.

References findInst().

◆ runTypedFuncSubByteSigned()

static int runTypedFuncSubByteSigned ( Accelerator accel)
static

Definition at line 392 of file test_codegen.cpp.

References findInst().

◆ runTypedFuncVoidArg()

static int runTypedFuncVoidArg ( Accelerator accel)
static

Definition at line 80 of file test_codegen.cpp.

References findInst(), and esi::toHex().

◆ runTypedFuncVoidResult()

static int runTypedFuncVoidResult ( Accelerator accel)
static

Definition at line 95 of file test_codegen.cpp.

References findInst().

◆ runTypedFuncWindowedList()

static int runTypedFuncWindowedList ( Accelerator accel)
static

Definition at line 437 of file test_codegen.cpp.

References findInst().

◆ runTypedReadChannelStruct()

static int runTypedReadChannelStruct ( Accelerator accel)
static

Definition at line 157 of file test_codegen.cpp.

References findInst().

◆ runTypedWriteChannelByte()

static int runTypedWriteChannelByte ( Accelerator accel)
static

Definition at line 187 of file test_codegen.cpp.

References findInst(), and esi::toHex().