Class: LLVM::ConstantVector
Class Method Summary
collapse
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, #constant?, #dump, from_ptr, #name, #name=, #null?, to_ptr, #type, type, #undefined?
#==, #eql?, #hash, #to_ptr
Class Method Details
.all_ones ⇒ Object
582
583
584
|
# File 'lib/llvm/core/value.rb', line 582
def self.all_ones
from_ptr(C.const_all_ones(type))
end
|
.const(size_or_values, &block) ⇒ Object
586
587
588
589
|
# File 'lib/llvm/core/value.rb', line 586
def self.const(size_or_values, &block)
vals = LLVM::Support.allocate_pointers(size_or_values, &block)
from_ptr(C.const_vector(vals, vals.size / vals.type_size))
end
|
Instance Method Details
#size ⇒ Object
591
592
593
|
# File 'lib/llvm/core/value.rb', line 591
def size
C.get_vector_size(type)
end
|