[llvm] [AMDGPU][Attributor] Add `ThinOrFullLTOPhase` as an argument (PR #123994)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri May 2 10:57:53 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";
+ }
+}
----------------
shiltian wrote:
a4e9cfd117301b662fb3cee52ce3762c525917d3
https://github.com/llvm/llvm-project/pull/123994
More information about the llvm-commits
mailing list