ExpressionHandler

class ExpressionHandler(lang: LLVMIRLanguageFrontend) : Handler<Expression, LLVMValueRef, LLVMIRLanguageFrontend>

This handler primarily handles operands, as returned by LLVMGetOperand and turns them into an Expression. Operands are basically arguments to an instruction.

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
var lastNode: Expression?
Link copied to clipboard
open override val namespace: Name?
Link copied to clipboard
open override val scope: Scope?

Functions

Link copied to clipboard
open fun handle(ctx: LLVMValueRef): Expression?
Link copied to clipboard
fun handleCastInstruction(instr: LLVMValueRef): Expression

Handles all kinds of instructions which are a cast instruction.

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

Handles the select instruction, which behaves like a ConditionalExpression.

Link copied to clipboard
open override fun setCodeAndLocation(cpgNode: Node, astNode: LLVMValueRef)