Handle spir and nvvm.