LLVM::Module
Constructors
new(unwrap : LibLLVM::ModuleRef, context : Context)
Sourceparse(memory_buffer : MemoryBuffer, context : Context) : self
SourceInstance methods
context
Sourcedata_layout=(data : TargetData)
Sourcedump
Sourcefunctions
Sourceglobals
Sourcename
Sourcenew_function_pass_manager
DEPRECATED The legacy pass manager was removed in LLVM 17. Use LLVM::PassBuilderOptions instead
print_to_file(filename)
Sourcetake_ownership
Sourcetarget=(target)
SourceAppends 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>
to_unsafe
Sourceverify
Sourcewrite_bitcode_to_memory_buffer
Sourcewrite_bitcode_with_summary_to_file(filename : String)
DEPRECATED ThinLTO is no longer supported; use #write_bitcode_to_file instead