Skip to content

[SandboxIR] Implement FenceInst #105920

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

Merged
merged 1 commit into from
Aug 26, 2024
Merged

[SandboxIR] Implement FenceInst #105920

merged 1 commit into from
Aug 26, 2024

Conversation

vporpo
Copy link
Contributor

@vporpo vporpo commented Aug 24, 2024

This patch implements sandboxir::FenceInst mirroring llvm::FenceInst.

This patch implements sandboxir::FenceInst mirroring llvm::FenceInst.
Copy link
Member

@tmsri tmsri left a comment

Choose a reason for hiding this comment

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

Rather straightforward, approving.

@@ -575,6 +575,33 @@ void Instruction::dumpOS(raw_ostream &OS) const {
}
#endif // NDEBUG

FenceInst *FenceInst::create(AtomicOrdering Ordering, BBIterator WhereIt,
BasicBlock *WhereBB, Context &Ctx,
Copy link
Member

Choose a reason for hiding this comment

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

Why not use llvm::InsertPosition to define where to insert?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have an InsertPosition class yet. We will refactor all create() functions at some point to use that once it's available.

@vporpo vporpo merged commit d88876e into llvm:main Aug 26, 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