You seem to be compiling an old version of TVM. Newer clangs have reorganized the include files that contain intrinsic definitions, and there were corresponding changes in TVM as well. If the TVM that you’re using doesn’t have these modifications, compilation will fail.
You can try to fix it in your sources: find file llvm_common.h
, and add the following:
#if TVM_LLVM_VERSION >= 100
#include <llvm/IR/IntrinsicsAMDGPU.h>
#include <llvm/IR/IntrinsicsARM.h>
#include <llvm/IR/IntrinsicsNVPTX.h>
#include <llvm/IR/IntrinsicsX86.h>
#endif