From 6bf25f45a9b6bd2bf6bd4bf03f6b0d0e2839c33f Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Wed, 7 Oct 2020 17:01:18 +0800 Subject: [PATCH] [Tablegen][SubtargetEmitter] Print TuneCPU in Subtarget::ParseSubtargetFeatures Let user able to know which -tune-cpu are used now. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D88951 --- llvm/utils/TableGen/SubtargetEmitter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/SubtargetEmitter.cpp b/llvm/utils/TableGen/SubtargetEmitter.cpp index ae675dbe9106..66c54b1855c4 100644 --- a/llvm/utils/TableGen/SubtargetEmitter.cpp +++ b/llvm/utils/TableGen/SubtargetEmitter.cpp @@ -1700,7 +1700,8 @@ void SubtargetEmitter::ParseFeaturesFunction(raw_ostream &OS, OS << "Subtarget::ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, " << "StringRef FS) {\n" << " LLVM_DEBUG(dbgs() << \"\\nFeatures:\" << FS);\n" - << " LLVM_DEBUG(dbgs() << \"\\nCPU:\" << CPU << \"\\n\\n\");\n"; + << " LLVM_DEBUG(dbgs() << \"\\nCPU:\" << CPU);\n" + << " LLVM_DEBUG(dbgs() << \"\\nTuneCPU:\" << TuneCPU << \"\\n\\n\");\n"; if (Features.empty()) { OS << "}\n";