This is an archive of the discontinued LLVM Phabricator instance.

MIR: Validate LLT types when parsing
ClosedPublic

Authored by arsenm on Feb 4 2019, 6:29 AM.

Details

Summary

Fixes asserting on anything invalid looking

Diff Detail

Event Timeline

arsenm created this revision.Feb 4 2019, 6:29 AM
paquette accepted this revision.Feb 4 2019, 2:03 PM

This seems like a pretty good idea... LGTM, aside from the one nit.

lib/CodeGen/MIRParser/MIParser.cpp
1344

Where are these values documented? Can we have a comment that points out where these are documented? I trust that the values are correct, but it'd be nice to know.

This revision is now accepted and ready to land.Feb 4 2019, 2:03 PM
arsenm marked an inline comment as done.Feb 4 2019, 2:11 PM
arsenm added inline comments.
lib/CodeGen/MIRParser/MIParser.cpp
1344

In LowLevelTypeImpl.h

arsenm closed this revision.Feb 4 2019, 3:00 PM
arsenm marked an inline comment as done.

r353107