class

LLVM::Module

Inherits Reference / Object

Constructors

new(unwrap : LibLLVM::ModuleRef, context : Context)
Source
parse(memory_buffer : MemoryBuffer, context : Context) : self
Source

Instance methods

==(other : self)

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

Source
add_flag(module_flag : LibLLVM::ModuleFlagBehavior, key : String, val : Int32)
Source
add_flag(module_flag : LibLLVM::ModuleFlagBehavior, key : String, val : Value)
Source
context
Source
data_layout=(data : TargetData)
Source
dump
Source
functions
Source
globals
Source
name
Source
name=(name : String)
Source
new_function_pass_manager

DEPRECATED The legacy pass manager was removed in LLVM 17. Use LLVM::PassBuilderOptions instead

Source
take_ownership
Source
target=(target)
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>
Source
to_unsafe
Source
verify
Source
write_bitcode_to_fd(fd : Int, should_close = false, buffered = false)
Source
write_bitcode_to_file(filename : String)
Source
write_bitcode_to_memory_buffer
Source
write_bitcode_with_summary_to_file(filename : String)

DEPRECATED ThinLTO is no longer supported; use #write_bitcode_to_file instead

Source