-
Notifications
You must be signed in to change notification settings - Fork 146
[CIR][CodeGen][Lowering] Better handling of alloca address space with unified AS #682
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -335,6 +335,11 @@ class CIRGenModule : public CIRGenTypeCache { | |
/// in AST is always in default address space. | ||
LangAS getGlobalConstantAddressSpace() const; | ||
|
||
/// Returns the address space for temporary alloca in the language. This makes | ||
/// the allocated variable's address matches the expectation of AST, rather | ||
/// than keep the address space of the alloca in CIR. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch, thanks~
Sorry for my dumbness, could you please elaborate the "defer mapping" approach? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, just a minor nit, I meant that by using the language's AS in CIR, we defer the mapping to the target-specific AS that is used for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I got it. I've forgotten what I wrote in the comment😂Surely will fix it. |
||
LangAS getLangTempAllocaAddressSpace() const; | ||
|
||
/// Set attributes which are common to any form of a global definition (alias, | ||
/// Objective-C method, function, global variable). | ||
/// | ||
|
Uh oh!
There was an error while loading. Please reload this page.