[Mlir-commits] [mlir] Allow fixed vector operand for LLVM_AtomicRMWOp (PR #110553)

Tobias Gysi llvmlistbot at llvm.org
Thu Oct 3 08:25:22 PDT 2024


================
@@ -643,6 +643,14 @@ func.func @atomicrmw_expected_float(%i32_ptr : !llvm.ptr, %i32 : i32) {
 
 // -----
 
+func.func @atomicrmw_unexpected_vector_element(%ptr : !llvm.ptr, %i32_vec : vector<3xi32>) {
+  // expected-error at +1 {{expected LLVM IR floating point type for vector element}}
+  %0 = llvm.atomicrmw fadd %ptr, %i32_vec unordered : !llvm.ptr, vector<3xi32>
+  llvm.return
----------------
gysit wrote:

Ah I see there is also `LLVM_AnyFixedVector`. I think it is ok to keep the redundant check yes.

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


More information about the Mlir-commits mailing list