[PATCH] D116161: [Clang] Add an overload for emitUnaryBuiltin.
Florian Hahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 24 00:44:14 PST 2021
fhahn added inline comments.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:3137
else
Result = Builder.CreateUnaryIntrinsic(llvm::Intrinsic::fabs, Op0, nullptr,
"elt.abs");
----------------
Should also be used here?
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:3193
Value *Op0 = EmitScalarExpr(E->getArg(0));
Value *Result = Builder.CreateUnaryIntrinsic(
GetIntrinsicID(E->getArg(0)->getType(), Op0->getType()), Op0, nullptr,
----------------
Should also be used here?
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:3212
Value *Op0 = EmitScalarExpr(E->getArg(0));
Value *Result = Builder.CreateUnaryIntrinsic(
GetIntrinsicID(E->getArg(0)->getType(), Op0->getType()), Op0, nullptr,
----------------
Should also be used here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116161/new/
https://reviews.llvm.org/D116161
More information about the cfe-commits
mailing list