struct LLVM::Target

Defined in:

llvm/target.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.first : selfSource

def self.first? : self?Source

def self.from_triple(triple) : selfSource

def self.new(unwrap : LibLLVM::TargetRef)Source

Class Method Detail

def self.each(&)Source

Instance Method Detail

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

def descriptionSource

def inspect(io : IO) : NilSource

Description copied from struct Struct

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)"

def nameSource

def to_s(io : IO) : NilSource

Description copied from struct Struct

Same as #inspect(io).

def to_unsafe : LibLLVM::TargetRefSource

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/LLVM/Target.html