Update TargetRegistry.h path for LLVM_MAJOR > 13
In LLVM 14.x, `TargetRegistry.h` was relocated from
`llvm/Support` to `llvm/MC`.
This patch adds an `LLVM_OLDER_THAN_14_0` check to
`pocl-ptx.gen.cc` to accommodate the relocation.
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Linker/Linker.h"
-#include "llvm/Support/FileSystem.h"
+#ifndef LLVM_OLDER_THAN_14_0
+#include "llvm/MC/TargetRegistry.h"
+#else
#include "llvm/Support/TargetRegistry.h"
+#endif
+#include "llvm/Support/FileSystem.h"
#include "llvm/Support/TargetSelect.h"
#ifndef LLVM_OLDER_THAN_11_0
#include "llvm/Support/Alignment.h"
