https://github.com/andykaylor created 
https://github.com/llvm/llvm-project/pull/177706

The emitIntrinsicCallOp function was moved from the architecture-specific 
builtin implementation files to a shared location in CIRGenBuilderTy by 
https://github.com/llvm/llvm-project/pull/172735. Unfortunately, a few changes 
had been merged before that change was landed and it broke the build. This 
updates the broken call sites.

>From 3baca763a48f664e034261cf76d982735be6c3bb Mon Sep 17 00:00:00 2001
From: Andy Kaylor <[email protected]>
Date: Fri, 23 Jan 2026 15:44:08 -0800
Subject: [PATCH] [CIR][NFC] Fix build after emitIntrinsicCallOp change

The emitIntrinsicCallOp function was moved from the architecture-specific
builtin implementation files to a shared location in CIRGenBuilderTy by
https://github.com/llvm/llvm-project/pull/172735. Unfortunately, a few
changes had been merged before that change was landed and it broke the build.
This updates the broken call sites.
---
 clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp 
b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
index e07fb3d35ab45..18f1c77d5f23a 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
@@ -2091,7 +2091,7 @@ CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, 
const CallExpr *expr) {
                              cir::RecordType::RecordKind::Struct);
 
     mlir::Value call =
-        emitIntrinsicCallOp(builder, loc, intrinsicName, resRecord);
+        builder.emitIntrinsicCallOp(loc, intrinsicName, resRecord);
     mlir::Value rand =
         cir::ExtractMemberOp::create(builder, loc, randTy, call, 0);
     builder.CIRBaseBuilderTy::createStore(loc, rand, ops[0]);
@@ -2328,9 +2328,9 @@ CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, 
const CallExpr *expr) {
 
     const StringRef intrinsicName =
         (builtinID == X86::BI__shiftleft128) ? "fshl" : "fshr";
-    return emitIntrinsicCallOp(builder, getLoc(expr->getExprLoc()),
-                               intrinsicName, i64Ty,
-                               mlir::ValueRange{ops[0], ops[1], ops[2]});
+    return builder.emitIntrinsicCallOp(
+        getLoc(expr->getExprLoc()), intrinsicName, i64Ty,
+        mlir::ValueRange{ops[0], ops[1], ops[2]});
   }
   case X86::BI_ReadWriteBarrier:
   case X86::BI_ReadBarrier:

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to