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 origin/main HEAD --extensions cpp --
bolt/lib/Core/DynoStats.cpp bolt/lib/Passes/BinaryPasses.cpp
bolt/lib/Passes/Instrumentation.cpp bolt/lib/Passes/StokeInfo.cpp
bolt/lib/Profile/DataAggregator.cpp
bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
bolt/lib/Utils/CommandLineOpts.cpp bolt/tools/driver/llvm-bolt.cpp
bolt/tools/merge-fdata/merge-fdata.cpp clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/CGExpr.cpp clang/lib/Tooling/CommonOptionsParser.cpp
clang/tools/clang-diff/ClangDiff.cpp
clang/tools/clang-import-test/clang-import-test.cpp
clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
clang/tools/clang-refactor/ClangRefactor.cpp
llvm/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp
llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp llvm/lib/Analysis/IR2Vec.cpp
llvm/lib/CodeGen/BasicBlockMatchingAndInference.cpp
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp llvm/lib/CodeGen/MIR2Vec.cpp
llvm/lib/CodeGen/TargetPassConfig.cpp llvm/lib/IR/OptBisect.cpp
llvm/lib/Support/DebugCounter.cpp
llvm/lib/Target/Hexagon/HexagonGlobalScheduler.cpp
llvm/lib/Target/Mips/MipsSubtarget.cpp
llvm/lib/Target/SPIRV/SPIRVAuxDataHandler.cpp
llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
llvm/lib/Target/SPIRV/SPIRVSubtarget.cpp
llvm/lib/Target/SPIRV/SPIRVTargetMachine.cpp
llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/tools/llvm-cov/CodeCoverage.cpp llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp
llvm/tools/llvm-jitlink/llvm-jitlink.cpp llvm/tools/llvm-lto2/llvm-lto2.cpp
llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
llvm/tools/llvm-profgen/ProfileGenerator.cpp
llvm/tools/llvm-split/llvm-split.cpp llvm/tools/llvm-undname/llvm-undname.cpp
mlir/lib/Debug/DebugCounter.cpp polly/lib/Analysis/ScopInfo.cpp
polly/lib/CodeGen/LoopGenerators.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Core/DynoStats.cpp b/bolt/lib/Core/DynoStats.cpp
index 4a8f4e722..382b0ed47 100644
--- a/bolt/lib/Core/DynoStats.cpp
+++ b/bolt/lib/Core/DynoStats.cpp
@@ -31,11 +31,9 @@ namespace opts {
extern cl::OptionCategory BoltCategory;
static cl::opt<uint32_t>
-DynoStatsScale("dyno-stats-scale",
- cl::desc("scale to be applied while reporting dyno stats"),
- cl::init(1),
- cl::Hidden,
- cl::cat(BoltCategory));
+ DynoStatsScale("dyno-stats-scale",
+ cl::desc("scale to be applied while reporting dyno stats"),
+ cl::init(1), cl::Hidden, cl::cat(BoltCategory));
static cl::opt<uint32_t>
PrintDynoOpcodeStat("print-dyno-opcode-stats",
diff --git a/bolt/lib/Passes/StokeInfo.cpp b/bolt/lib/Passes/StokeInfo.cpp
index c3afe2177..e2e419ea8 100644
--- a/bolt/lib/Passes/StokeInfo.cpp
+++ b/bolt/lib/Passes/StokeInfo.cpp
@@ -24,9 +24,9 @@ namespace opts {
static cl::OptionCategory StokeOptCategory("STOKE pass options");
static cl::opt<std::string>
-StokeOutputDataFilename("stoke-out",
- cl::desc("output data (.csv) for Stoke's use"),
- cl::cat(StokeOptCategory));
+ StokeOutputDataFilename("stoke-out",
+ cl::desc("output data (.csv) for Stoke's use"),
+ cl::cat(StokeOptCategory));
}
namespace llvm {
diff --git a/bolt/lib/Profile/DataAggregator.cpp
b/bolt/lib/Profile/DataAggregator.cpp
index 94952e23a..9b8c08e9b 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -107,11 +107,9 @@ static cl::opt<bool> IgnoreInterruptLBR(
cl::init(true), cl::cat(AggregatorCategory));
static cl::opt<unsigned long long>
-MaxSamples("max-samples",
- cl::init(-1ULL),
- cl::desc("maximum number of samples to read from LBR profile"),
- cl::Hidden,
- cl::cat(AggregatorCategory));
+ MaxSamples("max-samples", cl::init(-1ULL),
+ cl::desc("maximum number of samples to read from LBR profile"),
+ cl::Hidden, cl::cat(AggregatorCategory));
static cl::opt<unsigned>
PerfDataJobs("perfdata-jobs",
diff --git a/bolt/lib/Utils/CommandLineOpts.cpp
b/bolt/lib/Utils/CommandLineOpts.cpp
index 52ed42899..c5fc07005 100644
--- a/bolt/lib/Utils/CommandLineOpts.cpp
+++ b/bolt/lib/Utils/CommandLineOpts.cpp
@@ -294,10 +294,8 @@ cl::opt<bool> LargeCodeModel(
cl::opt<bool> Lite("lite", cl::desc("skip processing of cold functions"),
cl::cat(BoltCategory));
-cl::opt<std::string>
-OutputFilename("o",
- cl::desc("<output file>"),
- cl::cat(BoltOutputCategory));
+cl::opt<std::string> OutputFilename("o", cl::desc("<output file>"),
+ cl::cat(BoltOutputCategory));
cl::list<std::string> PerfData("perfdata", cl::CommaSeparated,
cl::desc("<data file>"),
diff --git a/bolt/tools/driver/llvm-bolt.cpp b/bolt/tools/driver/llvm-bolt.cpp
index 11a31e9e4..56c04df1b 100644
--- a/bolt/tools/driver/llvm-bolt.cpp
+++ b/bolt/tools/driver/llvm-bolt.cpp
@@ -51,10 +51,8 @@ static cl::opt<std::string> InputFilename(cl::Positional,
cl::Required, cl::cat(BoltCategory),
cl::sub(cl::SubCommand::getAll()));
-static cl::opt<std::string>
-InputDataFilename("data",
- cl::desc("<data file>"),
- cl::cat(BoltCategory));
+static cl::opt<std::string> InputDataFilename("data", cl::desc("<data file>"),
+ cl::cat(BoltCategory));
static cl::alias
BoltProfile("b",
@@ -67,10 +65,8 @@ static cl::opt<std::string>
cl::desc("redirect journaling to a file instead of stdout/stderr"),
cl::Hidden, cl::cat(BoltCategory));
-static cl::opt<std::string>
-InputDataFilename2("data2",
- cl::desc("<data file>"),
- cl::cat(BoltCategory));
+static cl::opt<std::string> InputDataFilename2("data2", cl::desc("<data
file>"),
+ cl::cat(BoltCategory));
static cl::opt<std::string>
InputFilename2(
diff --git a/bolt/tools/merge-fdata/merge-fdata.cpp
b/bolt/tools/merge-fdata/merge-fdata.cpp
index d7cd72566..79e44cb90 100644
--- a/bolt/tools/merge-fdata/merge-fdata.cpp
+++ b/bolt/tools/merge-fdata/merge-fdata.cpp
@@ -64,10 +64,9 @@ PrintFunctionList("print",
cl::cat(MergeFdataCategory));
static cl::opt<bool>
-SuppressMergedDataOutput("q",
- cl::desc("do not print merged data to stdout"),
- cl::init(false),
- cl::cat(MergeFdataCategory));
+ SuppressMergedDataOutput("q",
+ cl::desc("do not print merged data to stdout"),
+ cl::init(false), cl::cat(MergeFdataCategory));
static cl::opt<std::string>
OutputFilePath("o",
diff --git a/llvm/lib/Support/DebugCounter.cpp
b/llvm/lib/Support/DebugCounter.cpp
index d9786838a..d0dfddca8 100644
--- a/llvm/lib/Support/DebugCounter.cpp
+++ b/llvm/lib/Support/DebugCounter.cpp
@@ -72,16 +72,12 @@ struct DebugCounterOwner : DebugCounter {
activateAllCounters();
})};
cl::opt<bool, true> PrintDebugCounterQueries{
- "print-debug-counter-queries",
- cl::Hidden,
- cl::location(this->ShouldPrintCounterQueries),
- cl::init(false),
+ "print-debug-counter-queries", cl::Hidden,
+ cl::location(this->ShouldPrintCounterQueries), cl::init(false),
cl::desc("Print out each query of an enabled debug counter")};
cl::opt<bool, true> BreakOnLastCount{
- "debug-counter-break-on-last",
- cl::Hidden,
- cl::location(this->BreakOnLast),
- cl::init(false),
+ "debug-counter-break-on-last", cl::Hidden,
+ cl::location(this->BreakOnLast), cl::init(false),
cl::desc("Insert a break point on the last enabled count of a "
"chunks list")};
``````````
</details>
https://github.com/llvm/llvm-project/pull/225870
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits