[llvm] [SandboxVec] SandboxVectorizerIR Boilerplate (PR #189515)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 18:08:28 PDT 2026
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 h,cpp -- llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.h llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.cpp llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIRTest.cpp llvm/include/llvm/SandboxIR/Context.h llvm/include/llvm/SandboxIR/Instruction.h llvm/include/llvm/SandboxIR/Use.h llvm/include/llvm/SandboxIR/Value.h llvm/lib/SandboxIR/Context.cpp llvm/lib/SandboxIR/Instruction.cpp llvm/lib/Transforms/Vectorize/SandboxVectorizer/Legality.cpp llvm/unittests/SandboxIR/SandboxIRTest.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/llvm/include/llvm/SandboxIR/Value.h b/llvm/include/llvm/SandboxIR/Value.h
index 4d9045ec4..a4a158898 100644
--- a/llvm/include/llvm/SandboxIR/Value.h
+++ b/llvm/include/llvm/SandboxIR/Value.h
@@ -197,7 +197,6 @@ protected:
#include "llvm/SandboxIR/ValuesDefFilesList.def"
#undef DEF_INSTR
-
/// All values point to the context.
Context &Ctx;
// This is used by eraseFromParent().
diff --git a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.h b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.h
index 13d5782f7..be3c2d62e 100644
--- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.h
+++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.h
@@ -1,4 +1,5 @@
-//===- SandboxVectorizerIR.h -------------------------------------*- C++ -*-===//
+//===- SandboxVectorizerIR.h -------------------------------------*- C++
+//-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -14,20 +15,16 @@
#include "llvm/Support/ErrorHandling.h"
-
//===----------------------------------------------------------------------===//
// Sandbox IR Specialization Overrides Begin
//===----------------------------------------------------------------------===//
-namespace llvm::sandboxir {
-
-} // namespace llvm::sandboxir
+namespace llvm::sandboxir {} // namespace llvm::sandboxir
//===----------------------------------------------------------------------===//
// Sandbox IR Specialization Overrides End
//===----------------------------------------------------------------------===//
-
#include "llvm/IR/LLVMContext.h"
#include "llvm/SandboxIR/Context.h"
#include "llvm/SandboxIR/Instruction.h"
@@ -37,7 +34,7 @@ namespace llvm::sandboxir {
class SBVecContext;
class PackInst final : public Instruction {
- Use getOperandUseInternal(unsigned OperandIdx, bool Verify) const final{
+ Use getOperandUseInternal(unsigned OperandIdx, bool Verify) const final {
llvm_unreachable("Unimplemented");
}
unsigned getUseOperandNo(const Use &Use) const final {
diff --git a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.cpp b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.cpp
index 32747d7bf..f175eba8d 100644
--- a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.cpp
+++ b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.cpp
@@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIR.h"
-#include "llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h"
#include "llvm/SandboxIR/Type.h"
+#include "llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h"
namespace llvm::sandboxir {
diff --git a/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIRTest.cpp b/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIRTest.cpp
index 78eb78f4b..8108b148d 100644
--- a/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIRTest.cpp
+++ b/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerIRTest.cpp
@@ -51,7 +51,7 @@ define void @foo(i8 %v0, i8 %v1) {
EXPECT_EQ(llvm::StringRef(sandboxir::Instruction::getOpcodeName(
sandboxir::Instruction::Opcode::Pack)),
"Pack");
- auto *PackI = sandboxir::PackInst::create({Arg0, Arg1}, BB.begin(), Ctx);
+ auto *PackI = sandboxir::PackInst::create({Arg0, Arg1}, BB.begin(), Ctx);
// Check the class ID.
EXPECT_EQ(PackI->getSubclassID(), sandboxir::Value::ClassID::Pack);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/189515
More information about the llvm-commits
mailing list