Constructors

Link copied to clipboard
constructor(lang: LLVMIRLanguageFrontend)

Properties

Link copied to clipboard
open override val ctx: TranslationContext?
Link copied to clipboard
Link copied to clipboard
open override val language: Language<*>?
Link copied to clipboard
Link copied to clipboard
open override val namespace: Name?
Link copied to clipboard
open override val scope: Scope?

Functions

Link copied to clipboard
open override fun codeOf(astNode: Pointer): String?
Link copied to clipboard
open fun handle(ctx: Pointer): Statement?
Link copied to clipboard
fun handleBinaryOperator(instr: LLVMValueRef, op: String, unsigned: Boolean, unordered: Boolean = false): Expression

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

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

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.

Link copied to clipboard
open override fun locationOf(astNode: Pointer): PhysicalLocation?