libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
Public Member Functions | List of all members
triton::ast::LLVMToTriton Class Reference

Converts a LLVM IR to a Triton AST. More...

#include <llvmToTriton.hpp>

Public Member Functions

TRITON_EXPORT LLVMToTriton (triton::Context &ctx)
 Constructor.
 
TRITON_EXPORT LLVMToTriton (const triton::ast::SharedAstContext &actx)
 Constructor.
 
TRITON_EXPORT triton::ast::SharedAbstractNode convert (llvm::Module *llvmModule, const char *fname="__triton")
 Converts a given function from an LLVM module to a Triton AST.
 
TRITON_EXPORT triton::ast::SharedAbstractNode convert (llvm::Value *instruction)
 Converts an LLVM instruction function to a Triton AST.
 

Detailed Description

Converts a LLVM IR to a Triton AST.

Definition at line 41 of file llvmToTriton.hpp.

Constructor & Destructor Documentation

◆ LLVMToTriton() [1/2]

triton::ast::LLVMToTriton::LLVMToTriton ( triton::Context & ctx)

Constructor.

Definition at line 15 of file llvmToTriton.cpp.

◆ LLVMToTriton() [2/2]

triton::ast::LLVMToTriton::LLVMToTriton ( const triton::ast::SharedAstContext & actx)

Constructor.

Definition at line 20 of file llvmToTriton.cpp.

Member Function Documentation

◆ convert() [1/2]

SharedAbstractNode triton::ast::LLVMToTriton::convert ( llvm::Module * llvmModule,
const char * fname = "__triton" )

Converts a given function from an LLVM module to a Triton AST.

Definition at line 266 of file llvmToTriton.cpp.

◆ convert() [2/2]

SharedAbstractNode triton::ast::LLVMToTriton::convert ( llvm::Value * instruction)

Converts an LLVM instruction function to a Triton AST.

Definition at line 284 of file llvmToTriton.cpp.


The documentation for this class was generated from the following files: