Skip to content

class Crystal::CodeGenVisitor::LLVMVar
inherits Reference

Class methods

.new(pointer, type, already_loaded = false, debug_variable_created = false)

View source

Methods

#already_loaded : Bool

Normally a variable is associated with an alloca. So for example, if you have a "x = Reference.new" you will have an "Reference*" llvm value and you need to load that value to access it. However, the "self" argument is not copied to a local variable: it's accessed from the arguments list, and is a "Reference" llvm value, so in a way it's "already loaded". This field is true if that's the case.

View source

#debug_variable_created : Bool

View source

#type : Type

View source