Class: LLVM::GlobalValue
Instance Method Summary
collapse
Methods inherited from Constant
#bitcast_to, #gep, null, null_ptr, #ptr_to_int, undef
Methods inherited from User
#operands
Methods inherited from Value
#add_attribute, #allocated_type, #constant?, #dump, from_ptr, from_ptr_kind, #global_parent, #kind, #name, #name=, #null?, #remove_attribute, to_ptr, #to_s, type, #type, #undefined?
#==, #eql?, #hash, #to_ptr
Instance Method Details
#alignment ⇒ Object
755
756
757
|
# File 'lib/llvm/core/value.rb', line 755
def alignment
C.get_alignment(self)
end
|
#alignment=(bytes) ⇒ Object
759
760
761
|
# File 'lib/llvm/core/value.rb', line 759
def alignment=(bytes)
C.set_alignment(self, bytes)
end
|
#declaration? ⇒ Boolean
727
728
729
|
# File 'lib/llvm/core/value.rb', line 727
def declaration?
C.is_declaration(self)
end
|
#dll_storage_class ⇒ Object
#dll_storage_class=(klass) ⇒ Object
796
797
798
|
# File 'lib/llvm/core/value.rb', line 796
def dll_storage_class=(klass)
C.set_dll_storage_class(self, klass)
end
|
#global_constant=(flag) ⇒ Object
775
776
777
778
779
780
781
782
|
# File 'lib/llvm/core/value.rb', line 775
def global_constant=(flag)
if flag.kind_of?(Integer)
warn 'Warning: Passing Integer value to LLVM::GlobalValue#global_constant=(Boolean) is deprecated.'
flag = !flag.zero?
end
C.set_global_constant(self, flag ? 1 : 0)
end
|
#global_constant? ⇒ Boolean
771
772
773
|
# File 'lib/llvm/core/value.rb', line 771
def global_constant?
C.is_global_constant(self) != 0
end
|
#initializer=(val) ⇒ Object
767
768
769
|
# File 'lib/llvm/core/value.rb', line 767
def initializer=(val)
C.set_initializer(self, val)
end
|
#linkage ⇒ Object
731
732
733
|
# File 'lib/llvm/core/value.rb', line 731
def linkage
C.get_linkage(self)
end
|
#linkage=(linkage) ⇒ Object
735
736
737
|
# File 'lib/llvm/core/value.rb', line 735
def linkage=(linkage)
C.set_linkage(self, linkage)
end
|
#section ⇒ Object
739
740
741
|
# File 'lib/llvm/core/value.rb', line 739
def section
C.get_section(self)
end
|
#section=(section) ⇒ Object
743
744
745
|
# File 'lib/llvm/core/value.rb', line 743
def section=(section)
C.set_section(self, section)
end
|
#unnamed_addr=(flag) ⇒ Object
788
789
790
|
# File 'lib/llvm/core/value.rb', line 788
def unnamed_addr=(flag)
C.set_unnamed_addr(self, flag ? 1 : 0)
end
|
#unnamed_addr? ⇒ Boolean
784
785
786
|
# File 'lib/llvm/core/value.rb', line 784
def unnamed_addr?
C.has_unnamed_addr(self) != 0
end
|
#visibility ⇒ Object
747
748
749
|
# File 'lib/llvm/core/value.rb', line 747
def visibility
C.get_visibility(self)
end
|
#visibility=(viz) ⇒ Object
751
752
753
|
# File 'lib/llvm/core/value.rb', line 751
def visibility=(viz)
C.set_visibility(self, viz)
end
|