@@ -133,7 +133,7 @@ def transform_decorator(builder: IRBuilder, dec: Decorator) -> None:
133133
134134 if decorated_func is not None :
135135 # Set the callable object representing the decorated function as a global.
136- builder .call_c (
136+ builder .primitive_op (
137137 dict_set_item_op ,
138138 [builder .load_globals_dict (), builder .load_str (dec .func .name ), decorated_func ],
139139 decorated_func .line ,
@@ -849,7 +849,7 @@ def generate_singledispatch_dispatch_function(
849849 dispatch_func_obj , "dispatch_cache" , dict_rprimitive , line
850850 )
851851 call_find_impl , use_cache , call_func = BasicBlock (), BasicBlock (), BasicBlock ()
852- get_result = builder .call_c (dict_get_method_with_none , [dispatch_cache , arg_type ], line )
852+ get_result = builder .primitive_op (dict_get_method_with_none , [dispatch_cache , arg_type ], line )
853853 is_not_none = builder .translate_is_op (get_result , builder .none_object (), "is not" , line )
854854 impl_to_use = Register (object_rprimitive )
855855 builder .add_bool_branch (is_not_none , use_cache , call_find_impl )
@@ -862,7 +862,7 @@ def generate_singledispatch_dispatch_function(
862862 find_impl = builder .load_module_attr_by_fullname ("functools._find_impl" , line )
863863 registry = load_singledispatch_registry (builder , dispatch_func_obj , line )
864864 uncached_impl = builder .py_call (find_impl , [arg_type , registry ], line )
865- builder .call_c (dict_set_item_op , [dispatch_cache , arg_type , uncached_impl ], line )
865+ builder .primitive_op (dict_set_item_op , [dispatch_cache , arg_type , uncached_impl ], line )
866866 builder .assign (impl_to_use , uncached_impl , line )
867867 builder .goto (call_func )
868868
@@ -1039,7 +1039,7 @@ def maybe_insert_into_registry_dict(builder: IRBuilder, fitem: FuncDef) -> None:
10391039 registry = load_singledispatch_registry (builder , dispatch_func_obj , line )
10401040 for typ in types :
10411041 loaded_type = load_type (builder , typ , line )
1042- builder .call_c (dict_set_item_op , [registry , loaded_type , to_insert ], line )
1042+ builder .primitive_op (dict_set_item_op , [registry , loaded_type , to_insert ], line )
10431043 dispatch_cache = builder .builder .get_attr (
10441044 dispatch_func_obj , "dispatch_cache" , dict_rprimitive , line
10451045 )
0 commit comments