jit_codegen.c 414 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (C) 2021 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #include "jit_compiler.h"
  6. #include "jit_codegen.h"
  7. bool
  8. jit_pass_lower_cg(JitCompContext *cc)
  9. {
  10. return jit_codegen_lower(cc);
  11. }
  12. bool
  13. jit_pass_codegen(JitCompContext *cc)
  14. {
  15. if (!jit_annl_enable_jitted_addr(cc))
  16. return false;
  17. return jit_codegen_gen_native(cc);
  18. }