Preliminary patch for D86050 where it makes it much easier to write reusable code if the expressions have the same operand methods.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D86083  
[SCEV] Add operand methods to Exprs ClosedPublic Authored by samparker on Aug 17 2020, 8:34 AM. 
Details 
 Summary Preliminary patch for D86050 where it makes it much easier to write reusable code if the expressions have the same operand methods. 
Diff Detail 
 Event Timelinelebedev.ri added inline comments. This revision now requires changes to proceed.Aug 17 2020, 8:48 AM This revision is now accepted and ready to land.Aug 21 2020, 9:07 AM Closed by commit rGb999400a4fb6: [SCEV] Add operand methods to Cast and UDiv (authored by samparker).  ·  Explain WhyAug 23 2020, 10:57 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 287295 llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I do not understand why you need std::array here.
op_range operands() const { return make_range(Op, Op+1); }will just work