https://github.com/halide/Halide
Raw File
Tip revision: 027547f713f6a01c7b51cb59baa665219f89751d authored by Steven Johnson on 22 June 2023, 22:31:28 UTC
Backport #7650 to the release/16.x branch (#7653)
Tip revision: 027547f
module_aot_ref_count.cpp
#include "HalideRuntime.h"

/** \file Ahead of time compiled code reference counting support. */

/* The runtime makes calls to keep a reference count on the code
 * itself because some allocated data structures returned from the
 * runtime may contain function pointers back to the code. For ahead
 * of time compilation, this is not done because any needed reference
 * counting involves support from the hosting client application and
 * often it is not needed at all as the code is loaded for the
 * lifetime of a process. This file provides a nop implementation of
 * the use and release calls.
 */

extern "C" WEAK void halide_use_jit_module() {
}

extern "C" WEAK void halide_release_jit_module() {
}
back to top