Skip to content

class LLVM::Module
inherits Reference

Class methods

.new(unwrap : LibLLVM::ModuleRef, context : Context)

LLVM >= 3.9

View source

Methods

#==(other : self)

Returns true if this reference is the same as other. Invokes same?.

View source

#add_named_metadata_operand(name : String, value : Value) : Nil

View source

#context : Context

View source

#data_layout=(data : TargetData)

View source

#dump

View source

#functions

View source

#globals

View source

#name=(name : String)

View source

#new_function_pass_manager

View source

#print_to_file(filename)

View source

#take_ownership

View source

#target=(target)

View source

#to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
View source

#to_unsafe : LibLLVM::ModuleRef

View source

#verify

View source

#write_bitcode_to_fd(fd : Int, should_close = false, buffered = false)

View source

#write_bitcode_to_file(filename : String)

View source

#write_bitcode_to_memory_buffer

View source

#write_bitcode_with_summary_to_file(filename : String)

View source