#include <phi_remover.h>
◆ PhiRemover()
retdec::bin2llvmir::PhiRemover::PhiRemover |
( |
| ) |
|
◆ demotePhiToStack()
bool retdec::bin2llvmir::PhiRemover::demotePhiToStack |
( |
llvm::PHINode * |
phi, |
|
|
llvm::MDNode * |
faddr |
|
) |
| |
|
private |
Code taken from llvm::DemotePHIToStack(). We need to implement it ourselves in order to add instruction address metadata to newly created instructions.
◆ run()
bool retdec::bin2llvmir::PhiRemover::run |
( |
| ) |
|
|
private |
- Returns
True
if at least one instruction was removed. False
otherwise.
◆ runOnModule()
bool retdec::bin2llvmir::PhiRemover::runOnModule |
( |
llvm::Module & |
M | ) |
|
|
overridevirtual |
◆ runOnModuleCustom()
bool retdec::bin2llvmir::PhiRemover::runOnModuleCustom |
( |
llvm::Module & |
M, |
|
|
Config * |
c |
|
) |
| |
◆ _config
Config* retdec::bin2llvmir::PhiRemover::_config = nullptr |
|
private |
◆ _module
llvm::Module* retdec::bin2llvmir::PhiRemover::_module = nullptr |
|
private |
◆ ID
char retdec::bin2llvmir::PhiRemover::ID = 0 |
|
static |
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/bin2llvmir/optimizations/phi_remover/phi_remover.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/bin2llvmir/optimizations/phi_remover/phi_remover.cpp