[llvm] [AMDGPU] Remove generic-hsa GPU name (PR #149526)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 05:36:45 PDT 2025


jayfoad wrote:

I guess I don't understand enough about the use case.

> We need a filler to use if -mcpu isn't used

Why, and/or why can't it just default to one of the real CPUs (like gfx600 or gfx700) instead of being something different and special?

> which also gets used as a dummy target that the faux-portable bitcode libraries use which has the minimal set of features.

Why can't we build them with an explicit -mcpu=generic{,-hsa} so we don't need extra code in AMDGPUTargetMachine to implement this? And/or why can't they use real CPUs like gfx600 or gfx700?

https://github.com/llvm/llvm-project/pull/149526


More information about the llvm-commits mailing list