retdec
|
Visual Studio instruction idioms. More...
#include <idioms_vstudio.h>
Protected Member Functions | |
llvm::Instruction * | exchangeAndZeroAssign (llvm::BasicBlock::iterator) const |
llvm::Instruction * | exchangeOrMinusOneAssign (llvm::BasicBlock::iterator) const |
![]() | |
IdiomsAbstract () | |
void | init (llvm::Module *M, CC_compiler cc, CC_arch arch) |
CC_compiler | getCompiler () const |
CC_arch | getArch () const |
llvm::Module * | getModule () const |
virtual bool | doAnalysis (llvm::Function &, llvm::Pass *)=0 |
virtual | ~IdiomsAbstract ()=default |
bool | findBranchDependingOn (llvm::BranchInst **br, llvm::BasicBlock &bb, const llvm::Value *val) const |
Friends | |
class | IdiomsAnalysis |
Additional Inherited Members | |
![]() | |
static void | eraseInstFromBasicBlock (llvm::Value *val, llvm::BasicBlock *bb) |
static bool | isPowerOfTwo (unsigned x) |
static bool | isPowerOfTwoRepresentable (const llvm::ConstantInt *cnst) |
Visual Studio instruction idioms.
|
protected |
Exchange X & 0 with X = 0
iter | value to visit |
|
protected |
Exchange X | -1 with X = -1
iter | value to visit |
|
friend |