Module: LLVM::PointerIdentity
- Included in:
- Module, PassManagerBuilder, Target, TargetMachine, Type, Value
- Defined in:
- lib/llvm.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks if the value is equal to other.
-
#eql?(other) ⇒ Boolean
Checks if the value is equivalent to other.
-
#hash ⇒ Object
Computes hash.
- #to_ptr ⇒ Object
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.
27 28 29 |
# File 'lib/llvm.rb', line 27 def eql?(other) self == other end |
#hash ⇒ Object
Computes hash.
22 23 24 |
# File 'lib/llvm.rb', line 22 def hash @ptr.address.hash end |
#to_ptr ⇒ Object
11 12 13 |
# File 'lib/llvm.rb', line 11 def to_ptr @ptr end |