[PATCH] D139213: [llvm][CUDA] Make NVVM Reflect pass look inside ptr casting
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 10:55:38 PST 2022
tra added inline comments.
================
Comment at: llvm/include/llvm/IR/InstrTypes.h:1407
+ if (auto *Operand = getCalledOperand())
+ return dyn_cast_or_null<Function>(Operand->stripPointerCasts());
+ return nullptr;
----------------
Does it need a type check as it's done in `getCalledFunction()` above after a similar cast?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139213/new/
https://reviews.llvm.org/D139213
More information about the llvm-commits
mailing list