Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //===- GlobalSplit.h - global variable splitter -----------------*- 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 // This pass uses inrange annotations on GEP indices to split globals where
0010 // beneficial. Clang currently attaches these annotations to references to
0011 // virtual table globals under the Itanium ABI for the benefit of the
0012 // whole-program virtual call optimization and control flow integrity passes.
0013 //
0014 //===----------------------------------------------------------------------===//
0015 
0016 #ifndef LLVM_TRANSFORMS_IPO_GLOBALSPLIT_H
0017 #define LLVM_TRANSFORMS_IPO_GLOBALSPLIT_H
0018 
0019 #include "llvm/IR/PassManager.h"
0020 
0021 namespace llvm {
0022 
0023 class Module;
0024 
0025 /// Pass to perform split of global variables.
0026 class GlobalSplitPass : public PassInfoMixin<GlobalSplitPass> {
0027 public:
0028   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
0029 };
0030 
0031 } // end namespace llvm
0032 
0033 #endif // LLVM_TRANSFORMS_IPO_GLOBALSPLIT_H