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.



16
17
18
19
# File 'lib/llvm.rb', line 16

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)


27
28
29
# File 'lib/llvm.rb', line 27

def eql?(other)
  self == other
end

#hashObject

Computes hash.



22
23
24
# File 'lib/llvm.rb', line 22

def hash
  @ptr.address.hash
end

#to_ptrObject



11
12
13
# File 'lib/llvm.rb', line 11

def to_ptr
  @ptr
end