-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add a MLIR dialect for ghidra pcode. #2
Conversation
Co-authored-by: Henrich Lauko <[email protected]>
struct mlir_codegen_visitor | ||
{ | ||
mlir::OpBuilder bld; | ||
mlir::MLIRContext *ctx; |
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.
Can it be nullptr
? No? Make it a ref, and introduce a type alias.
using type_t = mlir::Type; | ||
using value_t = mlir::Value; | ||
using string_view = std::string_view; | ||
using values_ref = llvm::ArrayRef< value_t >; |
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.
Move all of these to some shared header, we are going to use them all over the place.
visit(inst); | ||
} | ||
return bop; | ||
} |
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.
This is the same as the one above really.
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.
and the one below.
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.
Do you mean the cg::operator()
method as a whole or just the name?
No description provided.