[PATCH] D132966: [TTI] Allow passing ArrayRef of context instructions (NFC).

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 12:59:42 PDT 2022


ABataev added inline comments.


================
Comment at: llvm/include/llvm/Analysis/TargetTransformInfo.h:1083
       ArrayRef<const Value *> Args = ArrayRef<const Value *>(),
-      const Instruction *CxtI = nullptr) const;
+      ArrayRef<const Instruction *> CxtIs = {}) const;
 
----------------
`= None`


================
Comment at: llvm/include/llvm/Analysis/TargetTransformInfo.h:2290
+                         ArrayRef<const Value *> Args,
+                         ArrayRef<const Instruction *> CxtIs = {}) override {
     return Impl.getArithmeticInstrCost(Opcode, Ty, CostKind, Opd1Info, Opd2Info,
----------------
`= None`


================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:824
       ArrayRef<const Value *> Args = ArrayRef<const Value *>(),
-      const Instruction *CxtI = nullptr) {
+      ArrayRef<const Instruction *> CxtIs = {}) {
     // Check if any of the operands are vector operands.
----------------
`= None`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132966/new/

https://reviews.llvm.org/D132966



More information about the llvm-commits mailing list