Yi Kong | 8328301 | 2023-12-13 12:57:00 +0900 | [diff] [blame^] | 1 | //===- InjectTLIMAppings.h - TLI to VFABI attribute injection ------------===// |
| 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 | // Populates the VFABI attribute with the scalar-to-vector mappings |
| 10 | // from the TargetLibraryInfo. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | #ifndef LLVM_TRANSFORMS_UTILS_INJECTTLIMAPPINGS_H |
| 14 | #define LLVM_TRANSFORMS_UTILS_INJECTTLIMAPPINGS_H |
| 15 | |
| 16 | #include "llvm/IR/PassManager.h" |
| 17 | |
| 18 | namespace llvm { |
| 19 | class Function; |
| 20 | class InjectTLIMappings : public PassInfoMixin<InjectTLIMappings> { |
| 21 | public: |
| 22 | PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM); |
| 23 | }; |
| 24 | |
| 25 | } // End namespace llvm |
| 26 | #endif // LLVM_TRANSFORMS_UTILS_INJECTTLIMAPPINGS_H |