forked from OSchip/llvm-project
[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
This commit is contained in:
parent
d784f74069
commit
6bf25f45a9
|
@ -1700,7 +1700,8 @@ void SubtargetEmitter::ParseFeaturesFunction(raw_ostream &OS,
|
||||||
OS << "Subtarget::ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, "
|
OS << "Subtarget::ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, "
|
||||||
<< "StringRef FS) {\n"
|
<< "StringRef FS) {\n"
|
||||||
<< " LLVM_DEBUG(dbgs() << \"\\nFeatures:\" << 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()) {
|
if (Features.empty()) {
|
||||||
OS << "}\n";
|
OS << "}\n";
|
||||||
|
|
Loading…
Reference in New Issue