This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Move matchUnaryPredicate/matchBinaryPredicate into SelectionDAGNodes.h
ClosedPublic

Authored by RKSimon on Feb 19 2018, 7:48 AM.

Details

Summary

To allow us to improve vector constant matching in more DAG code (backends, TargetLowering etc.) I'd like to move these into the SelectionDAGNodes.h header under the ISD namespace.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Feb 19 2018, 7:48 AM
craig.topper added inline comments.Feb 21 2018, 9:38 AM
include/llvm/CodeGen/SelectionDAGNodes.h
2337 ↗(On Diff #134915)

Do we really want these inlined? Should their bodies be in SelectionDAG.cpp like isBuildVectorAllZeros?

RKSimon updated this revision to Diff 135427.Feb 22 2018, 7:53 AM

Don't inline matchUnaryPredicate/matchBinaryPredicate

This revision is now accepted and ready to land.Feb 22 2018, 9:06 AM
This revision was automatically updated to reflect the committed changes.