projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cbecb6
)
ac/nir: Fix include for LLVMAddPromoteMemoryToRegisterPass
author
Mike Lothian
<mike@fireburn.co.uk>
Sun, 1 Apr 2018 00:32:20 +0000
(
01:32
+0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 2 Apr 2018 18:27:29 +0000
(14:27 -0400)
Include llvm-c/Transforms/Utils.h with the newest LLVM 7
Signed-of-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/amd/vulkan/radv_nir_to_llvm.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_nir_to_llvm.c
b/src/amd/vulkan/radv_nir_to_llvm.c
index
c6b4e8b
..
2f0864d
100644
(file)
--- a/
src/amd/vulkan/radv_nir_to_llvm.c
+++ b/
src/amd/vulkan/radv_nir_to_llvm.c
@@
-32,6
+32,9
@@
#include <llvm-c/Core.h>
#include <llvm-c/TargetMachine.h>
#include <llvm-c/Transforms/Scalar.h>
+#if HAVE_LLVM >= 0x0700
+#include <llvm-c/Transforms/Utils.h>
+#endif
#include "sid.h"
#include "gfx9d.h"