| //===- ArmNeonToLLVM.cpp - ArmNeon to the LLVM dialect --------------------===// |
| // |
| // 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 |
| // |
| //===----------------------------------------------------------------------===// |
| |
| #include "mlir/Conversion/ArmNeonToLLVM/ArmNeonToLLVM.h" |
| |
| #include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h" |
| #include "mlir/Dialect/ArmNeon/ArmNeonDialect.h" |
| #include "mlir/Dialect/LLVMIR/LLVMArmNeonDialect.h" |
| #include "mlir/Dialect/LLVMIR/LLVMDialect.h" |
| #include "mlir/Dialect/StandardOps/IR/Ops.h" |
| #include "mlir/Dialect/Vector/VectorOps.h" |
| #include "mlir/IR/BuiltinOps.h" |
| #include "mlir/IR/PatternMatch.h" |
| |
| using namespace mlir; |
| using namespace mlir::vector; |
| using namespace mlir::arm_neon; |
| |
| using SMullOpLowering = |
| OneToOneConvertToLLVMPattern<SMullOp, LLVM::aarch64_arm_neon_smull>; |
| |
| /// Populate the given list with patterns that convert from ArmNeon to LLVM. |
| void mlir::populateArmNeonToLLVMConversionPatterns( |
| LLVMTypeConverter &converter, OwningRewritePatternList &patterns) { |
| patterns.insert<SMullOpLowering>(converter); |
| } |