Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 pmbaty 1
//===-- ExtractGV.h -------------------------------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
 
9
#ifndef LLVM_TRANSFORMS_IPO_EXTRACTGV_H
10
#define LLVM_TRANSFORMS_IPO_EXTRACTGV_H
11
 
12
#include "llvm/ADT/SetVector.h"
13
#include "llvm/IR/PassManager.h"
14
 
15
namespace llvm {
16
 
17
class ExtractGVPass : public PassInfoMixin<ExtractGVPass> {
18
private:
19
  SetVector<GlobalValue *> Named;
20
  bool deleteStuff;
21
  bool keepConstInit;
22
 
23
public:
24
  ExtractGVPass(std::vector<GlobalValue *> &GVs, bool deleteS = true,
25
                bool keepConstInit = false);
26
  PreservedAnalyses run(Module &M, ModuleAnalysisManager &);
27
};
28
} // namespace llvm
29
 
30
#endif // LLVM_TRANSFORMS_IPO_EXTRACTGV_H