Skip to content

Commit b644597

Browse files
author
Simon Moll
committed
[vp]mergefix: missing vp_trunc and vp_ctpop
1 parent 74c3e23 commit b644597

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

llvm/include/llvm/IR/VPIntrinsics.def

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,13 @@ HELPER_REGISTER_BINARY_INT_VP(vp_xor, VP_XOR, Xor)
198198

199199
#undef HELPER_REGISTER_BINARY_INT_VP
200200

201+
// llvm.vp.ctpop(x,mask,vlen)
202+
BEGIN_REGISTER_VP(vp_ctpop, 1, 2, VP_CTPOP, -1)
203+
VP_PROPERTY_FUNCTIONAL_INTRINSIC(ctpop)
204+
VP_PROPERTY_UNARYOP
205+
END_REGISTER_VP(vp_ctpop, VP_CTPOP)
206+
207+
201208
///// } Integer Arithmetic
202209

203210
///// Floating-Point Arithmetic {
@@ -357,6 +364,13 @@ VP_PROPERTY_CONSTRAINEDFP(1, 1, experimental_constrained_nearbyint)
357364
VP_PROPERTY_FUNCTIONAL_INTRINSIC(nearbyint)
358365
END_REGISTER_VP(vp_nearbyint, VP_FNEARBYINT)
359366

367+
// llvm.vp.trunc(x,mask,vlen)
368+
BEGIN_REGISTER_VP(vp_trunc, 1, 2, VP_TRUNC, -1)
369+
VP_PROPERTY_UNARYOP
370+
VP_PROPERTY_CONSTRAINEDFP(0, 1, experimental_constrained_trunc)
371+
VP_PROPERTY_FUNCTIONAL_INTRINSIC(trunc)
372+
END_REGISTER_VP(vp_trunc, VP_TRUNC)
373+
360374
///// } Rounding
361375

362376
///// Memory Operations {

0 commit comments

Comments
 (0)