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, #initialize, #name, #name=, #null?, to_ptr, #to_ptr, type, #type, #undefined?
Constructor Details
This class inherits a constructor from LLVM::Value
Instance Method Details
#alignment ⇒ Object
554
555
556
|
# File 'lib/llvm/core/value.rb', line 554
def alignment
C.LLVMGetAlignment(self)
end
|
#alignment=(bytes) ⇒ Object
558
559
560
|
# File 'lib/llvm/core/value.rb', line 558
def alignment=(bytes)
C.LLVMSetAlignment(self, bytes)
end
|
#declaration? ⇒ Boolean
526
527
528
|
# File 'lib/llvm/core/value.rb', line 526
def declaration?
C.LLVMIsDeclaration(self)
end
|
#global_constant=(flag) ⇒ Object
574
575
576
|
# File 'lib/llvm/core/value.rb', line 574
def global_constant=(flag)
C.LLVMSetGlobalConstant(self, flag)
end
|
#global_constant? ⇒ Boolean
570
571
572
|
# File 'lib/llvm/core/value.rb', line 570
def global_constant?
C.LLVMIsGlobalConstant(self)
end
|
#initializer ⇒ Object
562
563
564
|
# File 'lib/llvm/core/value.rb', line 562
def initializer
Value.from_ptr(C.LLVMGetInitializer(self))
end
|
#initializer=(val) ⇒ Object
566
567
568
|
# File 'lib/llvm/core/value.rb', line 566
def initializer=(val)
C.LLVMSetInitializer(self, val)
end
|
#linkage ⇒ Object
530
531
532
|
# File 'lib/llvm/core/value.rb', line 530
def linkage
C.LLVMGetLinkage(self)
end
|
#linkage=(linkage) ⇒ Object
534
535
536
|
# File 'lib/llvm/core/value.rb', line 534
def linkage=(linkage)
C.LLVMSetLinkage(self, linkage)
end
|
#section ⇒ Object
538
539
540
|
# File 'lib/llvm/core/value.rb', line 538
def section
C.LLVMGetSection(self)
end
|
#section=(section) ⇒ Object
542
543
544
|
# File 'lib/llvm/core/value.rb', line 542
def section=(section)
C.LLVMSetSection(self, section)
end
|
#visibility ⇒ Object
546
547
548
|
# File 'lib/llvm/core/value.rb', line 546
def visibility
C.LLVMGetVisibility(self)
end
|
#visibility=(viz) ⇒ Object
550
551
552
|
# File 'lib/llvm/core/value.rb', line 550
def visibility=(viz)
C.LLVMSetVisibility(self, viz)
end
|