Skip to content

struct LLVM::Target
inherits Struct

Class methods

.each

View source

.first : self

View source

.first? : self?

View source

.from_triple(triple) : self

View source

.new(unwrap : LibLLVM::TargetRef)

View source

Methods

#create_target_machine(triple, cpu = "", features = "", opt_level = LLVM::CodeGenOptLevel::Default, reloc = LLVM::RelocMode::PIC, code_model = LLVM::CodeModel::Default)

View source

#description

View source

#inspect(io : IO) : Nil

Appends this struct's name and instance variables names and values to the given IO.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p1.to_s    # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"
View source

#name

View source

#to_s(io : IO) : Nil

Same as #inspect(io).

View source

#to_unsafe : LibLLVM::TargetRef

View source