add a __type_switch
utility and use it the ptx generator
#3918
Loading
__type_switch
utility and use it the ptx generator
#3918