[llvm] cdb7763 - [VP] Mark llvm.vp.copysign as a binary op
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 05:53:40 PDT 2023
Author: Luke Lau
Date: 2023-04-14T13:53:34+01:00
New Revision: cdb77634418874937298ffe01560ff06e9354157
URL: https://github.com/llvm/llvm-project/commit/cdb77634418874937298ffe01560ff06e9354157
DIFF: https://github.com/llvm/llvm-project/commit/cdb77634418874937298ffe01560ff06e9354157.diff
LOG: [VP] Mark llvm.vp.copysign as a binary op
I was working on legalising vector binary ops to their VP counterparts when I noticed that `vp_copysign` wasn't marked as a binary op. It looks like this might have been an oversight, so this marks it as one.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D148241
Added:
Modified:
llvm/include/llvm/IR/VPIntrinsics.def
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/VPIntrinsics.def b/llvm/include/llvm/IR/VPIntrinsics.def
index 85ca1ee2919db..b949f9f590679 100644
--- a/llvm/include/llvm/IR/VPIntrinsics.def
+++ b/llvm/include/llvm/IR/VPIntrinsics.def
@@ -324,6 +324,7 @@ END_REGISTER_VP(vp_fmuladd, VP_FMULADD)
// llvm.vp.copysign(x,y,mask,vlen)
BEGIN_REGISTER_VP(vp_copysign, 2, 3, VP_FCOPYSIGN, -1)
+VP_PROPERTY_BINARYOP
END_REGISTER_VP(vp_copysign, VP_FCOPYSIGN)
// llvm.vp.minnum(x, y, mask,vlen)
More information about the llvm-commits
mailing list