Index: mlir/include/mlir/Dialect/ArmSME/CMakeLists.txt =================================================================== --- mlir/include/mlir/Dialect/ArmSME/CMakeLists.txt +++ mlir/include/mlir/Dialect/ArmSME/CMakeLists.txt @@ -1 +1,2 @@ +add_subdirectory(IR) add_subdirectory(Transforms) Index: mlir/include/mlir/Dialect/ArmSME/IR/ArmSME.h =================================================================== --- /dev/null +++ mlir/include/mlir/Dialect/ArmSME/IR/ArmSME.h @@ -0,0 +1,27 @@ +//===- ArmSMEDialect.h - MLIR Dialect for Arm SME ---------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file declares the Target dialect for ArmSME in MLIR. +// +//===----------------------------------------------------------------------===// + +#ifndef MLIR_DIALECT_ARMSME_IR_ARMSME_H +#define MLIR_DIALECT_ARMSME_IR_ARMSME_H + +#include "mlir/Bytecode/BytecodeOpInterface.h" +#include "mlir/IR/BuiltinTypes.h" +#include "mlir/IR/Dialect.h" +#include "mlir/IR/OpDefinition.h" +#include "mlir/Interfaces/SideEffectInterfaces.h" + +#include "mlir/Dialect/ArmSME/IR/ArmSMEDialect.h.inc" + +#define GET_OP_CLASSES +#include "mlir/Dialect/ArmSME/IR/ArmSME.h.inc" + +#endif // MLIR_DIALECT_ARMSME_IR_ARMSME_H Index: mlir/include/mlir/Dialect/ArmSME/IR/ArmSME.td =================================================================== --- /dev/null +++ mlir/include/mlir/Dialect/ArmSME/IR/ArmSME.td @@ -0,0 +1,106 @@ +//===-- ArmSME.td - ArmSME dialect operation definitions ---*- tablegen -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file defines the ArmSME dialect along with necessari intrinsic ops +// necessary to lower to LLVM IR. +// +//===----------------------------------------------------------------------===// + +#ifndef ARMSME_OPS +#define ARMSME_OPS + +include "mlir/Interfaces/SideEffectInterfaces.td" +include "mlir/Dialect/LLVMIR/LLVMOpBase.td" + +//===----------------------------------------------------------------------===// +// ArmSME dialect definition +//===----------------------------------------------------------------------===// + +def ArmSME_Dialect : Dialect { + let name = "arm_sme"; + let cppNamespace = "::mlir::arm_sme"; + let summary = "Basic dialect to target Arm SME architectures"; + let description = [{ + This dialect contains the definitions necessary to target specific Arm SME + scalable matrix operations. + + Source: + https://developer.arm.com/documentation/ddi0616/aa + }]; +} + +//===----------------------------------------------------------------------===// +// ArmSME Intrinsic op definitions +//===----------------------------------------------------------------------===// + +def Predicate : ScalableVectorOfLengthAndType<[16, 8, 4, 2], [I1]>; + +class ArmSME_IntrOverloadedOp overloadOperands = [], + list traits = []> + : LLVM_IntrOpBase< + /*Dialect dialect=*/ArmSME_Dialect, + /*string opName=*/"intr." #mnemonic, + /*string enumName=*/"aarch64_sme_" #!subst(".", "_", mnemonic), + /*list overloadedResults=*/[], + /*list overloadedOperands=*/overloadOperands, + /*list traits=*/traits, + /*int numResults=*/0>; + +// Zero +def ZeroIntrOp : ArmSME_IntrOverloadedOp<"zero", []>, + Arguments<(ins Arg)>; + +// MOP's +class ArmSME_IntrMopOverloadedOp + : ArmSME_IntrOverloadedOp, + Arguments<(ins Arg, + Arg, + Arg, + Arg, + Arg)>; + +def FmopaIntrOp : ArmSME_IntrMopOverloadedOp<"mopa">; +def FmopsIntrOp : ArmSME_IntrMopOverloadedOp<"mops">; +def FmopaWidenIntrOp : ArmSME_IntrMopOverloadedOp<"mopa.wide">; +def FmopsWidenIntrOp : ArmSME_IntrMopOverloadedOp<"mops.wide">; +def SmopaIntrOp : ArmSME_IntrMopOverloadedOp<"smopa.wide">; +def SmopsIntrOp : ArmSME_IntrMopOverloadedOp<"smops.wide">; +def UmopaIntrOp : ArmSME_IntrMopOverloadedOp<"umopa.wide">; +def UmopsIntrOp : ArmSME_IntrMopOverloadedOp<"umops.wide">; +def SUmopaIntrOp : ArmSME_IntrMopOverloadedOp<"sumopa.wide">; +def SUmopsIntrOp : ArmSME_IntrMopOverloadedOp<"sumops.wide">; +def USmopaIntrOp : ArmSME_IntrMopOverloadedOp<"usmopa.wide">; +def USmopsIntrOp : ArmSME_IntrMopOverloadedOp<"usmops.wide">; + +// Loads +class ArmSME_IntrLoadOverloadedOp + : ArmSME_IntrOverloadedOp, + Arguments<(ins Arg, + Arg, + Arg, + Arg)>; + +def LoadHorizontalWordsIntrOp : ArmSME_IntrLoadOverloadedOp<"ld1w.horiz">; +def LoadHorizontalDoublesIntrOp : ArmSME_IntrLoadOverloadedOp<"ld1d.horiz">; +def LoadVerticalWordsIntrOp : ArmSME_IntrLoadOverloadedOp<"ld1w.vert">; +def LoadVerticalDoublesIntrOp : ArmSME_IntrLoadOverloadedOp<"ld1d.vert">; + +// Stores +class ArmSME_IntrStoreOverloadedOp + : ArmSME_IntrOverloadedOp, + Arguments<(ins Arg, + Arg, + Arg, + Arg)>; + +def StoreHorizontalWordsIntrOp : ArmSME_IntrStoreOverloadedOp<"st1w.horiz">; +def StoreHorizontalDoublesIntrOp : ArmSME_IntrStoreOverloadedOp<"st1d.horiz">; +def StoreVerticalWordsIntrOp : ArmSME_IntrStoreOverloadedOp<"st1w.vert">; +def StoreVerticalDoublesIntrOp : ArmSME_IntrStoreOverloadedOp<"st1d.vert">; + +#endif // ARMSME_OPS Index: mlir/include/mlir/Dialect/ArmSME/IR/CMakeLists.txt =================================================================== --- /dev/null +++ mlir/include/mlir/Dialect/ArmSME/IR/CMakeLists.txt @@ -0,0 +1,6 @@ +add_mlir_dialect(ArmSME arm_sme ArmSME) +add_mlir_doc(ArmSME ArmSME Dialects/ -gen-dialect-doc -dialect=arm_sme) + +set(LLVM_TARGET_DEFINITIONS ArmSME.td) +mlir_tablegen(ArmSMEConversions.inc -gen-llvmir-conversions) +add_public_tablegen_target(MLIRArmSMEConversionsIncGen) Index: mlir/include/mlir/InitAllDialects.h =================================================================== --- mlir/include/mlir/InitAllDialects.h +++ mlir/include/mlir/InitAllDialects.h @@ -23,6 +23,7 @@ #include "mlir/Dialect/Arith/IR/ValueBoundsOpInterfaceImpl.h" #include "mlir/Dialect/Arith/Transforms/BufferizableOpInterfaceImpl.h" #include "mlir/Dialect/ArmNeon/ArmNeonDialect.h" +#include "mlir/Dialect/ArmSME/IR/ArmSME.h" #include "mlir/Dialect/ArmSVE/ArmSVEDialect.h" #include "mlir/Dialect/Async/IR/Async.h" #include "mlir/Dialect/Bufferization/IR/Bufferization.h" @@ -117,6 +118,7 @@ pdl_interp::PDLInterpDialect, quant::QuantizationDialect, spirv::SPIRVDialect, + arm_sme::ArmSMEDialect, arm_sve::ArmSVEDialect, vector::VectorDialect, NVVM::NVVMDialect, Index: mlir/include/mlir/Target/LLVMIR/Dialect/All.h =================================================================== --- mlir/include/mlir/Target/LLVMIR/Dialect/All.h +++ mlir/include/mlir/Target/LLVMIR/Dialect/All.h @@ -16,6 +16,7 @@ #include "mlir/Target/LLVMIR/Dialect/AMX/AMXToLLVMIRTranslation.h" #include "mlir/Target/LLVMIR/Dialect/ArmNeon/ArmNeonToLLVMIRTranslation.h" +#include "mlir/Target/LLVMIR/Dialect/ArmSME/ArmSMEToLLVMIRTranslation.h" #include "mlir/Target/LLVMIR/Dialect/ArmSVE/ArmSVEToLLVMIRTranslation.h" #include "mlir/Target/LLVMIR/Dialect/Builtin/BuiltinToLLVMIRTranslation.h" #include "mlir/Target/LLVMIR/Dialect/GPU/GPUToLLVMIRTranslation.h" @@ -35,6 +36,7 @@ static inline void registerAllToLLVMIRTranslations(DialectRegistry ®istry) { registerArmNeonDialectTranslation(registry); registerAMXDialectTranslation(registry); + registerArmSMEDialectTranslation(registry); registerArmSVEDialectTranslation(registry); registerBuiltinDialectTranslation(registry); registerGPUDialectTranslation(registry); Index: mlir/include/mlir/Target/LLVMIR/Dialect/ArmSME/ArmSMEToLLVMIRTranslation.h =================================================================== --- /dev/null +++ mlir/include/mlir/Target/LLVMIR/Dialect/ArmSME/ArmSMEToLLVMIRTranslation.h @@ -0,0 +1,31 @@ +//=======- ArmSMEToLLVMIRTranslation.h - ArmSME to LLVM IR --*- C++ -*-=======// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This provides registration calls for ArmSME dialect to LLVM IR translation. +// +//===----------------------------------------------------------------------===// + +#ifndef MLIR_TARGET_LLVMIR_DIALECT_ARMSME_ARMSMETOLLVMIRTRANSLATION_H +#define MLIR_TARGET_LLVMIR_DIALECT_ARMSME_ARMSMETOLLVMIRTRANSLATION_H + +namespace mlir { + +class DialectRegistry; +class MLIRContext; + +/// Register the ArmSME dialect and the translation from it to the LLVM IR in +/// the given registry; +void registerArmSMEDialectTranslation(DialectRegistry ®istry); + +/// Register the ArmSME dialect and the translation from it in the registry +/// associated with the given context. +void registerArmSMEDialectTranslation(MLIRContext &context); + +} // namespace mlir + +#endif // MLIR_TARGET_LLVMIR_DIALECT_ARMSME_ARMSMETOLLVMIRTRANSLATION_H Index: mlir/lib/Dialect/ArmSME/CMakeLists.txt =================================================================== --- mlir/lib/Dialect/ArmSME/CMakeLists.txt +++ mlir/lib/Dialect/ArmSME/CMakeLists.txt @@ -1 +1,2 @@ +add_subdirectory(IR) add_subdirectory(Transforms) Index: mlir/lib/Dialect/ArmSME/IR/ArmSME.cpp =================================================================== --- /dev/null +++ mlir/lib/Dialect/ArmSME/IR/ArmSME.cpp @@ -0,0 +1,42 @@ +//===- ArmSMEDialect.cpp - MLIR ArmSME dialect implementation -------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file implements the ArmSME dialect and its operations. +// +//===----------------------------------------------------------------------===// + +#include "mlir/Dialect/ArmSME/IR/ArmSME.h" +#include "mlir/Dialect/LLVMIR/LLVMTypes.h" +#include "mlir/IR/Builders.h" +#include "mlir/IR/DialectImplementation.h" +#include "mlir/IR/OpImplementation.h" +#include "mlir/IR/TypeUtilities.h" +#include "mlir/Support/LogicalResult.h" +#include "llvm/ADT/TypeSwitch.h" + +using namespace mlir; +using namespace mlir::arm_sme; + +//===----------------------------------------------------------------------===// +// Tablegen Definitions +//===----------------------------------------------------------------------===// + +#include "mlir/Dialect/ArmSME/IR/ArmSMEDialect.cpp.inc" + +#define GET_OP_CLASSES +#include "mlir/Dialect/ArmSME/IR/ArmSME.cpp.inc" + +#define GET_TYPEDEF_CLASSES +#include "mlir/Dialect/ArmSME/IR/ArmSMETypes.cpp.inc" + +void ArmSMEDialect::initialize() { + addOperations< +#define GET_OP_LIST +#include "mlir/Dialect/ArmSME/IR/ArmSME.cpp.inc" + >(); +} Index: mlir/lib/Dialect/ArmSME/IR/CMakeLists.txt =================================================================== --- /dev/null +++ mlir/lib/Dialect/ArmSME/IR/CMakeLists.txt @@ -0,0 +1,14 @@ +add_mlir_dialect_library(MLIRArmSMEDialect + ArmSME.cpp + + ADDITIONAL_HEADER_DIRS + ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/ArmSME + + DEPENDS + MLIRArmSMEIncGen + + LINK_LIBS PUBLIC + MLIRIR + MLIRLLVMDialect + MLIRSideEffectInterfaces +) Index: mlir/lib/Target/LLVMIR/CMakeLists.txt =================================================================== --- mlir/lib/Target/LLVMIR/CMakeLists.txt +++ mlir/lib/Target/LLVMIR/CMakeLists.txt @@ -46,6 +46,7 @@ LINK_LIBS PUBLIC MLIRArmNeonToLLVMIRTranslation + MLIRArmSMEToLLVMIRTranslation MLIRArmSVEToLLVMIRTranslation MLIRAMXToLLVMIRTranslation MLIRBuiltinToLLVMIRTranslation Index: mlir/lib/Target/LLVMIR/Dialect/ArmSME/ArmSMEToLLVMIRTranslation.cpp =================================================================== --- /dev/null +++ mlir/lib/Target/LLVMIR/Dialect/ArmSME/ArmSMEToLLVMIRTranslation.cpp @@ -0,0 +1,56 @@ +//======- ArmSMEToLLVMIRTranslation.cpp - Translate ArmSME to LLVM IR -=======// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file implements a translation between the ArmSME dialect and LLVM IR. +// +//===----------------------------------------------------------------------===// + +#include "mlir/Target/LLVMIR/Dialect/ArmSME/ArmSMEToLLVMIRTranslation.h" +#include "mlir/Dialect/ArmSME/IR/ArmSME.h" +#include "mlir/IR/Operation.h" +#include "mlir/Target/LLVMIR/ModuleTranslation.h" + +#include "llvm/IR/IRBuilder.h" +#include "llvm/IR/IntrinsicsAArch64.h" + +using namespace mlir; +using namespace mlir::LLVM; + +namespace { +/// Implementation of the dialect interface that converts operations belonging +/// to the ArmSME dialect to LLVM IR. +class ArmSMEDialectLLVMIRTranslationInterface + : public LLVMTranslationDialectInterface { +public: + using LLVMTranslationDialectInterface::LLVMTranslationDialectInterface; + + /// Translates the given operation to LLVM IR using the provided IR builder + /// and saving the state in `moduleTranslation`. + LogicalResult + convertOperation(Operation *op, llvm::IRBuilderBase &builder, + LLVM::ModuleTranslation &moduleTranslation) const final { + Operation &opInst = *op; +#include "mlir/Dialect/ArmSME/IR/ArmSMEConversions.inc" + + return failure(); + } +}; +} // namespace + +void mlir::registerArmSMEDialectTranslation(DialectRegistry ®istry) { + registry.insert(); + registry.addExtension(+[](MLIRContext *ctx, arm_sme::ArmSMEDialect *dialect) { + dialect->addInterfaces(); + }); +} + +void mlir::registerArmSMEDialectTranslation(MLIRContext &context) { + DialectRegistry registry; + registerArmSMEDialectTranslation(registry); + context.appendDialectRegistry(registry); +} Index: mlir/lib/Target/LLVMIR/Dialect/ArmSME/CMakeLists.txt =================================================================== --- /dev/null +++ mlir/lib/Target/LLVMIR/Dialect/ArmSME/CMakeLists.txt @@ -0,0 +1,16 @@ +add_mlir_translation_library(MLIRArmSMEToLLVMIRTranslation + ArmSMEToLLVMIRTranslation.cpp + + DEPENDS + MLIRArmSMEConversionsIncGen + + LINK_COMPONENTS + Core + + LINK_LIBS PUBLIC + MLIRIR + MLIRArmSMEDialect + MLIRLLVMDialect + MLIRSupport + MLIRTargetLLVMIRExport + ) Index: mlir/lib/Target/LLVMIR/Dialect/CMakeLists.txt =================================================================== --- mlir/lib/Target/LLVMIR/Dialect/CMakeLists.txt +++ mlir/lib/Target/LLVMIR/Dialect/CMakeLists.txt @@ -1,4 +1,5 @@ add_subdirectory(ArmNeon) +add_subdirectory(ArmSME) add_subdirectory(ArmSVE) add_subdirectory(AMX) add_subdirectory(Builtin) Index: mlir/test/Target/LLVMIR/arm-sme.mlir =================================================================== --- /dev/null +++ mlir/test/Target/LLVMIR/arm-sme.mlir @@ -0,0 +1,80 @@ +// RUN: mlir-translate --mlir-to-llvmir %s | FileCheck %s + +llvm.func @arm_sme_ops(%v2f64 : vector<[2]xf64>, + %v4f32 : vector<[4]xf32>, + %v8f16 : vector<[8]xf16>, + %v8bf16: vector<[8]xbf16>, + %v8i16 : vector<[8]xi16>, + %v16i8 : vector<[16]xi8>, + %v2i1 : vector<[2]xi1>, + %v4i1 : vector<[4]xi1>, + %v8i1 : vector<[8]xi1>, + %v16i1 : vector<[16]xi1>, + %p32 : !llvm.ptr, + %p64 : !llvm.ptr) { + %c0 = llvm.mlir.constant(0 : index) : i32 + // CHECK: call void @llvm.aarch64.sme.zero(i32 0) + "arm_sme.intr.zero"(%c0) : (i32) -> () + // CHECK: call void @llvm.aarch64.sme.mopa.nxv2f64 + "arm_sme.intr.mopa"(%c0, %v2i1, %v2i1, %v2f64, %v2f64) : (i32, vector<[2]xi1>, + vector<[2]xi1>, vector<[2]xf64>, vector<[2]xf64>) -> () + // CHECK: call void @llvm.aarch64.sme.mopa.nxv4f32 + "arm_sme.intr.mopa"(%c0, %v4i1, %v4i1, %v4f32, %v4f32) : (i32, vector<[4]xi1>, + vector<[4]xi1>, vector<[4]xf32>, vector<[4]xf32>) -> () + // CHECK: call void @llvm.aarch64.sme.mopa.wide.nxv8f16 + "arm_sme.intr.mopa.wide"(%c0, %v8i1, %v8i1, %v8f16, %v8f16) : (i32, vector<[8]xi1>, + vector<[8]xi1>, vector<[8]xf16>, vector<[8]xf16>) -> () + // CHECK: call void @llvm.aarch64.sme.mopa.wide.nxv8bf16 + "arm_sme.intr.mopa.wide"(%c0, %v8i1, %v8i1, %v8bf16, %v8bf16) : (i32, vector<[8]xi1>, + vector<[8]xi1>, vector<[8]xbf16>, vector<[8]xbf16>) -> () + // CHECK: call void @llvm.aarch64.sme.smopa.wide.nxv8i16 + "arm_sme.intr.smopa.wide"(%c0, %v8i1, %v8i1, %v8i16, %v8i16) : (i32, vector<[8]xi1>, + vector<[8]xi1>, vector<[8]xi16>, vector<[8]xi16>) -> () + // CHECK: call void @llvm.aarch64.sme.umopa.wide.nxv8i16 + "arm_sme.intr.umopa.wide"(%c0, %v8i1, %v8i1, %v8i16, %v8i16) : (i32, vector<[8]xi1>, + vector<[8]xi1>, vector<[8]xi16>, vector<[8]xi16>) -> () + // CHECK: call void @llvm.aarch64.sme.sumopa.wide.nxv8i16 + "arm_sme.intr.sumopa.wide"(%c0, %v8i1, %v8i1, %v8i16, %v8i16) : (i32, vector<[8]xi1>, + vector<[8]xi1>, vector<[8]xi16>, vector<[8]xi16>) -> () + // CHECK: call void @llvm.aarch64.sme.usmopa.wide.nxv8i16 + "arm_sme.intr.usmopa.wide"(%c0, %v8i1, %v8i1, %v8i16, %v8i16) : (i32, vector<[8]xi1>, + vector<[8]xi1>, vector<[8]xi16>, vector<[8]xi16>) -> () + // CHECK: call void @llvm.aarch64.sme.smopa.wide.nxv16i8 + "arm_sme.intr.smopa.wide"(%c0, %v16i1, %v16i1, %v16i8, %v16i8) : (i32, vector<[16]xi1>, + vector<[16]xi1>, vector<[16]xi8>, vector<[16]xi8>) -> () + // CHECK: call void @llvm.aarch64.sme.umopa.wide.nxv16i8 + "arm_sme.intr.umopa.wide"(%c0, %v16i1, %v16i1, %v16i8, %v16i8) : (i32, vector<[16]xi1>, + vector<[16]xi1>, vector<[16]xi8>, vector<[16]xi8>) -> () + // CHECK: call void @llvm.aarch64.sme.sumopa.wide.nxv16i8 + "arm_sme.intr.sumopa.wide"(%c0, %v16i1, %v16i1, %v16i8, %v16i8) : (i32, vector<[16]xi1>, + vector<[16]xi1>, vector<[16]xi8>, vector<[16]xi8>) -> () + // CHECK: call void @llvm.aarch64.sme.usmopa.wide.nxv16i8 + "arm_sme.intr.usmopa.wide"(%c0, %v16i1, %v16i1, %v16i8, %v16i8) : (i32, vector<[16]xi1>, + vector<[16]xi1>, vector<[16]xi8>, vector<[16]xi8>) -> () + // CHECK: call void @llvm.aarch64.sme.ld1d.horiz + "arm_sme.intr.ld1d.horiz"(%v2i1, %p64, %c0, %c0) : (vector<[2]xi1>, + !llvm.ptr, i32, i32) -> () + // CHECK: call void @llvm.aarch64.sme.ld1w.horiz + "arm_sme.intr.ld1w.horiz"(%v4i1, %p32, %c0, %c0) : (vector<[4]xi1>, + !llvm.ptr, i32, i32) -> () + // CHECK: call void @llvm.aarch64.sme.ld1d.vert + "arm_sme.intr.ld1d.vert"(%v2i1, %p64, %c0, %c0) : (vector<[2]xi1>, + !llvm.ptr, i32, i32) -> () + // CHECK: call void @llvm.aarch64.sme.ld1w.vert + "arm_sme.intr.ld1w.vert"(%v4i1, %p32, %c0, %c0) : (vector<[4]xi1>, + !llvm.ptr, i32, i32) -> () + // CHECK: call void @llvm.aarch64.sme.st1d.horiz + "arm_sme.intr.st1d.horiz"(%v2i1, %p64, %c0, %c0) : (vector<[2]xi1>, + !llvm.ptr, i32, i32) -> () + // CHECK: call void @llvm.aarch64.sme.st1w.horiz + "arm_sme.intr.st1w.horiz"(%v4i1, %p32, %c0, %c0) : (vector<[4]xi1>, + !llvm.ptr, i32, i32) -> () + // CHECK: call void @llvm.aarch64.sme.st1d.vert + "arm_sme.intr.st1d.vert"(%v2i1, %p64, %c0, %c0) : (vector<[2]xi1>, + !llvm.ptr, i32, i32) -> () + // CHECK: call void @llvm.aarch64.sme.st1w.vert + "arm_sme.intr.st1w.vert"(%v4i1, %p32, %c0, %c0) : (vector<[4]xi1>, + !llvm.ptr, i32, i32) -> () + + llvm.return +} Index: mlir/test/mlir-opt/commandline.mlir =================================================================== --- mlir/test/mlir-opt/commandline.mlir +++ mlir/test/mlir-opt/commandline.mlir @@ -6,6 +6,7 @@ // CHECK-SAME: amx // CHECK-SAME: arith // CHECK-SAME: arm_neon +// CHECK-SAME: arm_sme // CHECK-SAME: arm_sve // CHECK-SAME: async // CHECK-SAME: bufferization