-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CIR][Dialect] Add minimal definitions of unified address space offload_*
cases
#738
Conversation
Our current focus is on the |
offload_*
casesoffload_*
cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also refactors the getValueFromLangAS method in tablegen to a hand-written method, because it should be a non-trivial map for unified AS.
👍
/// Convert CIRGen-processed LangAS to CIR AS storage value. | ||
/// For offloading languages like CUDA/SYCL, the actual LangAS like generic | ||
/// or private should be passed, rather than Default. | ||
/// Such "actual LangAS" should be figured out in CIRGen instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion to make this comment a bit clearer:
/// Convert CIRGen-processed LangAS to CIR AS storage value. | |
/// For offloading languages like CUDA/SYCL, the actual LangAS like generic | |
/// or private should be passed, rather than Default. | |
/// Such "actual LangAS" should be figured out in CIRGen instead. | |
/// Convert a clang LangAS to its corresponding CIR AS storage value. This | |
/// helper does not perform any language-specific mappings (e.g. determining | |
/// the default AS for offloading languages), so these must be handled in | |
/// the caller. |
Co-authored-by: Julian Oppermann <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, LGTM
…oad_*` cases (llvm#738) This PR adds definitions of unified address space cases `offload_*` discussed in [this RFC thread](https://discourse.llvm.org/t/rfc-clangir-unified-address-space-design-in-clangir/79728). It also refactors the `getValueFromLangAS` method in tablegen to a hand-written method, because it should be a non-trivial map for unified AS. --------- Co-authored-by: Julian Oppermann <[email protected]>
…oad_*` cases (llvm#738) This PR adds definitions of unified address space cases `offload_*` discussed in [this RFC thread](https://discourse.llvm.org/t/rfc-clangir-unified-address-space-design-in-clangir/79728). It also refactors the `getValueFromLangAS` method in tablegen to a hand-written method, because it should be a non-trivial map for unified AS. --------- Co-authored-by: Julian Oppermann <[email protected]>
…oad_*` cases (llvm#738) This PR adds definitions of unified address space cases `offload_*` discussed in [this RFC thread](https://discourse.llvm.org/t/rfc-clangir-unified-address-space-design-in-clangir/79728). It also refactors the `getValueFromLangAS` method in tablegen to a hand-written method, because it should be a non-trivial map for unified AS. --------- Co-authored-by: Julian Oppermann <[email protected]>
…oad_*` cases (llvm#738) This PR adds definitions of unified address space cases `offload_*` discussed in [this RFC thread](https://discourse.llvm.org/t/rfc-clangir-unified-address-space-design-in-clangir/79728). It also refactors the `getValueFromLangAS` method in tablegen to a hand-written method, because it should be a non-trivial map for unified AS. --------- Co-authored-by: Julian Oppermann <[email protected]>
…oad_*` cases (#738) This PR adds definitions of unified address space cases `offload_*` discussed in [this RFC thread](https://discourse.llvm.org/t/rfc-clangir-unified-address-space-design-in-clangir/79728). It also refactors the `getValueFromLangAS` method in tablegen to a hand-written method, because it should be a non-trivial map for unified AS. --------- Co-authored-by: Julian Oppermann <[email protected]>
This PR adds definitions of unified address space cases
offload_*
discussed in this RFC thread.It also refactors the
getValueFromLangAS
method in tablegen to a hand-written method, because it should be a non-trivial map for unified AS.