Allow `Target` to customize `device_type`

Currently, the TargetKind structure has device_type stored in it, and it is the device type used by any Target connected to this target kind. Target kind has a number of attributes that targets can modify to suite their needs. Since there can be multiple targets with very different properties instantiated from the same kind, it seems to make sense to allow Target to customize the device type as well.

This would help Hexagon for example, but could be useful for any target that wants to use the “llvm” kind without behaving strictly like a CPU (which is the current device type for the “llvm” kind).

Any thoughts?

1 Like

I have created PR12509 for this.