Function splatConst [src]
Prototype
pub fn splatConst(self: *Builder, ty: Type, val: Constant) Allocator.Error!Constant
Parameters
self: *Builder
ty: Type
val: Constant
Source
pub fn splatConst(self: *Builder, ty: Type, val: Constant) Allocator.Error!Constant {
try self.ensureUnusedConstantCapacity(1, Constant.Splat, 0);
return self.splatConstAssumeCapacity(ty, val);
}