StatementHandler

class StatementHandler(lang: LLVMIRLanguageFrontend) : Handler<Statement, Pointer, LLVMIRLanguageFrontend>

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open fun handle(p0: Pointer): Statement
Link copied to clipboard
fun handleBinaryOperator(instr: LLVMValueRef, op: String, unsigned: Boolean, unordered: Boolean = false): Statement

Handles a binary operation and returns either a BinaryOperator, UnaryOperator, CallExpression or a DeclarationStatement.

Link copied to clipboard
fun handleIntegerComparison(instr: LLVMValueRef): Statement

Handles the icmp instruction for comparing integer values.

Link copied to clipboard
fun handlePhi(instr: LLVMValueRef, tu: TranslationUnitDeclaration, flatAST: MutableList<Node>)

Handles the phi instruction. It therefore adds dummy statements to the end of basic blocks where a certain variable is declared and initialized. The original phi instruction is not added to the CPG.