retdec
Public Member Functions | Public Attributes | List of all members
retdec::capstone2llvmir::Capstone2LlvmIrTranslator::TranslationResultOne Struct Reference

#include <capstone2llvmir.h>

Collaboration diagram for retdec::capstone2llvmir::Capstone2LlvmIrTranslator::TranslationResultOne:
Collaboration graph
[legend]

Public Member Functions

bool failed () const
 

Public Attributes

llvm::StoreInst * llvmInsn = nullptr
 
cs_insn * capstoneInsn = nullptr
 
std::size_t size = 0
 Byte size of the translated binary chunk. More...
 
llvm::CallInst * branchCall = nullptr
 
bool inCondition = false
 

Member Function Documentation

◆ failed()

bool retdec::capstone2llvmir::Capstone2LlvmIrTranslator::TranslationResultOne::failed ( ) const
inline

Member Data Documentation

◆ branchCall

llvm::CallInst* retdec::capstone2llvmir::Capstone2LlvmIrTranslator::TranslationResultOne::branchCall = nullptr

If stopOnBranch was set, this is set to the terminating branch instruction (any type, i.e. call, return, branch, cond branch), or nullptr if there was no such instruction.

◆ capstoneInsn

cs_insn* retdec::capstone2llvmir::Capstone2LlvmIrTranslator::TranslationResultOne::capstoneInsn = nullptr

Translated capstone instruction. Capstone instruction is dynamically allocated by this method, and must be freed by caller to avoid memory leaks.

◆ inCondition

bool retdec::capstone2llvmir::Capstone2LlvmIrTranslator::TranslationResultOne::inCondition = false

True if branchCall is in conditional code, e.g. unconditional branch in if-then.

◆ llvmInsn

llvm::StoreInst* retdec::capstone2llvmir::Capstone2LlvmIrTranslator::TranslationResultOne::llvmInsn = nullptr

Translated special LLVM IR instruction used for LLVM IR <-> Capstone instruction mapping. All created LLVM IR instructions are added to the working LLVM module and should be automatically destroyed when module is destroyed.

◆ size

std::size_t retdec::capstone2llvmir::Capstone2LlvmIrTranslator::TranslationResultOne::size = 0

Byte size of the translated binary chunk.


The documentation for this struct was generated from the following file: