Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===- LowerSwitch.h - Eliminate Switch instructions ----------------------===//
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 // The LowerSwitch transformation rewrites switch instructions with a sequence
0010 // of branches, which allows targets to get away with not implementing the
0011 // switch instruction until it is convenient.
0012 //
0013 //===----------------------------------------------------------------------===//
0014 
0015 #ifndef LLVM_TRANSFORMS_UTILS_LOWERSWITCH_H
0016 #define LLVM_TRANSFORMS_UTILS_LOWERSWITCH_H
0017 
0018 #include "llvm/IR/PassManager.h"
0019 
0020 namespace llvm {
0021 struct LowerSwitchPass : public PassInfoMixin<LowerSwitchPass> {
0022   PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
0023 };
0024 } // namespace llvm
0025 
0026 #endif // LLVM_TRANSFORMS_UTILS_LOWERSWITCH_H