mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
add lowlevel to inc/dec a data pointer
This commit is contained in:
parent
a61e7a696d
commit
cf54304cf4
13 changed files with 90 additions and 28 deletions
|
@ -1111,16 +1111,30 @@ trait Backend<'a> {
|
|||
|
||||
self.build_ptr_write(*sym, args[0], args[1], element_layout);
|
||||
}
|
||||
LowLevel::RefCountDec => self.build_fn_call(
|
||||
LowLevel::RefCountDecRcPtr => self.build_fn_call(
|
||||
sym,
|
||||
bitcode::UTILS_DECREF.to_string(),
|
||||
bitcode::UTILS_DECREF_RC_PTR.to_string(),
|
||||
args,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::RefCountInc => self.build_fn_call(
|
||||
LowLevel::RefCountIncRcPtr => self.build_fn_call(
|
||||
sym,
|
||||
bitcode::UTILS_INCREF.to_string(),
|
||||
bitcode::UTILS_INCREF_RC_PTR.to_string(),
|
||||
args,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::RefCountDecDataPtr => self.build_fn_call(
|
||||
sym,
|
||||
bitcode::UTILS_DECREF_DATA_PTR.to_string(),
|
||||
args,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::RefCountIncDataPtr => self.build_fn_call(
|
||||
sym,
|
||||
bitcode::UTILS_INCREF_DATA_PTR.to_string(),
|
||||
args,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue