module LLVM

Defined in:

llvm.cr
llvm/enums.cr
llvm/enums/atomic.cr

Constant Summary

DEBUG_METADATA_VERSION = 3

Class Method Summary

Class Method Detail

def self.default_target_triple : String #

[View source]
def self.host_cpu_name : String #

[View source]
def self.init_aarch64 : Nil #

[View source]
def self.init_all_targets : Nil #

[View source]
def self.init_arm : Nil #

[View source]
def self.init_avr : Nil #

[View source]
def self.init_native_target : Nil #

[View source]
def self.init_webassembly : Nil #

[View source]
def self.init_x86 : Nil #

[View source]
def self.multithreaded? : Bool #

[View source]
def self.normalize_triple(triple : String) : String #

[View source]
def self.run_passes(module mod : Module, passes : String, target_machine : TargetMachine, options : PassBuilderOptions) #

[View source]
def self.start_multithreaded : Bool #

DEPRECATED This method has no effect


[View source]
def self.stop_multithreaded #

DEPRECATED This method has no effect


[View source]
def self.string_and_dispose(chars) : String #

[View source]
def self.to_io(chars, io) : Nil #

[View source]
def self.version #

Returns the runtime version of LLVM.

Starting with LLVM 16, this method returns the version as reported by LLVMGetVersion at runtime. Older versions of LLVM do not expose this information, so the value falls back to LibLLVM::VERSION which is determined at compile time and might slightly be out of sync to the dynamic library loaded at runtime.


[View source]