[llvm] [AMDGPU][Attributor] Add `ThinOrFullLTOPhase` as an argument (PR #123994)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 10:42:11 PDT 2025
================
@@ -86,6 +86,23 @@ enum class ThinOrFullLTOPhase {
FullLTOPostLink
};
+#ifndef NDEBUG
+static inline const char *to_string(ThinOrFullLTOPhase Phase) {
+ switch (Phase) {
+ case ThinOrFullLTOPhase::None:
+ return "None";
+ case ThinOrFullLTOPhase::ThinLTOPreLink:
+ return "ThinLTOPreLink";
+ case ThinOrFullLTOPhase::ThinLTOPostLink:
+ return "ThinLTOPostLink";
+ case ThinOrFullLTOPhase::FullLTOPreLink:
+ return "FullLTOPreLink";
+ case ThinOrFullLTOPhase::FullLTOPostLink:
+ return "FullLTOPostLink";
+ }
+}
----------------
arsenm wrote:
One of the compilers will complain, but I guess we can wait and see which one
https://github.com/llvm/llvm-project/pull/123994
More information about the llvm-commits
mailing list