aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-05-12 17:35:15 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-05-12 17:35:15 -0400
commita6ae45145f5814963cfdff4e18c1f984729588b9 (patch)
treebeb939868cbd81adce8203aa007b889bb57f4f45 /src/all_types.hpp
parent4277762b742216d4dd44bfe7490947e69527fbc7 (diff)
downloadzig-a6ae45145f5814963cfdff4e18c1f984729588b9.tar.gz
zig-a6ae45145f5814963cfdff4e18c1f984729588b9.zip
add @newStackCall builtin function
See #1006
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index c1c6c9a1a5..dc61c8235f 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1340,6 +1340,7 @@ enum BuiltinFnId {
BuiltinFnIdOffsetOf,
BuiltinFnIdInlineCall,
BuiltinFnIdNoInlineCall,
+ BuiltinFnIdNewStackCall,
BuiltinFnIdTypeId,
BuiltinFnIdShlExact,
BuiltinFnIdShrExact,
@@ -1656,8 +1657,13 @@ struct CodeGen {
LLVMValueRef coro_alloc_helper_fn_val;
LLVMValueRef merge_err_ret_traces_fn_val;
LLVMValueRef add_error_return_trace_addr_fn_val;
+ LLVMValueRef stacksave_fn_val;
+ LLVMValueRef stackrestore_fn_val;
+ LLVMValueRef write_register_fn_val;
bool error_during_imports;
+ LLVMValueRef sp_md_node;
+
const char **clang_argv;
size_t clang_argv_len;
ZigList<const char *> lib_dirs;
@@ -2280,6 +2286,7 @@ struct IrInstructionCall {
bool is_async;
IrInstruction *async_allocator;
+ IrInstruction *new_stack;
};
struct IrInstructionConst {