================
@@ -90,6 +90,14 @@ static mlir::Value getMaskVecValue(CIRGenFunction &cgf,
const CallExpr *expr,
return maskVec;
}
+static mlir::Value emitX86CompressStore(CIRGenFunction &cgf, const CallExpr
*expr, ArrayRef<mlir::Value> ops){
+ auto ResultTy = cast<cir::VectorType>(ops[1].getType());
+ mlir::Value MaskValue = getMaskVecValue(cgf, expr, ops[2],
cast<cir::VectorType>(ResultTy).getSize());
+ mlir::Value ptr = ops[0];
+
+ return emitIntrinsicCallOp(cgf, expr, "masked_compressstore", ResultTy,
llvm::SmallVector<mlir::Value, 3>{ops[1], ptr, MaskValue});
----------------
andykaylor wrote:
```suggestion
return emitIntrinsicCallOp(builder, loc, "masked_compressstore", ResultTy,
mlir::ValueRange{ops[1], ptr, MaskValue});
```
https://github.com/llvm/llvm-project/pull/169648
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits