[clang] [CIR][X86] Add NYI diagnostic for __builtin_ia32_sqrtps (PR #168320)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 17 11:54:19 PST 2025
================
@@ -20,17 +20,16 @@
using namespace clang;
using namespace clang::CIRGen;
-template <typename... Operands>
+namespace {
static mlir::Value emitIntrinsicCallOp(CIRGenFunction &cgf, const CallExpr *e,
- const std::string &str,
- const mlir::Type &resTy,
- Operands &&...op) {
- CIRGenBuilderTy &builder = cgf.getBuilder();
- mlir::Location location = cgf.getLoc(e->getExprLoc());
- return cir::LLVMIntrinsicCallOp::create(builder, location,
- builder.getStringAttr(str), resTy,
- std::forward<Operands>(op)...)
- .getResult();
+ llvm::StringRef name,
+ mlir::Type resultType,
+ llvm::ArrayRef<mlir::Value> args = {}) {
+ cgf.getCIRGenModule().errorNYI(
----------------
andykaylor wrote:
You've got some unrelated changes here. I'm not sure why this happened.
https://github.com/llvm/llvm-project/pull/168320
More information about the cfe-commits
mailing list