[clang] [Clang][HIP] Deprecate the AMDGCN_WAVEFRONT_SIZE macros (PR #112849)
Fabian Ritter via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 21 01:05:28 PDT 2024
================
@@ -26,8 +27,14 @@ class MacroBuilder {
MacroBuilder(raw_ostream &Output) : Out(Output) {}
/// Append a \#define line for macro of the form "\#define Name Value\n".
- void defineMacro(const Twine &Name, const Twine &Value = "1") {
+ /// If DeprecationMsg is provided, also append a pragma to deprecate the
+ /// defined macro.
+ void defineMacro(const Twine &Name, const Twine &Value = "1",
+ std::optional<Twine> DeprecationMsg = std::nullopt) {
----------------
ritter-x2a wrote:
Changed in a798615ab4608f1681b15a526bc898df3c12bfa3.
https://github.com/llvm/llvm-project/pull/112849
More information about the cfe-commits
mailing list