1 | //===- PreISelIntrinsicLowering.h - Pre-ISel intrinsic lowering pass ------===// |
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 | // This pass implements IR lowering for the llvm.load.relative and llvm.objc.* |
10 | // intrinsics. |
11 | // |
12 | //===----------------------------------------------------------------------===// |
13 | #ifndef LLVM_CODEGEN_PREISELINTRINSICLOWERING_H |
14 | #define LLVM_CODEGEN_PREISELINTRINSICLOWERING_H |
15 | |
16 | #include "llvm/IR/PassManager.h" |
17 | |
18 | namespace llvm { |
19 | |
20 | class Module; |
21 | class TargetMachine; |
22 | |
23 | struct PreISelIntrinsicLoweringPass |
24 | : PassInfoMixin<PreISelIntrinsicLoweringPass> { |
25 | const TargetMachine &TM; |
26 | |
27 | PreISelIntrinsicLoweringPass(const TargetMachine &TM) : TM(TM) {} |
28 | PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); |
29 | }; |
30 | |
31 | } // end namespace llvm |
32 | |
33 | #endif // LLVM_CODEGEN_PREISELINTRINSICLOWERING_H |
34 | |