This is an archive of the discontinued LLVM Phabricator instance.

[WIP][IR] Add RangeMetadata on top of ExtMetadata
Needs ReviewPublic

Authored by nhaehnle on Jun 22 2023, 1:27 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

This is an extremely rough draft of a potential change to replace !range
metadata by something implemented on top of ExtMetadata.

That is, replace

!range !{ i32 5, i32 20 }

by something like

!range !llvm.range{ ranges: [{ lo: i32 5, hi: i32 20 }] }

Structured data doesn't actually have arrays at the time of writing, so
the draft is limited to a single lo/hi pair. The main point is to show
a concrete example and explore how the ExtMetadata infrastructure is used.

Diff Detail

Event Timeline

nhaehnle created this revision.Jun 22 2023, 1:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 1:27 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nhaehnle requested review of this revision.Jun 22 2023, 1:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 1:27 AM