[llvm-dev] Handling node through TargetLowering::LowerOperation vs TargetLowering::ReplaceNodeResults

Przemyslaw Ossowski via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 28 09:10:25 PST 2020


Hi,

I see that for different targets in classes which inherits from
TargetLowering there are implemented both methods:

LowerOperation and ReplaceNodeResults



What decides that for one given ISD we have to add handling in
LowerOperation and for other in ReplaceNodeResults, when for both
SetOperationAction is configured to be Custom?


Is it related with number of results of given operation and LowerOperation
is called when there is only one SDValue?



Thanks,

Przemek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200128/02528705/attachment.html>


More information about the llvm-dev mailing list