-
Notifications
You must be signed in to change notification settings - Fork 110
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
CIRGen support for *_atomic_{thread,signal}_fence
#1274
Comments
*thread_fence
*_atomic_{thread,signal}_fence
I will give it a try, assign me please |
@elhewaty awesome, just did! |
@bcardosolopes From my understanding, this is similar to adding an operation in MLIR dialect, and then referencing with the |
@Rajveer100 sure, we probably want a new cir::FenceOp that encodes (a) the sync scope somehow (perhaps a attribute enum kind that covers single_thread and system) and (b) the atomic ordering. If the atomic ordering isn't constant, we don't want to early expand it during CIRGen, but only during LLVM Lowering. Lowering to LLVM should also be implemented as part of the PR that fixes this. |
Part of llvm#1274 Implements atomic thread fence synchronization primitive corresponding to `atomic.thread_fence` CIR.
Part of llvm#1274 Implements atomic thread fence synchronization primitive corresponding to `atomic.thread_fence` CIR.
All the below are missing:
The text was updated successfully, but these errors were encountered: