There is nothing x86-specific about this code, so it'd be nice to make this available for other targets to use in the future (and get it out of X86ISelLowering!). Although an initial trawl through other targets didn't find existing equivalent code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/CodeGen/SelectionDAG.h | ||
---|---|---|
1510 ↗ | (On Diff #158323) | This looks like a good thing to put in target-independent code (especially because it is matching a canonical form). We should document BinOp and CandidateBinOps here. Also. where is BinOp unsigned and CandidateBinOps is an array of ISD::NodeType? Should BinOp also be ISD::NodeType& ? |
include/llvm/CodeGen/SelectionDAG.h | ||
---|---|---|
1510 ↗ | (On Diff #158323) | That was how it was in x86 - but we should clean it up here. Should we stick to ISD::NodeType or should we relax it to unsigned to allow us to use target ISD opcodes? |