[Mlir-commits] [mlir] GPU known subgroup size (PR #112732)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Oct 17 08:44:36 PDT 2024


================
@@ -271,24 +271,55 @@ struct GPUShuffleConversion final : ConvertOpToLLVMPattern<gpu::ShuffleOp> {
                          typeMangling.value());
   }
 
+  static std::optional<uint32_t>
+  getIntelReqdSubGroupSize(FunctionOpInterface func) {
+    constexpr llvm::StringLiteral discardableIntelReqdSubgroupSize =
----------------
FMarno wrote:

It would be good if we could get this from a function like a `IntelReqdSubgroupSizeAttrName` function

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


More information about the Mlir-commits mailing list