Allow IntToPtrInst to carry !dereferenceable metadata tag.
This is valid since !dereferenceable can be only be applied to
pointer type values.
Change-Id: If8a6e3c616f073d51eaff52ab74535c29ed497b4
Differential D64954
[IR][Verifier] Allow IntToPtrInst to be !dereferenceable rtaylor on Jul 18 2019, 3:38 PM. Authored by
Details Allow IntToPtrInst to carry !dereferenceable metadata tag. Change-Id: If8a6e3c616f073d51eaff52ab74535c29ed497b4
Diff Detail
Event Timeline
Comment Actions Are you planning to teach Value::getPointerDereferenceableBytes about this? The rest of the pipeline "should" then "just work" and use the information.
Comment Actions Changed LangRef.rst to reflect !dereferenceable is applicable to pointer types not Changed logic in verifier. Comment Actions Thanks! Could you please also add a test to Analysis/ValueTracking/memory-dereferenceable.ll?
Comment Actions Changed LangRef.rst: Moved !dereferenceable and !dereferenceable_or_null to their Added test for Analysis/ValueTracking.
Comment Actions LGTM, though I believe the hyperlinks in :ref: need to be without the underscore (and other examples of :ref: use seem to corroborate that). |
Why ^? I personally find that confusing. || should do just fine.