================
@@ -1633,12 +1633,16 @@ class TargetTransformInfo {
/// provide even more information.
/// \p TLibInfo is used to search for platform specific vector library
/// functions for instructions that might be converted to calls (e.g. frem).
+ /// \p Scalars are the scalar instructions of the lanes of a vector
operation,
+ /// if known. The target may use them for the properties that differ between
+ /// the lanes, where \p CtxI shows only one lane.
LLVM_ABI InstructionCost getArithmeticInstrCost(
unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind,
TTI::OperandValueInfo Opd1Info = {TTI::OK_AnyValue, TTI::OP_None},
TTI::OperandValueInfo Opd2Info = {TTI::OK_AnyValue, TTI::OP_None},
ArrayRef<const Value *> Args = {}, const Instruction *CtxI = nullptr,
- const TargetLibraryInfo *TLibInfo = nullptr) const;
+ const TargetLibraryInfo *TLibInfo = nullptr,
+ ArrayRef<const Value *> Scalars = {}) const;
----------------
michaelselehov wrote:
Probably you're right. I hope it won't be me making the change. Unless you want
me to do it in the scope of this PR.
https://github.com/llvm/llvm-project/pull/241758
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits