code: func flagType(name string) string {
  	switch name {
  	case "cuCtxCreate", "cuDevicePrimaryCtxSetFlags":
  		return "ContextFlags"
  	case "cuLinkCreate":
  		panic("Unhandled")
  	case "cuStreamCreate", "cuStreamCreateWithPriority":
  		return "StreamFlags"
  	case "cuEventCreate":
  		return "EventFlags"
  	case "cuTexRefSetFlags":
  		return "TexRefFlags"
  	default:
  		log.Printf("Unreachable flagtype %v", name)
  	}
  	panic("Unreachable")
  }
docs: // flag type returns the correct flag type for the Go signatures