aot_emit_aot_file.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _AOT_EMIT_AOT_FILE_H_
  6. #define _AOT_EMIT_AOT_FILE_H_
  7. #include "aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. typedef struct AOTObjectData AOTObjectData;
  12. AOTObjectData *
  13. aot_obj_data_create(AOTCompContext *comp_ctx);
  14. void
  15. aot_obj_data_destroy(AOTObjectData *obj_data);
  16. uint32
  17. aot_get_aot_file_size(AOTCompContext *comp_ctx, AOTCompData *comp_data,
  18. AOTObjectData *obj_data);
  19. bool
  20. aot_emit_aot_file(AOTCompContext *comp_ctx, AOTCompData *comp_data,
  21. const char *file_name);
  22. uint8 *
  23. aot_emit_aot_file_buf(AOTCompContext *comp_ctx, AOTCompData *comp_data,
  24. uint32 *p_aot_file_size);
  25. bool
  26. aot_emit_aot_file_buf_ex(AOTCompContext *comp_ctx, AOTCompData *comp_data,
  27. AOTObjectData *obj_data, uint8 *aot_file_buf,
  28. uint32 aot_file_size);
  29. #ifdef __cplusplus
  30. } /* end of extern "C" */
  31. #endif
  32. #endif /* end of _AOT_EMIT_AOT_FILE_H_ */