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
805
806
807
|
# File 'lib/llvm/core/value.rb', line 805
def alignment
C.get_alignment(self)
end
|
#alignment=(bytes) ⇒ Object
809
810
811
|
# File 'lib/llvm/core/value.rb', line 809
def alignment=(bytes)
C.set_alignment(self, bytes)
end
|
#declaration? ⇒ Boolean
777
778
779
|
# File 'lib/llvm/core/value.rb', line 777
def declaration?
C.is_declaration(self)
end
|
#dll_storage_class ⇒ Object
#dll_storage_class=(klass) ⇒ Object
846
847
848
|
# File 'lib/llvm/core/value.rb', line 846
def dll_storage_class=(klass)
C.set_dll_storage_class(self, klass)
end
|
#global_constant=(flag) ⇒ Object
825
826
827
828
829
830
831
832
|
# File 'lib/llvm/core/value.rb', line 825
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
821
822
823
|
# File 'lib/llvm/core/value.rb', line 821
def global_constant?
C.is_global_constant(self) != 0
end
|
#initializer=(val) ⇒ Object
817
818
819
|
# File 'lib/llvm/core/value.rb', line 817
def initializer=(val)
C.set_initializer(self, val)
end
|
#linkage ⇒ Object
781
782
783
|
# File 'lib/llvm/core/value.rb', line 781
def linkage
C.get_linkage(self)
end
|
#linkage=(linkage) ⇒ Object
785
786
787
|
# File 'lib/llvm/core/value.rb', line 785
def linkage=(linkage)
C.set_linkage(self, linkage)
end
|
#section ⇒ Object
789
790
791
|
# File 'lib/llvm/core/value.rb', line 789
def section
C.get_section(self)
end
|
#section=(section) ⇒ Object
793
794
795
|
# File 'lib/llvm/core/value.rb', line 793
def section=(section)
C.set_section(self, section)
end
|
#unnamed_addr=(flag) ⇒ Object
838
839
840
|
# File 'lib/llvm/core/value.rb', line 838
def unnamed_addr=(flag)
C.set_unnamed_addr(self, flag ? 1 : 0)
end
|
#unnamed_addr? ⇒ Boolean
834
835
836
|
# File 'lib/llvm/core/value.rb', line 834
def unnamed_addr?
C.has_unnamed_addr(self) != 0
end
|
#visibility ⇒ Object
797
798
799
|
# File 'lib/llvm/core/value.rb', line 797
def visibility
C.get_visibility(self)
end
|
#visibility=(viz) ⇒ Object
801
802
803
|
# File 'lib/llvm/core/value.rb', line 801
def visibility=(viz)
C.set_visibility(self, viz)
end
|