[PATCH] D132146: [PowerPC] XCOFF exception section support on the direct assembler path and exception language and reason code lowering from trap intrinsics
Paul Scoropan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 26 06:06:38 PDT 2022
pscoro marked an inline comment as done.
pscoro added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:16247
+ }
+ return Result;
+}
----------------
RKSimon wrote:
> This is always SDvalue()? If you're never going to create a node and just collect operands, I'd suggest you don't call this 'LowerTargetIntrinsic' and replace it with something more suitable (collectTargetIntrinsicOperands?)
The idea was to keep the hook somewhat open ended. This particular intrinsic does not require anything besides operand collection but in general another target intrinsic may require additional custom lowering steps. Since its unavoidable that this hook is called for every target intrinsic, shouldn't the hook be general enough that additional intrinsic cases can be added to it later? Let me know what you think.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132146/new/
https://reviews.llvm.org/D132146
More information about the llvm-commits
mailing list