[clang] [CIR] Upstream __sync_<OP>_and_fetch builtins (PR #168347)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 17 12:58:23 PST 2025


================
@@ -553,6 +553,14 @@ mlir::Value CIRGenFunction::emitToMemory(mlir::Value value, QualType ty) {
   return value;
 }
 
+mlir::Value CIRGenFunction::emitFromMemory(mlir::Value value, QualType ty) {
+  if (!ty->isBooleanType() && hasBooleanRepresentation(ty)) {
----------------
andykaylor wrote:

```suggestion
  if (!ty->isBooleanType() && ty->hasBooleanRepresentation()) {
```

https://github.com/llvm/llvm-project/pull/168347


More information about the cfe-commits mailing list