Class: LLVM::GlobalValue

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

Direct Known Subclasses

Function, GlobalAlias, GlobalVariable

Instance Method Summary collapse

Methods inherited from Constant

#bitcast_to, #gep, 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



842
843
844
# File 'lib/llvm/core/value.rb', line 842

def alignment
  C.get_alignment(self)
end

#alignment=(bytes) ⇒ Object



846
847
848
# File 'lib/llvm/core/value.rb', line 846

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

#declaration?Boolean

Returns:

  • (Boolean)


814
815
816
# File 'lib/llvm/core/value.rb', line 814

def declaration?
  C.is_declaration(self)
end

#dll_storage_classObject



858
859
860
# File 'lib/llvm/core/value.rb', line 858

def dll_storage_class
  C.get_dll_storage_class(self)
end

#dll_storage_class=(klass) ⇒ Object



862
863
864
# File 'lib/llvm/core/value.rb', line 862

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

#linkageObject



818
819
820
# File 'lib/llvm/core/value.rb', line 818

def linkage
  C.get_linkage(self)
end

#linkage=(linkage) ⇒ Object



822
823
824
# File 'lib/llvm/core/value.rb', line 822

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

#sectionObject



826
827
828
# File 'lib/llvm/core/value.rb', line 826

def section
  C.get_section(self)
end

#section=(section) ⇒ Object



830
831
832
# File 'lib/llvm/core/value.rb', line 830

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

#unnamed_addr=(flag) ⇒ Object



854
855
856
# File 'lib/llvm/core/value.rb', line 854

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

#unnamed_addr?Boolean

Returns:

  • (Boolean)


850
851
852
# File 'lib/llvm/core/value.rb', line 850

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

#visibilityObject



834
835
836
# File 'lib/llvm/core/value.rb', line 834

def visibility
  C.get_visibility(self)
end

#visibility=(viz) ⇒ Object



838
839
840
# File 'lib/llvm/core/value.rb', line 838

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