Module: LLVM::PointerIdentity

Included in:
Attribute, 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.



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

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)


29
30
31
# File 'lib/llvm.rb', line 29

def eql?(other)
  self == other
end

#hashObject

Computes hash.



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

def hash
  @ptr.address.hash
end

#to_ptrObject



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

def to_ptr
  @ptr
end