Go to the documentation of this file.
21 #ifndef LLVM_TRANSFORMS_IPO_INTERNALIZE_H
22 #define LLVM_TRANSFORMS_IPO_INTERNALIZE_H
41 bool External =
false;
65 : MustPreserveGV(
std::
move(MustPreserveGV)) {}
87 #endif // LLVM_TRANSFORMS_IPO_INTERNALIZE_H
A set of analyses that are preserved following a run of a transformation pass.
This is an optimization pass for GlobalISel generic memory operations.
A CRTP mix-in to automatically provide informational APIs needed for passes.
bool internalizeModule(Module &TheModule, CallGraph *CG=nullptr)
Run the internalizer on TheModule, returns true if any changes was made.
A pass that internalizes all functions and variables other than those that must be preserved accordin...
The basic data container for the call graph of a Module of IR.
InternalizePass(std::function< bool(const GlobalValue &)> MustPreserveGV)
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
print Print MemDeps of function
A Module instance is used to store all the information related to an LLVM module.
bool internalizeModule(Module &TheModule, std::function< bool(const GlobalValue &)> MustPreserveGV, CallGraph *CG=nullptr)
Helper function to internalize functions and variables in a Module.
StringSet - A wrapper for StringMap that provides set-like functionality.
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
Machine Check Debug Module
A container for analyses that lazily runs them and caches their results.