================
@@ -410,6 +410,14 @@ bool maskIsAllOneOrUndef(Value *Mask);
 /// for each lane which may be active.
 APInt possiblyDemandedEltsInMask(Value *Mask);
 
+/// Returns the cost of a call when a target has a vector library function for
+/// the given \p VecTy, otherwise an invalid cost.
----------------
paulwalker-arm wrote:

I think this misses a crucial point as to why it exists.  Perhaps something 
like:

"Returns the cost of a vector instruction based on the assumption that it'll be 
later transformed (by ReplaceWithVecLib) into a call to a platform specific 
vector math function.  Instructions unsupported by ReplaceWithVecLib will 
return InstructionCost::getInvalid()."

https://github.com/llvm/llvm-project/pull/82488
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to