================
@@ -606,17 +606,23 @@ mlir::Value ComplexExprEmitter::emitBinAdd(const
BinOpInfo &op) {
mlir::isa<cir::ComplexType>(op.rhs.getType()))
return cir::ComplexAddOp::create(builder, op.loc, op.lhs, op.rhs);
+ auto createAdd = [&](mlir::Location loc, mlir::Value a, mlir::Value b) {
+ return cir::isFPOrVectorOfFPType(a.getType())
----------------
erichkeane wrote:
Can we add an assert that `b` is the same here too? Perhaps in each of these
create functions:
`assert(cir::isFPOrVectorOfFPType(a.getType()) ==
cir::isFPOrVectorOfFPType(b.getType()))` ?
https://github.com/llvm/llvm-project/pull/201462
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits