aot_emit_exception.h 571 B

123456789101112131415161718192021222324
  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_EXCEPTION_H_
  6. #define _AOT_EMIT_EXCEPTION_H_
  7. #include "aot_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. bool
  12. aot_emit_exception(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
  13. int32 exception_id, bool is_cond_br, LLVMValueRef cond_br_if,
  14. LLVMBasicBlockRef cond_br_else_block);
  15. #ifdef __cplusplus
  16. } /* end of extern "C" */
  17. #endif
  18. #endif /* end of _AOT_EMIT_EXCEPTION_H_ */