[PATCH] D150530: [clang] Convert a few OpenMP tests to use opaque pointers

Sergei Barannikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 14 10:51:05 PDT 2023


barannikov88 added inline comments.


================
Comment at: clang/test/OpenMP/atomic_capture_codegen.cpp:868
-// CHECK: [[NEW_BF_VALUE:%.+]] = load i8, i8* [[BITCAST1]]
-// CHECK: [[RES:%.+]] = cmpxchg i8* getelementptr inbounds (%struct.BitFields4_packed, %struct.BitFields4_packed* @{{.+}}, i32 0, i32 0, i64 2), i8 [[OLD_BF_VALUE]], i8 [[NEW_BF_VALUE]] monotonic monotonic, align 1
 // CHECK: [[FAILED_OLD_VAL]] = extractvalue { i8, i1 } [[RES]], 0
----------------
Some GEPs like this one have changed the base type and are new missing inbounds keyword, is that OK?



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150530/new/

https://reviews.llvm.org/D150530



More information about the cfe-commits mailing list