LLVM 22.0.0git
ExtractGV.h
Go to the documentation of this file.
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"
15
16namespace llvm {
17class GlobalValue;
18
19class ExtractGVPass : public PassInfoMixin<ExtractGVPass> {
20private:
22 bool deleteStuff;
23 bool keepConstInit;
24
25public:
26 LLVM_ABI ExtractGVPass(std::vector<GlobalValue *> &GVs, bool deleteS = true,
27 bool keepConstInit = false);
29};
30} // namespace llvm
31
32#endif // LLVM_TRANSFORMS_IPO_EXTRACTGV_H
#define LLVM_ABI
Definition Compiler.h:213
This header defines various interfaces for pass management in LLVM.
This file implements a set that has insertion order iteration characteristics.
LLVM_ABI ExtractGVPass(std::vector< GlobalValue * > &GVs, bool deleteS=true, bool keepConstInit=false)
If deleteS is true, this pass deletes the specified global values.
Definition ExtractGV.cpp:53
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &)
Definition ExtractGV.cpp:58
A Module instance is used to store all the information related to an LLVM module.
Definition Module.h:67
A set of analyses that are preserved following a run of a transformation pass.
Definition Analysis.h:112
A vector that has set insertion semantics.
Definition SetVector.h:59
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< Module > ModuleAnalysisManager
Convenience typedef for the Module analysis manager.
Definition MIRParser.h:39
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition PassManager.h:70