We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f56d47 commit 8d2d679Copy full SHA for 8d2d679
llvm/lib/Passes/StandardInstrumentations.cpp
@@ -19,6 +19,7 @@
19
#include "llvm/Analysis/CallGraphSCCPass.h"
20
#include "llvm/Analysis/LazyCallGraph.h"
21
#include "llvm/Analysis/LoopInfo.h"
22
+#include "llvm/CodeGen/MachineFunction.h"
23
#include "llvm/IR/Constants.h"
24
#include "llvm/IR/Function.h"
25
#include "llvm/IR/Module.h"
@@ -222,6 +223,9 @@ std::string getIRName(Any IR) {
222
223
if (const auto **L = llvm::any_cast<const Loop *>(&IR))
224
return (*L)->getName().str();
225
226
+ if (const auto **MF = llvm::any_cast<const MachineFunction *>(&IR))
227
+ return (*MF)->getName().str();
228
+
229
llvm_unreachable("Unknown wrapped IR type");
230
}
231
0 commit comments