[llvm] [NFC][Doc] Fix typo in new pass manager snippet (PR #87765)
Jakub Chlanda via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 5 03:33:32 PDT 2024
https://github.com/jchlanda created https://github.com/llvm/llvm-project/pull/87765
Add missing closing parenthesis and re-flow the snippet to what clang format would generate.
>From ea007ae1c0318a4257c0574f9e9865e3de91404d Mon Sep 17 00:00:00 2001
From: Jakub Chlanda <jakub at codeplay.com>
Date: Fri, 5 Apr 2024 10:31:17 +0000
Subject: [PATCH] [NFC][Doc] Fix typo in new pass manager snippet
Add missing closing parenthesis and re-flow the snippet to what clang
format would generate.
---
llvm/docs/NewPassManager.rst | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/llvm/docs/NewPassManager.rst b/llvm/docs/NewPassManager.rst
index 4554d800437548..b75ab918fda0f3 100644
--- a/llvm/docs/NewPassManager.rst
+++ b/llvm/docs/NewPassManager.rst
@@ -162,10 +162,10 @@ certain parts of the pipeline. For example,
.. code-block:: c++
PassBuilder PB;
- PB.registerPipelineStartEPCallback([&](ModulePassManager &MPM,
- PassBuilder::OptimizationLevel Level) {
- MPM.addPass(FooPass());
- };
+ PB.registerPipelineStartEPCallback(
+ [&](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) {
+ MPM.addPass(FooPass());
+ });
will add ``FooPass`` near the very beginning of the pipeline for pass
managers created by that ``PassBuilder``. See the documentation for
More information about the llvm-commits
mailing list