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, #kind, #name, #name=, #null?, #remove_attribute, to_ptr, #to_s, type, #type, #undefined?
#==, #eql?, #hash, #to_ptr
Instance Method Details
#alignment ⇒ Object
750
751
752
|
# File 'lib/llvm/core/value.rb', line 750
def alignment
C.get_alignment(self)
end
|
#alignment=(bytes) ⇒ Object
754
755
756
|
# File 'lib/llvm/core/value.rb', line 754
def alignment=(bytes)
C.set_alignment(self, bytes)
end
|
#declaration? ⇒ Boolean
722
723
724
|
# File 'lib/llvm/core/value.rb', line 722
def declaration?
C.is_declaration(self)
end
|
#dll_storage_class ⇒ Object
#dll_storage_class=(klass) ⇒ Object
791
792
793
|
# File 'lib/llvm/core/value.rb', line 791
def dll_storage_class=(klass)
C.set_dll_storage_class(self, klass)
end
|
#global_constant=(flag) ⇒ Object
770
771
772
773
774
775
776
777
|
# File 'lib/llvm/core/value.rb', line 770
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
766
767
768
|
# File 'lib/llvm/core/value.rb', line 766
def global_constant?
C.is_global_constant(self) != 0
end
|
#initializer=(val) ⇒ Object
762
763
764
|
# File 'lib/llvm/core/value.rb', line 762
def initializer=(val)
C.set_initializer(self, val)
end
|
#linkage ⇒ Object
726
727
728
|
# File 'lib/llvm/core/value.rb', line 726
def linkage
C.get_linkage(self)
end
|
#linkage=(linkage) ⇒ Object
730
731
732
|
# File 'lib/llvm/core/value.rb', line 730
def linkage=(linkage)
C.set_linkage(self, linkage)
end
|
#section ⇒ Object
734
735
736
|
# File 'lib/llvm/core/value.rb', line 734
def section
C.get_section(self)
end
|
#section=(section) ⇒ Object
738
739
740
|
# File 'lib/llvm/core/value.rb', line 738
def section=(section)
C.set_section(self, section)
end
|
#unnamed_addr=(flag) ⇒ Object
783
784
785
|
# File 'lib/llvm/core/value.rb', line 783
def unnamed_addr=(flag)
C.set_unnamed_addr(self, flag ? 1 : 0)
end
|
#unnamed_addr? ⇒ Boolean
779
780
781
|
# File 'lib/llvm/core/value.rb', line 779
def unnamed_addr?
C.has_unnamed_addr(self) != 0
end
|
#visibility ⇒ Object
742
743
744
|
# File 'lib/llvm/core/value.rb', line 742
def visibility
C.get_visibility(self)
end
|
#visibility=(viz) ⇒ Object
746
747
748
|
# File 'lib/llvm/core/value.rb', line 746
def visibility=(viz)
C.set_visibility(self, viz)
end
|