tvm_tirx.codegen.llvm.get_vector_width

tvm_tirx.codegen.llvm.get_vector_width#

tvm_tirx.codegen.llvm.get_vector_width(target=None)#

Get vector width from LLVM target’s -mtriple and -mcpu and considering -mattr.

Parameters:

target (Target) – The TVM target.

Returns:

vector_width (int) – Vector with of target in number of bits, -1 on error.