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 1297c1125f9c284e0cc0f2bf50d4b7ba519f7309 
f88945b08138e01601121bcdf4dd4893bed21a90 --extensions cpp,h -- 
clang/lib/CodeGen/CGException.cpp clang/lib/CodeGen/MicrosoftCXXABI.cpp 
llvm/include/llvm/IR/BasicBlock.h 
llvm/include/llvm/Transforms/Utils/Instrumentation.h 
llvm/lib/Analysis/Loads.cpp llvm/lib/Analysis/LoopNestAnalysis.cpp 
llvm/lib/Analysis/MustExecute.cpp llvm/lib/Analysis/ValueTracking.cpp 
llvm/lib/CodeGen/AsmPrinter/WinException.cpp 
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp llvm/lib/CodeGen/GlobalMerge.cpp 
llvm/lib/CodeGen/MachineFunction.cpp llvm/lib/CodeGen/SelectOptimize.cpp 
llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp 
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 
llvm/lib/CodeGen/WasmEHPrepare.cpp llvm/lib/CodeGen/WinEHPrepare.cpp 
llvm/lib/IR/EHPersonalities.cpp llvm/lib/IR/Instructions.cpp 
llvm/lib/IR/Verifier.cpp llvm/lib/Target/BPF/BPFAdjustOpt.cpp 
llvm/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 
llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 
llvm/lib/Target/X86/X86WinEHState.cpp 
llvm/lib/Transforms/Coroutines/MaterializationUtils.cpp 
llvm/lib/Transforms/IPO/IROutliner.cpp 
llvm/lib/Transforms/IPO/PartialInlining.cpp 
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp 
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp 
llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp 
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp 
llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp 
llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp 
llvm/lib/Transforms/ObjCARC/ObjCARC.cpp 
llvm/lib/Transforms/ObjCARC/ObjCARCContract.cpp 
llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp llvm/lib/Transforms/Scalar/GVN.cpp 
llvm/lib/Transforms/Scalar/GVNSink.cpp llvm/lib/Transforms/Scalar/LICM.cpp 
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp 
llvm/lib/Transforms/Scalar/LoopInterchange.cpp 
llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp 
llvm/lib/Transforms/Scalar/SCCP.cpp 
llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp 
llvm/lib/Transforms/Utils/CodeExtractor.cpp 
llvm/lib/Transforms/Utils/InlineFunction.cpp 
llvm/lib/Transforms/Utils/Local.cpp llvm/lib/Transforms/Utils/LoopSimplify.cpp 
llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp 
llvm/lib/Transforms/Utils/MoveAutoInit.cpp 
llvm/lib/Transforms/Utils/SSAUpdater.cpp 
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp 
llvm/lib/Transforms/Vectorize/VPlan.cpp 
llvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp 
llvm/unittests/Analysis/MemorySSATest.cpp 
llvm/unittests/Analysis/ProfileSummaryInfoTest.cpp 
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp 
llvm/unittests/IR/DebugInfoTest.cpp llvm/unittests/IR/InstructionsTest.cpp 
llvm/unittests/Transforms/Scalar/LICMTest.cpp 
polly/lib/CodeGen/BlockGenerators.cpp polly/lib/CodeGen/LoopGenerators.cpp 
polly/lib/Transform/MaximalStaticExpansion.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git 
a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp 
b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
index 3f410002f4..4131f71bb5 100644
--- a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
@@ -760,9 +760,7 @@ void NumericalStabilitySanitizer::createShadowArguments(
       }))
     return;
 
-  IRBuilder<> Builder(
-      &F.getEntryBlock(),
-      F.getEntryBlock().getFirstNonPHIIt());
+  IRBuilder<> Builder(&F.getEntryBlock(), 
F.getEntryBlock().getFirstNonPHIIt());
   // The function has shadow args if the shadow args tag matches the function
   // address.
   Value *HasShadowArgs = Builder.CreateICmpEQ(
diff --git a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp 
b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
index c3d094a325..7deaac5e59 100644
--- a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
@@ -479,9 +479,8 @@ static bool isTsanAtomic(const Instruction *I) {
 }
 
 void ThreadSanitizer::InsertRuntimeIgnores(Function &F) {
-  InstrumentationIRBuilder IRB(
-      &F.getEntryBlock(),
-      F.getEntryBlock().getFirstNonPHIIt());
+  InstrumentationIRBuilder IRB(&F.getEntryBlock(),
+                               F.getEntryBlock().getFirstNonPHIIt());
   IRB.CreateCall(TsanIgnoreBegin);
   EscapeEnumerator EE(F, "tsan_ignore_cleanup", ClHandleCxxExceptions);
   while (IRBuilder<> *AtExit = EE.Next()) {
@@ -571,9 +570,8 @@ bool ThreadSanitizer::sanitizeFunction(Function &F,
 
   // Instrument function entry/exit points if there were instrumented accesses.
   if ((Res || HasCalls) && ClInstrumentFuncEntryExit) {
-    InstrumentationIRBuilder IRB(
-        &F.getEntryBlock(),
-        F.getEntryBlock().getFirstNonPHIIt());
+    InstrumentationIRBuilder IRB(&F.getEntryBlock(),
+                                 F.getEntryBlock().getFirstNonPHIIt());
     Value *ReturnAddress =
         IRB.CreateIntrinsic(Intrinsic::returnaddress, {}, IRB.getInt32(0));
     IRB.CreateCall(TsanFuncEntry, ReturnAddress);
diff --git a/llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp 
b/llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
index 77891de004..dbab56a699 100644
--- a/llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
+++ b/llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
@@ -736,18 +736,16 @@ static void createMemMoveLoopKnownSize(Instruction 
*InsertBefore,
     // the same way, except that we change the IRBuilder insert point for each
     // load/store pair so that each one is inserted before the previous one
     // instead of after it.
-    IRBuilder<> BwdResBuilder(
-        CopyBackwardsBB,
-        CopyBackwardsBB->getFirstNonPHIIt());
+    IRBuilder<> BwdResBuilder(CopyBackwardsBB,
+                              CopyBackwardsBB->getFirstNonPHIIt());
     SmallVector<Type *, 5> RemainingOps;
     TTI.getMemcpyLoopResidualLoweringType(RemainingOps, Ctx, RemainingBytes,
                                           SrcAS, DstAS, PartSrcAlign,
                                           PartDstAlign);
     for (auto *OpTy : RemainingOps) {
       // reverse the order of the emitted operations
-      BwdResBuilder.SetInsertPoint(
-          CopyBackwardsBB,
-          CopyBackwardsBB->getFirstNonPHIIt());
+      BwdResBuilder.SetInsertPoint(CopyBackwardsBB,
+                                   CopyBackwardsBB->getFirstNonPHIIt());
       GenerateResidualLdStPair(OpTy, BwdResBuilder, BytesCopied);
     }
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/123737
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to