[Mlir-commits] [mlir] [mlir][ArmSME] Add rudimentary support for tile spills to the stack (PR #76086)

Cullen Rhodes llvmlistbot at llvm.org
Thu Dec 21 07:02:09 PST 2023


================
@@ -75,8 +365,8 @@ struct ZeroOpConversion : public ConvertOpToLLVMPattern<arm_sme::ZeroOp> {
                   ConversionPatternRewriter &rewriter) const override {
     auto loc = zero.getLoc();
 
-    unsigned tileElementWidth =
-        zero.getVectorType().getElementType().getIntOrFloatBitWidth();
+    arm_sme::ArmSMETileType tileType =
+        *arm_sme::getSMETileType(zero.getVectorType());
----------------
c-rhodes wrote:

zero already has `getAllocatedTileType` which does the same thing

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


More information about the Mlir-commits mailing list