aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2019-12-13 20:47:51 -0800
committerVinson Lee <[email protected]>2019-12-21 16:36:27 -0800
commit2d971cc1cafbe4396a890f60764ce532b4872c30 (patch)
treef660a34061f50b59cd83387becb647074ec6bd59 /src/gallium/drivers/swr/rasterizer
parentbc943d00aa0b6c67e3031805955b4278041321c2 (diff)
swr: Fix build with llvm-10.0.
Fix build error after llvm-10 commit 5d986953c8b9 ("[IR] Split out target specific intrinsic enums into separate headers"). ../src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp:78:37: error: ‘x86_bmi_bextr_32’ is not a member of ‘llvm::Intrinsic’ {"meta.intrinsic.BEXTR_32", Intrinsic::x86_bmi_bextr_32}, ^ Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Krzysztof Raszkowski <[email protected]> Reviewed-by: Jan Zielinski <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
index 42b2d6d8096..6b9a6b3375f 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
@@ -49,6 +49,9 @@
#include "llvm/IR/Type.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/IntrinsicInst.h"
+#if LLVM_VERSION_MAJOR >= 10
+#include "llvm/IR/IntrinsicsX86.h"
+#endif
#include "llvm/ExecutionEngine/ObjectCache.h"
#include "llvm/IR/Verifier.h"