You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After switching to a separate address space attribute in CIR, we need
better helper methods in CIR builder.
This PR provides:
* two versions of `getPointerTo`, consuming `LangAS` or
`AddressSpaceAttr`.
* an extra helper method `getAddrSpaceAttr(LangAS)` that is used by
`getPointerTo(LangAS)` and other potential use cases (mainly about
address space cast in the future).
Calls to `getPointerTo` without addrspace will invoke the version
consuming `AddressSpaceAttr` and return a type with null addrspace
attribute, which should be exactly what we expect for CIRBuilder.
0 commit comments