[llvm] [Pass] Add hyphen to some pass names (PR #74287)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 02:14:36 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff f827b953ab3206294530685b8b821f1a60f3836c 12c06557819f159babe9e3ade9e5a749714f1ce6 -- llvm/lib/Analysis/InstCount.cpp llvm/lib/Analysis/PostDominators.cpp llvm/lib/CodeGen/CallBrPrepare.cpp llvm/lib/CodeGen/DwarfEHPrepare.cpp llvm/lib/CodeGen/MIRVRegNamerUtils.h llvm/lib/Transforms/Scalar/ADCE.cpp llvm/lib/Transforms/Scalar/ConstantHoisting.cpp llvm/lib/Transforms/Scalar/FlattenCFGPass.cpp llvm/lib/Transforms/Scalar/LowerAtomicPass.cpp llvm/lib/Transforms/Utils/FlattenCFG.cpp llvm/lib/Transforms/Utils/LowerAtomic.cpp llvm/lib/Transforms/Utils/LowerInvoke.cpp llvm/tools/opt/opt.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/CallBrPrepare.cpp b/llvm/lib/CodeGen/CallBrPrepare.cpp
index 0478c08bb2..b6fe0fa00f 100644
--- a/llvm/lib/CodeGen/CallBrPrepare.cpp
+++ b/llvm/lib/CodeGen/CallBrPrepare.cpp
@@ -94,9 +94,11 @@ PreservedAnalyses CallBrPreparePass::run(Function &Fn,
}
char CallBrPrepare::ID = 0;
-INITIALIZE_PASS_BEGIN(CallBrPrepare, "callbrprepare", "Prepare callbr", false, false)
+INITIALIZE_PASS_BEGIN(CallBrPrepare, "callbrprepare", "Prepare callbr", false,
+ false)
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
-INITIALIZE_PASS_END(CallBrPrepare, "callbrprepare", "Prepare callbr", false, false)
+INITIALIZE_PASS_END(CallBrPrepare, "callbrprepare", "Prepare callbr", false,
+ false)
FunctionPass *llvm::createCallBrPass() { return new CallBrPrepare(); }
diff --git a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
index 93ff6cb653..688445b740 100644
--- a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
@@ -83,12 +83,12 @@ static cl::opt<bool> ConstHoistWithBlockFrequency(
"chance to execute const materialization more frequently than "
"without hoisting."));
-static cl::opt<bool> ConstHoistGEP(
- "const-hoist-gep", cl::init(false), cl::Hidden,
- cl::desc("Try hoisting constant gep expressions"));
+static cl::opt<bool>
+ ConstHoistGEP("const-hoist-gep", cl::init(false), cl::Hidden,
+ cl::desc("Try hoisting constant gep expressions"));
-static cl::opt<unsigned>
-MinNumOfDependentToRebase("const-hoist-min-num-to-rebase",
+static cl::opt<unsigned> MinNumOfDependentToRebase(
+ "const-hoist-min-num-to-rebase",
cl::desc("Do not rebase if number of dependent constants of a Base is less "
"than this number."),
cl::init(0), cl::Hidden);
``````````
</details>
https://github.com/llvm/llvm-project/pull/74287
More information about the llvm-commits
mailing list