This is an archive of the discontinued LLVM Phabricator instance.

[LLVMContextImpl] Separate out opaque pointers
ClosedPublic

Authored by aeubanks on Feb 27 2023, 1:19 PM.

Details

Summary

To make the map lookups simpler for opaque pointers and to simplify future typed pointer code removal. No significant compile time wins though.

While we're here, remove the address space 0 optimization for typed pointers.

Diff Detail

Event Timeline

aeubanks created this revision.Feb 27 2023, 1:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 1:19 PM
aeubanks requested review of this revision.Feb 27 2023, 1:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 1:19 PM
nikic added inline comments.Feb 27 2023, 1:51 PM
llvm/lib/IR/Type.cpp
753

Could keep only LegacyASPointerTypes? We don't need the optimization anymore.

aeubanks updated this revision to Diff 500902.Feb 27 2023, 1:57 PM

remove AS 0 optimization for typed pointers

aeubanks edited the summary of this revision. (Show Details)Feb 27 2023, 1:58 PM
nikic accepted this revision.Feb 27 2023, 2:06 PM

LGTM

This revision is now accepted and ready to land.Feb 27 2023, 2:06 PM
This revision was landed with ongoing or failed builds.Feb 27 2023, 2:13 PM
This revision was automatically updated to reflect the committed changes.