[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 17 08:56:58 PDT 2025
================
@@ -49,6 +49,14 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
}
}
+ switch (builtinID) {
+ case Builtin::BI__builtin_complex: {
+ mlir::Value real = emitScalarExpr(e->getArg(0));
+ mlir::Value imag = emitScalarExpr(e->getArg(1));
+ return RValue::getComplex(real, imag);
----------------
AmrDeveloper wrote:
Yes, once #144519 is merged, I will update it
https://github.com/llvm/llvm-project/pull/144225
More information about the cfe-commits
mailing list