swr/rast: remove llvm fence/atomics from generated files
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 19 Sep 2017 19:04:20 +0000 (14:04 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 22 Sep 2017 16:38:57 +0000 (11:38 -0500)
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 <lordheavym@gmail.com>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py

index 025d38ab336639e2741a1319672782ef92817e59..ce892a9abe8cdbf086e55d314bb94480cd14a92b 100644 (file)
@@ -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