@@ -624,13 +624,13 @@ def update_jit_options(jit_options, parallel, config_flag):
624624 return jit_options
625625
626626
627- def sdc_overload (func , jit_options = {}, parallel = None , strict = True , inline = None ):
627+ def sdc_overload (func , jit_options = {}, parallel = None , strict = True , inline = None , prefer_literal = True ):
628628 jit_options = update_jit_options (jit_options , parallel , config_use_parallel_overloads )
629629
630630 if inline is None :
631631 inline = 'always' if config_inline_overloads else 'never'
632632
633- return overload (func , jit_options = jit_options , strict = strict , inline = inline )
633+ return overload (func , jit_options = jit_options , strict = strict , inline = inline , prefer_literal = prefer_literal )
634634
635635
636636def patched_register_jitable (* args , ** kwargs ):
@@ -666,19 +666,23 @@ def wrap(fn):
666666 return wrap (* args )
667667
668668
669- def sdc_overload_method (typ , name , jit_options = {}, parallel = None , strict = True , inline = None ):
669+ def sdc_overload_method (typ , name , jit_options = {}, parallel = None , strict = True , inline = None , prefer_literal = True ):
670670 jit_options = update_jit_options (jit_options , parallel , config_use_parallel_overloads )
671671
672672 if inline is None :
673673 inline = 'always' if config_inline_overloads else 'never'
674674
675- return overload_method (typ , name , jit_options = jit_options , strict = strict , inline = inline )
675+ return overload_method (
676+ typ , name , jit_options = jit_options , strict = strict , inline = inline , prefer_literal = prefer_literal
677+ )
676678
677679
678- def sdc_overload_attribute (typ , name , jit_options = {}, parallel = None , strict = True , inline = None ):
680+ def sdc_overload_attribute (typ , name , jit_options = {}, parallel = None , strict = True , inline = None , prefer_literal = True ):
679681 jit_options = update_jit_options (jit_options , parallel , config_use_parallel_overloads )
680682
681683 if inline is None :
682684 inline = 'always' if config_inline_overloads else 'never'
683685
684- return overload_attribute (typ , name , jit_options = jit_options , strict = strict , inline = inline )
686+ return overload_attribute (
687+ typ , name , jit_options = jit_options , strict = strict , inline = inline , prefer_literal = prefer_literal
688+ )
0 commit comments