Emit predefined macros for GPU family. e.g.
for GPU gfx9xx emit __GFX9__, etc.
Details
Details
- Reviewers
b-sumner tra arsenm - Commits
- rG559b8fc17ef6: [AMDGPU] emit macro __GFX9__ etc
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Basic/Targets/AMDGPU.cpp | ||
---|---|---|
414 | Without an example of the input we're dealing with here it was not obvious that the idea here is to convert gfx<XYY> -> __GFX<X>__. I'd change the comment a bit : e.g gfx901 ->__GFX9__, gfx1033 -> __GFX10__, etc. |
clang/lib/Basic/Targets/AMDGPU.cpp | ||
---|---|---|
414 | will do when committing |
Without an example of the input we're dealing with here it was not obvious that the idea here is to convert gfx<XYY> -> __GFX<X>__. I'd change the comment a bit : e.g gfx901 ->__GFX9__, gfx1033 -> __GFX10__, etc.