jit_codecache.h 483 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2021 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _JIT_CODE_CACHE_H_
  6. #define _JIT_CODE_CACHE_H_
  7. #include "bh_platform.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. jit_code_cache_init(uint32 code_cache_size);
  13. void
  14. jit_code_cache_destroy();
  15. void *
  16. jit_code_cache_alloc(uint32 size);
  17. void
  18. jit_code_cache_free(void *ptr);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* end of _JIT_CODE_CACHE_H_ */