[llvm] Reland "[NVPTX] Support copysign PTX instruction" (PR #108125)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 08:38:01 PDT 2024
================
@@ -4401,6 +4401,10 @@ class TargetLowering : public TargetLoweringBase {
/// Return true if the target supports ptrauth operand bundles.
virtual bool supportPtrAuthBundles() const { return false; }
+ /// Return true if the target supports FCOPYSIGN nodes with operands of
+ /// mismatched types.
+ virtual bool supportMismatchCopysign() const { return true; }
----------------
AlexMaclean wrote:
Fair enough. To be honest, I think it might be best to change the type of FCOPYSIGN since it seems like most targets do not benefit from the mismatched types and must instead add additional logic to re-insert the proper extension/truncation. That being said for the purposes of this change I've removed this API and instead added custom lowering to a node with matching types.
https://github.com/llvm/llvm-project/pull/108125
More information about the llvm-commits
mailing list