From 066d1dc951d3a0833de6abd8e004bf467e6e50eb Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Tue, 19 Sep 2017 14:04:20 -0500 Subject: swr/rast: remove llvm fence/atomics from generated files We currently don't use these instructions, and since their API changed in llvm-5.0 having them in the autogen files broke the mesa release tarballs which ship with generated autogen files. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102847 CC: mesa-stable@lists.freedesktop.org Tested-by: Laurent Carlier Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py index 025d38ab336..ce892a9abe8 100644 --- a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py +++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py @@ -140,6 +140,14 @@ def parse_ir_builder(input_file): ignore = False + # The following functions need to be ignored in openswr. + # API change in llvm-5.0 breaks baked autogen files + if ( + (func_name == 'CreateFence' or + func_name == 'CreateAtomicCmpXchg' or + func_name == 'CreateAtomicRMW')): + ignore = True + # The following functions need to be ignored. if (func_name == 'CreateInsertNUWNSWBinOp' or func_name == 'CreateMaskedIntrinsic' or -- cgit v1.2.3