Add support for TargetRegistry and Triple