#NEWLINE# def _fill_defaults( context , builder , sig , args , defaults ) : #NEWLINE# #INDENT# '\n    Assuming a homogenous signature (same type for result and all arguments),\n    fill in the *defaults* if missing from the arguments.\n    ' #NEWLINE# ty = sig . return_type #NEWLINE# llty = context . get_data_type ( ty ) #NEWLINE# args = ( tuple ( args ) + tuple ( ( ir . Constant ( llty , d ) for d in llty [ len ( args ) : ] ) ) ) #NEWLINE# sig = signature ( * ( ( ty , ) * ( len ( args ) + 1 ) ) ) #NEWLINE# return ( sig , args )