Skip to content
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

Inline asm resolve expr #3109

Merged

Conversation

badumbatish
Copy link
Contributor

@badumbatish badumbatish commented Jul 31, 2024

This should resolve InlineAsm through its operand, depends on #3103

Relevant file for review is rust-ast-resolve-expr.h/cc

@badumbatish
Copy link
Contributor Author

For HIR::TypeCheckExpr, this weirdly depends on #3060 since asm_generic_il implements the hir visitor pattern for inline asm. To break dependency I think i'll implement hir type check inside asm_generic_il.

@CohenArthur thoughts?

gcc/rust/ChangeLog:

	* resolve/rust-ast-resolve-expr.cc (ResolveExpr::visit):
	Implement resolve expr for inline asm ast
	(translate_operand): Likewise.
	* resolve/rust-ast-resolve-expr.h: Likewise.
Copy link
Member

@CohenArthur CohenArthur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is exactly what you need to do :) looks great to me

@CohenArthur
Copy link
Member

For HIR::TypeCheckExpr, this weirdly depends on #3060 since asm_generic_il implements the hir visitor pattern for inline asm. To break dependency I think i'll implement hir type check inside asm_generic_il.

@CohenArthur thoughts?

that's fine with me!

@CohenArthur CohenArthur added this pull request to the merge queue Aug 2, 2024
Merged via the queue into Rust-GCC:master with commit 812c534 Aug 2, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants