Class: LLVM::ConstantStruct
- Defined in:
- lib/llvm/core/value.rb
Class Method Summary collapse
-
.const(size_or_values, packed = false, &block) ⇒ Object
ConstantStruct.const(size) {|i| … } or ConstantStruct.const().
Methods inherited from Constant
#bitcast_to, #gep, null, null_ptr, undef
Methods inherited from User
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
Class Method Details
.const(size_or_values, packed = false, &block) ⇒ Object
ConstantStruct.const(size) {|i| … } or ConstantStruct.const()
508 509 510 511 |
# File 'lib/llvm/core/value.rb', line 508 def self.const(size_or_values, packed = false, &block) vals = LLVM::Support.allocate_pointers(size_or_values, &block) from_ptr C.LLVMConstStruct(vals, vals.size / vals.type_size, packed ? 1 : 0) end |