Skip to content

Commit

Permalink
[Tablegen][SubtargetEmitter] Print TuneCPU in Subtarget::ParseSubtarg…
Browse files Browse the repository at this point in the history
…etFeatures

Let user able to know which -tune-cpu are used now.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D88951
  • Loading branch information
kito-cheng committed Oct 12, 2020
1 parent d784f74 commit 6bf25f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/utils/TableGen/SubtargetEmitter.cpp
Expand Up @@ -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";
Expand Down

0 comments on commit 6bf25f4

Please sign in to comment.