Module: LLVM::PointerIdentity

Included in:
Module, PassManagerBuilder, Target, TargetMachine, Type, Value
Defined in:
lib/llvm.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object

Checks if the value is equal to other.



14
15
16
17
# File 'lib/llvm.rb', line 14

def ==(other)
  other.respond_to?(:to_ptr) &&
      @ptr == other.to_ptr
end

#eql?(other) ⇒ Boolean

Checks if the value is equivalent to other.

Returns:

  • (Boolean)


25
26
27
# File 'lib/llvm.rb', line 25

def eql?(other)
  self == other
end

#hashObject

Computes hash.



20
21
22
# File 'lib/llvm.rb', line 20

def hash
  @ptr.address.hash
end

#to_ptrObject



9
10
11
# File 'lib/llvm.rb', line 9

def to_ptr
  @ptr
end