Add comment to --inst-debug-printf option (#5466)

This commit is contained in:
Spencer Fricke 2023-11-15 03:00:54 +09:00 committed by GitHub
parent f43c464d53
commit 8ee3ae5244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,6 +446,11 @@ bool Optimizer::RegisterPassFromFlag(const std::string& flag) {
} else if (pass_name == "relax-float-ops") { } else if (pass_name == "relax-float-ops") {
RegisterPass(CreateRelaxFloatOpsPass()); RegisterPass(CreateRelaxFloatOpsPass());
} else if (pass_name == "inst-debug-printf") { } else if (pass_name == "inst-debug-printf") {
// This private option is not for user consumption.
// It is here to assist in debugging and fixing the debug printf
// instrumentation pass.
// For users who wish to utilize debug printf, see the white paper at
// https://www.lunarg.com/wp-content/uploads/2021/08/Using-Debug-Printf-02August2021.pdf
RegisterPass(CreateInstDebugPrintfPass(7, 23)); RegisterPass(CreateInstDebugPrintfPass(7, 23));
} else if (pass_name == "simplify-instructions") { } else if (pass_name == "simplify-instructions") {
RegisterPass(CreateSimplificationPass()); RegisterPass(CreateSimplificationPass());