Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:41

0001 //===- GuardWidening.h - ----------------------------------------*- 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 //
0009 // Guard widening is an optimization over the @llvm.experimental.guard intrinsic
0010 // that (optimistically) combines multiple guards into one to have fewer checks
0011 // at runtime.
0012 //
0013 //===----------------------------------------------------------------------===//
0014 
0015 #ifndef LLVM_TRANSFORMS_SCALAR_GUARDWIDENING_H
0016 #define LLVM_TRANSFORMS_SCALAR_GUARDWIDENING_H
0017 
0018 #include "llvm/Analysis/LoopAnalysisManager.h"
0019 #include "llvm/IR/PassManager.h"
0020 
0021 namespace llvm {
0022 
0023 class LPMUpdater;
0024 class Loop;
0025 class Function;
0026 
0027 struct GuardWideningPass : public PassInfoMixin<GuardWideningPass> {
0028   PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
0029   PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
0030                         LoopStandardAnalysisResults &AR, LPMUpdater &U);
0031 };
0032 }
0033 
0034 #endif // LLVM_TRANSFORMS_SCALAR_GUARDWIDENING_H