This is an archive of the discontinued LLVM Phabricator instance.

isUndef() interface for SDNode - proposal
ClosedPublic

Authored by delena on Sep 9 2015, 1:50 AM.

Details

Summary

I'd like to add isUndef() interface to SDNode, it is really missing for me
The code
(V1.getOpcode() == ISD::UNDEF)

will look

V1.isUndef()

What do you think?

Diff Detail

Repository
rL LLVM

Event Timeline

delena updated this revision to Diff 34300.Sep 9 2015, 1:50 AM
delena retitled this revision from to isUndef() interface for SDNode - proposal.
delena updated this object.
delena added reviewers: chandlerc, nadav, spatel.
delena set the repository for this revision to rL LLVM.
delena added a subscriber: llvm-commits.
chandlerc edited edge metadata.Sep 9 2015, 1:55 AM

Makes sense to me. Curious if Hal, Quentin, or others see anything wrong with this?

qcolombet edited edge metadata.Sep 9 2015, 9:37 AM

Makes sense to me too.

Cheers,
Q.

This revision was automatically updated to reflect the committed changes.