[llvm] 86a63b2 - [Metarenamer] Use 'inst' as default name for instructions
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 15 00:36:45 PST 2023
Author: Max Kazantsev
Date: 2023-02-15T15:35:25+07:00
New Revision: 86a63b2ae147e5a3edc39643783acfd39b059c92
URL: https://github.com/llvm/llvm-project/commit/86a63b2ae147e5a3edc39643783acfd39b059c92
DIFF: https://github.com/llvm/llvm-project/commit/86a63b2ae147e5a3edc39643783acfd39b059c92.diff
LOG: [Metarenamer] Use 'inst' as default name for instructions
Currently we use 'tmp', which is also a keyword for FileCheck. It leads to this
annoying warning whenever a script for auto-generation of checks is used.
It is especially annoying that it happens to every test affected by metarenamer.
Just use another prefix for metarenamed names to avoid this.
Differential Revision: https://reviews.llvm.org/D144001
Reviewed By: nikic
Added:
Modified:
llvm/lib/Transforms/Utils/MetaRenamer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/MetaRenamer.cpp b/llvm/lib/Transforms/Utils/MetaRenamer.cpp
index 0ea210671b933..0987fdc33fdd5 100644
--- a/llvm/lib/Transforms/Utils/MetaRenamer.cpp
+++ b/llvm/lib/Transforms/Utils/MetaRenamer.cpp
@@ -115,7 +115,7 @@ void MetaRename(Function &F) {
for (auto &I : BB)
if (!I.getType()->isVoidTy())
- I.setName("tmp");
+ I.setName("inst");
}
}
More information about the llvm-commits
mailing list