Class: LLVM::GlobalValue

Inherits:
Constant show all
Defined in:
lib/llvm/core/value.rb

Direct Known Subclasses

Function, GlobalAlias, GlobalVariable

Instance Attribute Summary

Attributes included from PointerIdentity

#ptr

Instance Method Summary collapse

Methods inherited from Constant

#bitcast_to, #gep, #int_to_ptr, null, null_ptr, poison, #ptr_to_int, undef

Methods inherited from User

#operands

Methods inherited from Value

#add_attribute, #allocated_type, #allocated_type?, #constant?, #dump, from_ptr, from_ptr_kind, #gep_source_element_type, #gep_source_element_type?, #global_parent, #kind, #name, #name=, #null?, #poison?, #remove_attribute, to_ptr, #to_s, type, #type, #undef?

Methods included from PointerIdentity

#==, #eql?, #hash, #to_ptr

Instance Method Details

#alignmentObject



893
894
895
# File 'lib/llvm/core/value.rb', line 893

def alignment
  C.get_alignment(self)
end

#alignment=(bytes) ⇒ Object



897
898
899
# File 'lib/llvm/core/value.rb', line 897

def alignment=(bytes)
  C.set_alignment(self, bytes)
end

#declaration?Boolean

: -> bool

Returns:

  • (Boolean)


865
866
867
# File 'lib/llvm/core/value.rb', line 865

def declaration?
  C.is_declaration(self)
end

#dll_storage_classObject



910
911
912
# File 'lib/llvm/core/value.rb', line 910

def dll_storage_class
  C.get_dll_storage_class(self)
end

#dll_storage_class=(klass) ⇒ Object



914
915
916
# File 'lib/llvm/core/value.rb', line 914

def dll_storage_class=(klass)
  C.set_dll_storage_class(self, klass)
end

#linkageObject



869
870
871
# File 'lib/llvm/core/value.rb', line 869

def linkage
  C.get_linkage(self)
end

#linkage=(linkage) ⇒ Object



873
874
875
# File 'lib/llvm/core/value.rb', line 873

def linkage=(linkage)
  C.set_linkage(self, linkage)
end

#sectionObject



877
878
879
# File 'lib/llvm/core/value.rb', line 877

def section
  C.get_section(self)
end

#section=(section) ⇒ Object



881
882
883
# File 'lib/llvm/core/value.rb', line 881

def section=(section)
  C.set_section(self, section)
end

#unnamed_addr=(flag) ⇒ Object



906
907
908
# File 'lib/llvm/core/value.rb', line 906

def unnamed_addr=(flag)
  C.set_unnamed_addr(self, flag ? 1 : 0)
end

#unnamed_addr?Boolean

: -> bool

Returns:

  • (Boolean)


902
903
904
# File 'lib/llvm/core/value.rb', line 902

def unnamed_addr?
  C.has_unnamed_addr(self) != 0
end

#visibilityObject



885
886
887
# File 'lib/llvm/core/value.rb', line 885

def visibility
  C.get_visibility(self)
end

#visibility=(viz) ⇒ Object



889
890
891
# File 'lib/llvm/core/value.rb', line 889

def visibility=(viz)
  C.set_visibility(self, viz)
end