[PATCH] D88391: [M68k] (Patch 5/8) Target lowering

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 01:59:45 PST 2021


RKSimon added inline comments.


================
Comment at: llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp:699
+      if (isAddressBase(N.getOperand(i))) {
+        return true;
+      }
----------------
myhsu wrote:
> RKSimon wrote:
> > use llvm::any_of ?
> I wish I could...but I don't think SDValue provides any iterator (or begin() / end() / ranges function) over its operands
You should be able to use SDNode::ops() (or op_begin()/op_end()) - its a SDUse iterator but the SDValue is available through it.


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

https://reviews.llvm.org/D88391



More information about the llvm-commits mailing list