This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Add G_ISNAN
ClosedPublic

Authored by paquette on Aug 17 2021, 10:49 AM.

Details

Summary

Add a generic opcode equivalent to the llvm.isnan intrinsic + MachineVerifier support for it.

We need an opcode here because we may want target-specific lowering later on.

Diff Detail

Event Timeline

paquette created this revision.Aug 17 2021, 10:49 AM
paquette requested review of this revision.Aug 17 2021, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2021, 10:49 AM
Herald added a subscriber: wdng. · View Herald Transcript

Add a docs entry?

llvm/lib/CodeGen/MachineVerifier.cpp
959–960

Yes, pointers shouldn't be valid.

paquette updated this revision to Diff 367076.Aug 17 2021, 5:52 PM
  • Add docs
  • Change comment
aemerson accepted this revision.Aug 17 2021, 11:12 PM
This revision is now accepted and ready to land.Aug 17 2021, 11:12 PM
This revision was automatically updated to reflect the committed changes.