Class: LLVM::GlobalValue
Instance Method Summary
collapse
Methods inherited from Constant
#bitcast_to, #gep, null, null_ptr, undef
Methods inherited from User
#operands
Methods inherited from Value
#==, #add_attribute, #constant?, #dump, #eql?, from_ptr, #hash, #name, #name=, #null?, to_ptr, #to_ptr, type, #type, #undefined?
Instance Method Details
#alignment ⇒ Object
559
560
561
|
# File 'lib/llvm/core/value.rb', line 559
def alignment
C.LLVMGetAlignment(self)
end
|
#alignment=(bytes) ⇒ Object
563
564
565
|
# File 'lib/llvm/core/value.rb', line 563
def alignment=(bytes)
C.LLVMSetAlignment(self, bytes)
end
|
#declaration? ⇒ Boolean
531
532
533
|
# File 'lib/llvm/core/value.rb', line 531
def declaration?
C.LLVMIsDeclaration(self)
end
|
#global_constant=(flag) ⇒ Object
579
580
581
|
# File 'lib/llvm/core/value.rb', line 579
def global_constant=(flag)
C.LLVMSetGlobalConstant(self, flag)
end
|
#global_constant? ⇒ Boolean
575
576
577
|
# File 'lib/llvm/core/value.rb', line 575
def global_constant?
C.LLVMIsGlobalConstant(self)
end
|
#initializer ⇒ Object
567
568
569
|
# File 'lib/llvm/core/value.rb', line 567
def initializer
Value.from_ptr(C.LLVMGetInitializer(self))
end
|
#initializer=(val) ⇒ Object
571
572
573
|
# File 'lib/llvm/core/value.rb', line 571
def initializer=(val)
C.LLVMSetInitializer(self, val)
end
|
#linkage ⇒ Object
535
536
537
|
# File 'lib/llvm/core/value.rb', line 535
def linkage
C.LLVMGetLinkage(self)
end
|
#linkage=(linkage) ⇒ Object
539
540
541
|
# File 'lib/llvm/core/value.rb', line 539
def linkage=(linkage)
C.LLVMSetLinkage(self, linkage)
end
|
#section ⇒ Object
543
544
545
|
# File 'lib/llvm/core/value.rb', line 543
def section
C.LLVMGetSection(self)
end
|
#section=(section) ⇒ Object
547
548
549
|
# File 'lib/llvm/core/value.rb', line 547
def section=(section)
C.LLVMSetSection(self, section)
end
|
#visibility ⇒ Object
551
552
553
|
# File 'lib/llvm/core/value.rb', line 551
def visibility
C.LLVMGetVisibility(self)
end
|
#visibility=(viz) ⇒ Object
555
556
557
|
# File 'lib/llvm/core/value.rb', line 555
def visibility=(viz)
C.LLVMSetVisibility(self, viz)
end
|