llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clangir

Author: Andy Kaylor (andykaylor)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/177706.diff


1 Files Affected:

- (modified) clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp (+4-4) 


``````````diff
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:

``````````

</details>


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

Reply via email to