retdec
Namespaces | Functions | Variables
inst_opt.cpp File Reference

Optimize a single LLVM instruction. More...

#include <llvm/IR/Module.h>
#include <llvm/IR/PatternMatch.h>
#include "retdec/bin2llvmir/optimizations/inst_opt/inst_opt.h"
#include "retdec/bin2llvmir/utils/debug.h"

Namespaces

 retdec
 
 retdec::bin2llvmir
 
 retdec::bin2llvmir::inst_opt
 

Functions

bool retdec::bin2llvmir::inst_opt::addZero (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::subZero (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::truncZext (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::xorXX (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::xorLoadXX (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::orAndXX (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::orAndLoadXX (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::xor_i1 (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::and_i1 (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::addSequence (llvm::Instruction *insn)
 
llvm::Value * retdec::bin2llvmir::inst_opt::castSequence (llvm::CastInst *cast1, llvm::CastInst *cast2)
 
llvm::Value * retdec::bin2llvmir::inst_opt::castSequenceFinder (llvm::Value *insn)
 
bool retdec::bin2llvmir::inst_opt::castSequenceWrapper (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::storeToBitcastPointer (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::loadFromBitcastPointer (llvm::Instruction *insn)
 
bool retdec::bin2llvmir::inst_opt::optimize (llvm::Instruction *insn)
 

Variables

std::vector< bool(*)(llvm::Instruction *)> retdec::bin2llvmir::inst_opt::optimizations
 

Detailed Description

Optimize a single LLVM instruction.