This is an archive of the discontinued LLVM Phabricator instance.

[LangRef] Correct value ranges for address space, vector, and float bit sizes.
ClosedPublic

Authored by hliao on Feb 23 2023, 4:35 PM.

Details

Summary
  • The current implementation checks them for 24-bit inegers but the document says 23-bit one effectively by listing the range as [1,2^23).
  • Minor error message correction.

Diff Detail

Event Timeline

hliao created this revision.Feb 23 2023, 4:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2023, 4:35 PM
hliao requested review of this revision.Feb 23 2023, 4:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2023, 4:35 PM
arsenm accepted this revision.Feb 23 2023, 4:55 PM
arsenm added inline comments.
llvm/lib/IR/DataLayout.cpp
308

probably should have test coverage for this

574

probably should have test coverage for this

This revision is now accepted and ready to land.Feb 23 2023, 4:55 PM
This revision was landed with ongoing or failed builds.Feb 23 2023, 6:54 PM
This revision was automatically updated to reflect the committed changes.
hliao marked 2 inline comments as done.Feb 23 2023, 6:55 PM