diff options
author | Vinson Lee <[email protected]> | 2018-04-28 23:28:08 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2018-05-05 13:20:53 -0700 |
commit | cd5319a64fb1a9b080521a03e08202e48aca448e (patch) | |
tree | 9126294e7064f3c0d5230ab080b8cfc72b6b5ec9 /src/gallium/drivers/swr | |
parent | 2f1ad72ac17268989d4033e8e3f9460c68eae462 (diff) |
swr/rast: Fix include for createInstructionCombiningPass with llvm-7.0.
Fix build error after llvm-7.0.0svn r330669 ("InstCombine: Fix layering
by not including Scalar.h in InstCombine").
CXX rasterizer/jitter/libmesaswr_la-blend_jit.lo
rasterizer/jitter/blend_jit.cpp:816:20: error: use of undeclared identifier 'createInstructionCombiningPass'; did you mean 'createInstructionSimplifierPass'?
passes.add(createInstructionCombiningPass());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
createInstructionSimplifierPass
Suggested-by: George Kyriazis <[email protected]>
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-By: George Kyriazis <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp | 1 |
1 files changed, 1 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 216938fa7b0..001a1ab241f 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp @@ -69,6 +69,7 @@ using PassManager = llvm::legacy::PassManager; #include "llvm/Transforms/Scalar.h" #if LLVM_VERSION_MAJOR >= 7 #include "llvm/Transforms/Utils.h" +#include "llvm/Transforms/InstCombine/InstCombine.h" #endif #include "llvm/Support/Host.h" #include "llvm/Support/DynamicLibrary.h" |