DoxigAlpha

gepStruct

Function parameters

Parameters

#
self:*WipFunction
index:usize
name:[]const u8

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#

= 16

Values

#

Source

Implementation

#
pub fn gepStruct(
    self: *WipFunction,
    ty: Type,
    base: Value,
    index: usize,
    name: []const u8,
) Allocator.Error!Value {
    assert(ty.isStruct(self.builder));
    return self.gep(.inbounds, ty, base, &.{ .@"0", try self.builder.intValue(.i32, index) }, name);
}