diff --git a/src/target/llvm/codegen_amdgpu.cc b/src/target/llvm/codegen_amdgpu.cc index 327f23af2c73..a177aa7f6828 100644 --- a/src/target/llvm/codegen_amdgpu.cc +++ b/src/target/llvm/codegen_amdgpu.cc @@ -42,7 +42,9 @@ #include #include #include +#if TVM_LLVM_VERSION < 170 #include +#endif #include #include #include diff --git a/src/target/llvm/codegen_nvptx.cc b/src/target/llvm/codegen_nvptx.cc index ec561667c1b0..e64a2dc5b93d 100644 --- a/src/target/llvm/codegen_nvptx.cc +++ b/src/target/llvm/codegen_nvptx.cc @@ -45,7 +45,9 @@ #include #include #include +#if TVM_LLVM_VERSION < 170 #include +#endif #include #include