Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / mini / jit.h
index ec77d70b566e0495f7aa8b729e6cf053bb7d3777..3a91c13f0d56369aeee04453a39dfd3e1e577514 100644 (file)
@@ -57,12 +57,21 @@ typedef enum {
        MONO_AOT_MODE_LLVMONLY,
        /* Uses Interpreter, JIT is disabled and not allowed,
         * equivalent to "--full-aot --interpreter" */
-       MONO_AOT_MODE_INTERP
+       MONO_AOT_MODE_INTERP,
+       /* Same as INTERP, but use only llvm compiled code */
+       MONO_AOT_MODE_INTERP_LLVMONLY,
 } MonoAotMode;
 
 MONO_API void
 mono_jit_set_aot_mode      (MonoAotMode mode);
 
+/*
+ * Returns whether the runtime was invoked for the purpose of AOT-compiling an
+ * assembly, i.e. no managed code will run.
+ */
+MONO_API mono_bool
+mono_jit_aot_compiling (void);
+
 /* Allow embedders to decide wherther to actually obey breakpoint instructions
  * in specific methods (works for both break IL instructions and Debugger.Break ()
  * method calls).