[RFC] Proposal to add HG (T-Head General-compute) as a first-class language

Hi everyone,

I’d like to propose adding HG as a first-class language in CMake, similar to CUDA and HIP. Looking for feedback before submitting a formal MR.

I am from T-Head Semiconductor ( https://www.t-head.cn ), a subsidiary of Alibaba Group. We developed an AI chip (PPU, ELF EM_PPU=270) with a complete software stack including a dedicated compiler `hgcc`.

HG (T-Head General-compute) is the programming language for our PPU architecture:
- Independent compiler driver: `hgcc`
- Dedicated source file extension: `.hg` (single-source, host+device)
- Own annotation system, with CUDA syntax compatibility
- Architecture-specific flags: `-march=ppu_xxx`

We have already implemented CMake modules internally covering Makefile and Ninja generators on Linux, with compiler detection, compilation, linking, and architecture handling. Windows/VS support isn’t implemented yet. We are prepared to maintain the integration long-term if the community finds this acceptable, and are happy to adapt our implementation to CMake conventions.

Any feedback from maintainers would be greatly appreciated.

Thanks,
Jimmy.HJ
T-Head Semiconductor