MLIR  19.0.0git
ArmNeon2dToIntr.h
Go to the documentation of this file.
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 <memory>
13 
14 namespace mlir {
15 class Pass;
16 class RewritePatternSet;
17 
18 #define GEN_PASS_DECL_CONVERTARMNEON2DTOINTR
19 #include "mlir/Conversion/Passes.h.inc"
20 
21 /// Populates patterns for the lowering of Arm NEON 2D ops to intrinsics.
22 /// See createConvertArmNeon2dToIntrPass.
23 void populateConvertArmNeon2dToIntrPatterns(RewritePatternSet &patterns);
24 
25 /// Creates a pass to lower Arm NEON 2D ops to intrinsics, i.e.
26 /// equivalent ops operating on flattened 1D vectors and mapping more
27 /// directly to the corresponding Arm NEON instruction.
28 std::unique_ptr<Pass> createConvertArmNeon2dToIntrPass();
29 
30 } // namespace mlir
31 
32 #endif // MLIR_CONVERSION_ARMNEON2DTOINTR_ARMNEON2DTOINTR_H_
Include the generated interface declarations.
void populateConvertArmNeon2dToIntrPatterns(RewritePatternSet &patterns)
Populates patterns for the lowering of Arm NEON 2D ops to intrinsics.
std::unique_ptr< Pass > createConvertArmNeon2dToIntrPass()
Creates a pass to lower Arm NEON 2D ops to intrinsics, i.e.