This revision was automatically updated to reflect the committed changes.
yaxunl marked an inline comment as done.
Closed by commit rG559b8fc17ef6: [AMDGPU] emit macro __GFX9__ etc (authored by
yaxunl).
Herald added a project: clang.
Changed prior to commit:
https://reviews.llvm.org/D125909?vs=
yaxunl marked an inline comment as done.
yaxunl added inline comments.
Comment at: clang/lib/Basic/Targets/AMDGPU.cpp:414
+ assert(CanonName.startswith("gfx") && "Invalid amdgcn canonical name");
+ Builder.defineMacro(Twine("__") + Twine(CanonName.drop_back(2).upper())
tra accepted this revision.
tra added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/lib/Basic/Targets/AMDGPU.cpp:414
+ assert(CanonName.startswith("gfx") && "Invalid amdgcn canonical name");
+ Builder.defineMacro(Twine("__") + Twine
yaxunl created this revision.
yaxunl added reviewers: b-sumner, tra, arsenm.
Herald added subscribers: kosarev, kerbowa, t-tye, tpr, dstuttard, jvesely,
kzhuravl.
Herald added a project: All.
yaxunl requested review of this revision.
Herald added a subscriber: wdng.
Emit predefined macros for GPU