|
|
|||
File indexing completed on 2026-05-10 08:44:42
0001 //===- LowerConstantIntrinsics.h - Lower constant int. pass -*- C++ -*-========// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 /// \file 0009 /// 0010 /// The header file for the LowerConstantIntrinsics pass as used by the new pass 0011 /// manager. 0012 /// 0013 //===----------------------------------------------------------------------===// 0014 0015 #ifndef LLVM_TRANSFORMS_SCALAR_LOWERCONSTANTINTRINSICS_H 0016 #define LLVM_TRANSFORMS_SCALAR_LOWERCONSTANTINTRINSICS_H 0017 0018 #include "llvm/IR/PassManager.h" 0019 0020 namespace llvm { 0021 0022 class DominatorTree; 0023 class Function; 0024 class TargetLibraryInfo; 0025 0026 bool lowerConstantIntrinsics(Function &F, const TargetLibraryInfo &TLI, 0027 DominatorTree *DT); 0028 0029 struct LowerConstantIntrinsicsPass : 0030 PassInfoMixin<LowerConstantIntrinsicsPass> { 0031 public: 0032 explicit LowerConstantIntrinsicsPass() = default; 0033 0034 /// Run the pass over the function. 0035 /// 0036 /// This will lower all remaining 'objectsize' and 'is.constant'` 0037 /// intrinsic calls in this function, even when the argument has no known 0038 /// size or is not a constant respectively. The resulting constant is 0039 /// propagated and conditional branches are resolved where possible. 0040 /// This complements the Instruction Simplification and 0041 /// Instruction Combination passes of the optimized pass chain. 0042 PreservedAnalyses run(Function &F, FunctionAnalysisManager &); 0043 }; 0044 0045 } 0046 0047 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|