sizeofIR

abstract fun sizeofIR(ir: JsString): Int(source)

For the given IR-like string in the set ('i8', 'i16', 'i32', 'f32', 'float', 'i64', 'f64', 'double', ''), or any string value ending in '', returns the sizeof for that value (wasm.ptrSizeof in the latter case). For any other value, it returns the undefined value.

Some allocation routines use this to enable callers to pass them an IR value instead of an integer.