class Carbon::Tacky::Value

A “value.” A value can be a parameter, a reference, or a number.

Attributes

name[RW]

The name of the value. This can be set in order to make the resulting LLVM IR pretty.

@return [::String]

type[RW]

The type of the value. This is used in order to determine typing information for LLVM.

@return [Concrete::Type] If it is set. @return [nil] If it is not set or determinable.

value[RW]

The actual value.

@return [::Object]

Public Class Methods

new(name, type, value) click to toggle source

Initialize the value.

@param name [::String] The name of the value. @param type [Concrete::Type, nil] The type of the value. @param value [::Object] The actual value.

# File lib/carbon/tacky/value.rb, line 31
def initialize(name, type, value)
  @name = name
  @type = type
  @value = value
end