| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | export default class LLVMVector {
/**
* @param {number} length - length of vector
* @param {LLVMType} type - Type of the vector's items
*/
constructor(length: number, type: LLVMType) {
/** @type {number} */
this.length = length;
/** @type {LLVMType} */
this.type = type;
}
generate() {
return `[${this.length} x ${this.type.generate()}]`
}
} |