1 //===- ArmNeon2dToIntr.h - convert Arm Neon 2d ops to intrinsics ----------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef MLIR_CONVERSION_ARMNEON2DTOINTR_ARMNEON2DTOINTR_H_ 10 #define MLIR_CONVERSION_ARMNEON2DTOINTR_ARMNEON2DTOINTR_H_ 11 12 #include "mlir/Pass/Pass.h" 13 14 namespace mlir { 15 /// Populates patterns for the lowering of Arm NEON 2D ops to intrinsics. 16 /// See createConvertArmNeon2dToIntrPass. 17 void populateConvertArmNeon2dToIntrPatterns(RewritePatternSet &patterns); 18 19 /// Creates a pass to lower Arm NEON 2D ops to intrinsics, i.e. 20 /// equivalent ops operating on flattened 1D vectors and mapping more 21 /// directly to the corresponding Arm NEON instruction. 22 std::unique_ptr<Pass> createConvertArmNeon2dToIntrPass(); 23 24 } // namespace mlir 25 26 #endif // MLIR_CONVERSION_ARMNEON2DTOINTR_ARMNEON2DTOINTR_H_ 27