Package-level declarations

Types

Link copied to clipboard

This handler is in charge of parsing all LLVM IR language constructs that are related to declarations, mainly functions and types.

Link copied to clipboard

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

Link copied to clipboard

The LLVM IR language.

Link copied to clipboard

Because we are using the C LLVM API, there are two possibly AST nodes that we need to consider: LLVMValueRef and LLVMBasicBlockRef. Because they do not share any class hierarchy, we need to resort to use Pointer as the AST node type here.

Properties

Link copied to clipboard
val LLVMValueRef.name: String

Returns the name of a value using LLVMGetValueName.

Link copied to clipboard
val LLVMValueRef.opCode: Int

Returns the opcode for an instruction using LLVMGetInstructionOpcode.

Link copied to clipboard
val LLVMValueRef.symbolName: String

Returns the name / identified of a value, if it is a variable, including the "scope" symbol, i.e., % for local and @ for global variables.