LLVM 22.0.0git
|
Pass embeds a copy of the module optimized with the provided pass pipeline into a global variable. More...
#include "llvm/Transforms/IPO/EmbedBitcodePass.h"
Public Member Functions | |
EmbedBitcodePass (EmbedBitcodeOptions Opts) | |
EmbedBitcodePass (bool IsThinLTO, bool EmitLTOSummary) | |
LLVM_ABI PreservedAnalyses | run (Module &M, ModuleAnalysisManager &) |
![]() | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Static Public Member Functions | |
static bool | isRequired () |
![]() | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Pass embeds a copy of the module optimized with the provided pass pipeline into a global variable.
Definition at line 38 of file EmbedBitcodePass.h.
|
inline |
Definition at line 43 of file EmbedBitcodePass.h.
Definition at line 45 of file EmbedBitcodePass.h.
|
inlinestatic |
Definition at line 50 of file EmbedBitcodePass.h.
PreservedAnalyses EmbedBitcodePass::run | ( | Module & | M, |
ModuleAnalysisManager & | AM | ||
) |
Definition at line 25 of file EmbedBitcodePass.cpp.
References llvm::Data, llvm::Triple::ELF, llvm::embedBufferInModule(), llvm::PreservedAnalyses::none(), OS, llvm::reportFatalUsageError(), llvm::BitcodeWriterPass::run(), and llvm::ThinLTOBitcodeWriterPass::run().