[clang] [CIR][CIRGen][Builtin][X86] Masked compress Intrinsics (PR #169582)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 27 06:46:09 PST 2025
================
@@ -89,6 +89,14 @@ static mlir::Value getMaskVecValue(CIRGenFunction &cgf, const CallExpr *expr,
}
return maskVec;
}
+static mlir::Value emitX86CompressExpand(CIRGenFunction &cgf, const CallExpr *expr,ArrayRef<mlir::Value> ops, bool IsCompress, const std::string &ID){
+ auto ResultTy = cast<cir::VectorType>(ops[1].getType());
+ mlir::Value MaskValue = getMaskVecValue(cgf, expr, ops[2], cast<cir::VectorType>(ResultTy).getSize());
+ llvm::SmallVector<mlir::Value, 4> op{ops[0], ops[1], MaskValue};
+
+ return emitIntrinsicCallOp(cgf,expr, ID, ResultTy, op);
+
----------------
cs25resch11005-bhuvan wrote:
Addressed in the latest commit
https://github.com/llvm/llvm-project/pull/169582
More information about the cfe-commits
mailing list