aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index 5073ffaceb..9b4fa6d36c 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1634,6 +1634,7 @@ struct CodeGen {
LLVMValueRef coro_free_fn_val;
LLVMValueRef coro_resume_fn_val;
LLVMValueRef coro_save_fn_val;
+ LLVMValueRef coro_alloc_helper_fn_val;
bool error_during_imports;
const char **clang_argv;
@@ -2004,6 +2005,7 @@ enum IrInstructionId {
IrInstructionIdCoroFree,
IrInstructionIdCoroResume,
IrInstructionIdCoroSave,
+ IrInstructionIdCoroAllocHelper,
};
struct IrInstruction {
@@ -2913,6 +2915,13 @@ struct IrInstructionCoroSave {
IrInstruction *coro_handle;
};
+struct IrInstructionCoroAllocHelper {
+ IrInstruction base;
+
+ IrInstruction *alloc_fn;
+ IrInstruction *coro_size;
+};
+
static const size_t slice_ptr_index = 0;
static const size_t slice_len_index = 1;