retdec
Namespaces | Functions
llvm.h File Reference

LLVM Utility functions. More...

#include <llvm/IR/Constants.h>
#include <llvm/IR/Instruction.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Type.h>
#include <llvm/IR/Value.h>

Go to the source code of this file.

Namespaces

 retdec
 
 retdec::bin2llvmir
 
 retdec::bin2llvmir::llvm_utils
 

Functions

llvm::Value * retdec::bin2llvmir::llvm_utils::skipCasts (llvm::Value *val)
 
llvm::IntegerType * retdec::bin2llvmir::llvm_utils::getCharType (llvm::LLVMContext &ctx)
 
llvm::PointerType * retdec::bin2llvmir::llvm_utils::getCharPointerType (llvm::LLVMContext &ctx)
 
bool retdec::bin2llvmir::llvm_utils::isCharType (const llvm::Type *t)
 
bool retdec::bin2llvmir::llvm_utils::isCharPointerType (const llvm::Type *t)
 
bool retdec::bin2llvmir::llvm_utils::isStringArrayType (const llvm::Type *t)
 
bool retdec::bin2llvmir::llvm_utils::isStringArrayPointeType (const llvm::Type *t)
 
llvm::Type * retdec::bin2llvmir::llvm_utils::stringToLlvmType (llvm::LLVMContext &ctx, const std::string &str)
 
llvm::Type * retdec::bin2llvmir::llvm_utils::stringToLlvmTypeDefault (llvm::Module *m, const std::string &str)
 
std::vector< llvm::Type * > retdec::bin2llvmir::llvm_utils::parseFormatString (llvm::Module *module, const std::string &format, llvm::Function *calledFnc=nullptr)
 

Detailed Description

LLVM Utility functions.

Useful LLVM-related things that are missing in LLVM itself. All (Values, Types, Instructions, etc.) in one module. Keep this as small as possible. Use LLVM when possible.