-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Fix build breakage from: #167948 #168781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build breakage from: #167948 #168781
Conversation
It appears that this broke the build by not using the 'correct' name for the expression. This is probably something that crossed in review.
|
@llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) ChangesIt appears that this broke the build by not using the 'correct' name for the expression. This is probably something that crossed in review. Full diff: https://github.com/llvm/llvm-project/pull/168781.diff 1 Files Affected:
diff --git a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
index 08f44c7d87091..ac16702fb8e95 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
@@ -169,23 +169,23 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID,
case X86::BI__builtin_ia32_vec_set_v16hi:
case X86::BI__builtin_ia32_vec_set_v8si:
case X86::BI__builtin_ia32_vec_set_v4di:
- cgm.errorNYI(e->getSourceRange(),
+ cgm.errorNYI(expr->getSourceRange(),
std::string("unimplemented X86 builtin call: ") +
getContext().BuiltinInfo.getName(builtinID));
return {};
case X86::BI_mm_setcsr:
case X86::BI__builtin_ia32_ldmxcsr: {
- mlir::Location loc = getLoc(e->getExprLoc());
- Address tmp = createMemTemp(e->getArg(0)->getType(), loc);
+ mlir::Location loc = getLoc(expr->getExprLoc());
+ Address tmp = createMemTemp(expr->getArg(0)->getType(), loc);
builder.createStore(loc, ops[0], tmp);
- return emitIntrinsicCallOp(*this, e, "x86.sse.ldmxcsr", builder.getVoidTy(),
- tmp.getPointer());
+ return emitIntrinsicCallOp(*this, expr, "x86.sse.ldmxcsr",
+ builder.getVoidTy(), tmp.getPointer());
}
case X86::BI_mm_getcsr:
case X86::BI__builtin_ia32_stmxcsr: {
- mlir::Location loc = getLoc(e->getExprLoc());
- Address tmp = createMemTemp(e->getType(), loc);
- emitIntrinsicCallOp(*this, e, "x86.sse.stmxcsr", builder.getVoidTy(),
+ mlir::Location loc = getLoc(expr->getExprLoc());
+ Address tmp = createMemTemp(expr->getType(), loc);
+ emitIntrinsicCallOp(*this, expr, "x86.sse.stmxcsr", builder.getVoidTy(),
tmp.getPointer());
return builder.createLoad(loc, tmp);
}
|
|
@llvm/pr-subscribers-clangir Author: Erich Keane (erichkeane) ChangesIt appears that this broke the build by not using the 'correct' name for the expression. This is probably something that crossed in review. Full diff: https://github.com/llvm/llvm-project/pull/168781.diff 1 Files Affected:
diff --git a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
index 08f44c7d87091..ac16702fb8e95 100644
--- a/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp
@@ -169,23 +169,23 @@ mlir::Value CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID,
case X86::BI__builtin_ia32_vec_set_v16hi:
case X86::BI__builtin_ia32_vec_set_v8si:
case X86::BI__builtin_ia32_vec_set_v4di:
- cgm.errorNYI(e->getSourceRange(),
+ cgm.errorNYI(expr->getSourceRange(),
std::string("unimplemented X86 builtin call: ") +
getContext().BuiltinInfo.getName(builtinID));
return {};
case X86::BI_mm_setcsr:
case X86::BI__builtin_ia32_ldmxcsr: {
- mlir::Location loc = getLoc(e->getExprLoc());
- Address tmp = createMemTemp(e->getArg(0)->getType(), loc);
+ mlir::Location loc = getLoc(expr->getExprLoc());
+ Address tmp = createMemTemp(expr->getArg(0)->getType(), loc);
builder.createStore(loc, ops[0], tmp);
- return emitIntrinsicCallOp(*this, e, "x86.sse.ldmxcsr", builder.getVoidTy(),
- tmp.getPointer());
+ return emitIntrinsicCallOp(*this, expr, "x86.sse.ldmxcsr",
+ builder.getVoidTy(), tmp.getPointer());
}
case X86::BI_mm_getcsr:
case X86::BI__builtin_ia32_stmxcsr: {
- mlir::Location loc = getLoc(e->getExprLoc());
- Address tmp = createMemTemp(e->getType(), loc);
- emitIntrinsicCallOp(*this, e, "x86.sse.stmxcsr", builder.getVoidTy(),
+ mlir::Location loc = getLoc(expr->getExprLoc());
+ Address tmp = createMemTemp(expr->getType(), loc);
+ emitIntrinsicCallOp(*this, expr, "x86.sse.stmxcsr", builder.getVoidTy(),
tmp.getPointer());
return builder.createLoad(loc, tmp);
}
|
|
Looks like the problematic patch was reverted, so closing this! |
Pull request was closed
|
Please proceed, I haven't actually reverted it, more of a misclick. |
Got it! Enabled auto-merge as well, so as soon as CI succeeds, this will merge |
It appears that this broke the build by not using the 'correct' name for the expression. This is probably something that crossed in review.