clover: TargetRegistry.h was moved to another folder
authorLone_Wolf <lone_wolf@klaas-de-kat.nl>
Tue, 12 Oct 2021 20:32:49 +0000 (22:32 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 Oct 2021 15:41:49 +0000 (15:41 +0000)
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13290>

src/gallium/frontends/clover/llvm/codegen/native.cpp
src/gallium/frontends/clover/llvm/compat.hpp

index 450c02e..03166b2 100644 (file)
@@ -28,7 +28,6 @@
 ///
 
 #include <llvm/Target/TargetMachine.h>
-#include <llvm/Support/TargetRegistry.h>
 #include <llvm/Transforms/Utils/Cloning.h>
 
 #include "llvm/codegen.hpp"
index 89aa0df..8c369b2 100644 (file)
 #include <llvm/Support/CodeGen.h>
 #endif
 
+#if LLVM_VERSION_MAJOR >= 14
+#include <llvm/MC/TargetRegistry.h>
+#else
+#include <llvm/Support/TargetRegistry.h>
+#endif
+
 namespace clover {
    namespace llvm {
       namespace compat {