[PATCH] D113107: Support of expression granularity for _Float16.
Zahira Ammarguellat via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 16 07:13:39 PDT 2022
zahiraam marked 2 inline comments as done.
zahiraam added inline comments.
================
Comment at: clang/lib/CodeGen/CGExprScalar.cpp:3140
+ return CGF.Builder.CreateFPExt(result, ConvertType(E->getType()));
+ }
+ return result;
----------------
rjmccall wrote:
> Please extract this block out as:
>
> ```
> llvm::Value *EmitPromotedValue(llvm::Value *result, QualType PromotionType);
> ```
These changes you are proposing is when the argument of the unary __imag / __real is of type _Complex Float16. I would think that this new method EmitPromotedValue would be replacing the equivalent code in ComplexEmitter::EmitPromoted instead, not in the scalar emitter, right?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113107/new/
https://reviews.llvm.org/D113107
More information about the llvm-commits
mailing list