[clang] [compiler-rt] [lldb] [llvm] [mlir] [SPIRV] Add reads from image buffer for shaders. (PR #115178)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 08:16:33 PST 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 21835ee28d47037137ea5a73ba466211b3e1a2d1 f227cd7076f27917da400f307635ee2376267b95 --extensions h,c,cpp -- clang/test/C/C2y/n3344.c clang/lib/Headers/avxintrin.h clang/lib/Sema/SemaDecl.cpp clang/test/CodeGen/X86/avx-builtins.c compiler-rt/lib/builtins/cpu_model/riscv.c llvm/include/llvm/LineEditor/LineEditor.h llvm/include/llvm/Target/TargetMachine.h llvm/lib/Analysis/ValueTracking.cpp llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.cpp llvm/lib/LineEditor/LineEditor.cpp llvm/lib/Target/AArch64/AArch64TargetMachine.cpp llvm/lib/Target/AArch64/AArch64TargetMachine.h llvm/lib/Target/ARM/ARMTargetMachine.cpp llvm/lib/Target/ARM/ARMTargetMachine.h llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp llvm/lib/Target/X86/X86TargetMachine.cpp llvm/lib/Target/X86/X86TargetMachine.h llvm/tools/lli/lli.cpp llvm/tools/llvm-jitlink/llvm-jitlink-executor/llvm-jitlink-executor.cpp llvm/tools/llvm-objdump/XCOFFDump.cpp mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp mlir/lib/Dialect/Linalg/Transforms/TransposeMatmul.cpp mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Headers/avxintrin.h b/clang/lib/Headers/avxintrin.h
index 8e497a9823..fa5ff9f97b 100644
--- a/clang/lib/Headers/avxintrin.h
+++ b/clang/lib/Headers/avxintrin.h
@@ -3706,9 +3706,10 @@ _mm256_undefined_si256(void)
 ///    A double-precision floating-point value used to initialize bits [63:0]
 ///    of the result.
 /// \returns An initialized 256-bit floating-point vector of [4 x double].
-static __inline __m256d __DEFAULT_FN_ATTRS_CONSTEXPR
-_mm256_set_pd(double __a, double __b, double __c, double __d)
-{
+static __inline __m256d __DEFAULT_FN_ATTRS_CONSTEXPR _mm256_set_pd(double __a,
+                                                                   double __b,
+                                                                   double __c,
+                                                                   double __d) {
   return __extension__ (__m256d){ __d, __c, __b, __a };
 }
 
@@ -3746,9 +3747,8 @@ _mm256_set_pd(double __a, double __b, double __c, double __d)
 ///    of the result.
 /// \returns An initialized 256-bit floating-point vector of [8 x float].
 static __inline __m256 __DEFAULT_FN_ATTRS_CONSTEXPR
-_mm256_set_ps(float __a, float __b, float __c, float __d,
-              float __e, float __f, float __g, float __h)
-{
+_mm256_set_ps(float __a, float __b, float __c, float __d, float __e, float __f,
+              float __g, float __h) {
   return __extension__ (__m256){ __h, __g, __f, __e, __d, __c, __b, __a };
 }
 
@@ -3973,8 +3973,7 @@ _mm256_set_epi64x(long long __a, long long __b, long long __c, long long __d)
 ///    of the result.
 /// \returns An initialized 256-bit floating-point vector of [4 x double].
 static __inline __m256d __DEFAULT_FN_ATTRS_CONSTEXPR
-_mm256_setr_pd(double __a, double __b, double __c, double __d)
-{
+_mm256_setr_pd(double __a, double __b, double __c, double __d) {
   return _mm256_set_pd(__d, __c, __b, __a);
 }
 
@@ -4013,9 +4012,8 @@ _mm256_setr_pd(double __a, double __b, double __c, double __d)
 ///    of the result.
 /// \returns An initialized 256-bit floating-point vector of [8 x float].
 static __inline __m256 __DEFAULT_FN_ATTRS_CONSTEXPR
-_mm256_setr_ps(float __a, float __b, float __c, float __d,
-               float __e, float __f, float __g, float __h)
-{
+_mm256_setr_ps(float __a, float __b, float __c, float __d, float __e, float __f,
+               float __g, float __h) {
   return _mm256_set_ps(__h, __g, __f, __e, __d, __c, __b, __a);
 }
 
@@ -4230,8 +4228,7 @@ _mm256_setr_epi64x(long long __a, long long __b, long long __c, long long __d)
 ///    element of the result.
 /// \returns An initialized 256-bit floating-point vector of [4 x double].
 static __inline __m256d __DEFAULT_FN_ATTRS_CONSTEXPR
-_mm256_set1_pd(double __w)
-{
+_mm256_set1_pd(double __w) {
   return _mm256_set_pd(__w, __w, __w, __w);
 }
 
@@ -4248,9 +4245,7 @@ _mm256_set1_pd(double __w)
 ///    A single-precision floating-point value used to initialize each vector
 ///    element of the result.
 /// \returns An initialized 256-bit floating-point vector of [8 x float].
-static __inline __m256 __DEFAULT_FN_ATTRS_CONSTEXPR
-_mm256_set1_ps(float __w)
-{
+static __inline __m256 __DEFAULT_FN_ATTRS_CONSTEXPR _mm256_set1_ps(float __w) {
   return _mm256_set_ps(__w, __w, __w, __w, __w, __w, __w, __w);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/115178


More information about the cfe-commits mailing list