def gen_arg_type_qual(fn):
 mod = fn.module
 fnty = fn.type.pointee
 consts = [lc.MetaDataString.get(mod, '') for _ in fnty.args]
 name = lc.MetaDataString.get(mod, 'kernel_arg_type_qual')
 return lc.MetaData.get(mod, ([name] + consts))

def gen_arg_type_qual ( fn ) : mod = fn . module fnty = fn . type . pointee consts = [ lc . MetaDataString . get ( mod , '' ) for _ in fnty . args ] name = lc . MetaDataString . get ( mod , 'kernel_arg_type_qual' ) return lc . MetaData . get ( mod , ( [ name ] + consts ) )
generate kernel_arg_type_qual metadata .