retdec
Namespaces | Functions
value_protect.cpp File Reference

Protect values from LLVM optimization passes. More...

#include <cassert>
#include <llvm/IR/Instruction.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/InstIterator.h>
#include "retdec/bin2llvmir/optimizations/value_protect/value_protect.h"
#include "retdec/bin2llvmir/providers/names.h"
#include "retdec/bin2llvmir/utils/ir_modifier.h"
#include "retdec/bin2llvmir/utils/llvm.h"

Namespaces

 retdec
 
 retdec::bin2llvmir
 

Functions

static RegisterPass< ValueProtect > retdec::bin2llvmir::X ("retdec-value-protect", "Value protection optimization", false, false)
 
void retdec::bin2llvmir::_getConstantExprInstructionUsers (llvm::ConstantExpr *expr, std::set< llvm::Instruction * > &users, std::set< llvm::ConstantExpr * > &seen)
 
void retdec::bin2llvmir::getConstantExprInstructionUsers (llvm::ConstantExpr *expr, std::set< llvm::Instruction * > &users)
 

Detailed Description

Protect values from LLVM optimization passes.