|
|
|||
File indexing completed on 2026-05-10 08:44:40
0001 //===- GlobalOpt.h - Optimize Global Variables ------------------*- 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 transforms simple global variables that never have their address 0010 // taken. If obviously true, it marks read/write globals as constant, deletes 0011 // variables only stored to, etc. 0012 // 0013 //===----------------------------------------------------------------------===// 0014 0015 #ifndef LLVM_TRANSFORMS_IPO_GLOBALOPT_H 0016 #define LLVM_TRANSFORMS_IPO_GLOBALOPT_H 0017 0018 #include "llvm/IR/PassManager.h" 0019 0020 namespace llvm { 0021 0022 class Module; 0023 0024 /// Optimize globals that never have their address taken. 0025 class GlobalOptPass : public PassInfoMixin<GlobalOptPass> { 0026 public: 0027 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM); 0028 }; 0029 0030 } // end namespace llvm 0031 0032 #endif // LLVM_TRANSFORMS_IPO_GLOBALOPT_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|