16#ifndef CIRCT_DIALECT_ARC_RUNTIME_IRINTERFACE_H
17#define CIRCT_DIALECT_ARC_RUNTIME_IRINTERFACE_H
22#ifndef ARC_RUNTIME_JIT_BIND
29#define ARC_IR_EXPORT extern "C" __declspec(dllexport)
31#define ARC_IR_EXPORT extern "C" __attribute__((visibility("default")))
42#define ARC_IR_EXPORT extern "C"
44#define ARC_IR_EXPORT extern "C" __attribute__((visibility("hidden")))
ARC_IR_EXPORT uint8_t * arcRuntimeIR_allocInstance(const ArcRuntimeModelInfo *model, const char *args)
Allocate and initialize the state for a new instance of the given hardware model.
ARC_IR_EXPORT void arcRuntimeIR_deleteInstance(uint8_t *modelState)
Destroy and deallocate the state of a model instance.
ARC_IR_EXPORT void arcRuntimeIR_onEval(uint8_t *modelState)
Pre-Eval hook of the runtime library.
ARC_IR_EXPORT uint64_t * arcRuntimeIR_swapTraceBuffer(const uint8_t *modelState)
Release the active trace buffer and request an empty new buffer.
ARC_IR_EXPORT void arcRuntimeIR_format(const circt::arc::runtime::FmtDescriptor *fmt,...)
Prints a formatted string to stdout.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Static information for a compiled hardware model, generated by the MLIR lowering.
A format descriptor, to be given to arcRuntimeFormat.