[llvm] [SandboxIR] Implement ScalableVectorType (PR #108124)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 17:55:34 PDT 2024
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 bb7286515c0b285382f370232f97ffa7cfcbc550 a0533d7272cc350a7681107b5f0a0e29db9aaf3f --extensions cpp,h -- llvm/include/llvm/SandboxIR/Type.h llvm/lib/SandboxIR/Type.cpp llvm/unittests/SandboxIR/TypesTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/SandboxIR/Type.h b/llvm/include/llvm/SandboxIR/Type.h
index 4a55564d81..a2ac9e014b 100644
--- a/llvm/include/llvm/SandboxIR/Type.h
+++ b/llvm/include/llvm/SandboxIR/Type.h
@@ -40,22 +40,22 @@ class StructType;
class Type {
protected:
llvm::Type *LLVMTy;
- friend class ArrayType; // For LLVMTy.
- friend class StructType; // For LLVMTy.
- friend class VectorType; // For LLVMTy.
- friend class FixedVectorType; // For LLVMTy.
+ friend class ArrayType; // For LLVMTy.
+ friend class StructType; // For LLVMTy.
+ friend class VectorType; // For LLVMTy.
+ friend class FixedVectorType; // For LLVMTy.
friend class ScalableVectorType; // For LLVMTy.
- friend class PointerType; // For LLVMTy.
- friend class FunctionType; // For LLVMTy.
- friend class IntegerType; // For LLVMTy.
- friend class Function; // For LLVMTy.
- friend class CallBase; // For LLVMTy.
- friend class ConstantInt; // For LLVMTy.
- friend class ConstantArray; // For LLVMTy.
- friend class ConstantStruct; // For LLVMTy.
- friend class ConstantVector; // For LLVMTy.
- friend class CmpInst; // For LLVMTy. TODO: Cleanup after
- // sandboxir::VectorType is more complete.
+ friend class PointerType; // For LLVMTy.
+ friend class FunctionType; // For LLVMTy.
+ friend class IntegerType; // For LLVMTy.
+ friend class Function; // For LLVMTy.
+ friend class CallBase; // For LLVMTy.
+ friend class ConstantInt; // For LLVMTy.
+ friend class ConstantArray; // For LLVMTy.
+ friend class ConstantStruct; // For LLVMTy.
+ friend class ConstantVector; // For LLVMTy.
+ friend class CmpInst; // For LLVMTy. TODO: Cleanup after
+ // sandboxir::VectorType is more complete.
// Friend all instruction classes because `create()` functions use LLVMTy.
#define DEF_INSTR(ID, OPCODE, CLASS) friend class CLASS;
``````````
</details>
https://github.com/llvm/llvm-project/pull/108124
More information about the llvm-commits
mailing list