Skip to content

[mlir][scf] DCE unimplemented decls in TDs #121237

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 3 commits into from
Dec 28, 2024

Conversation

makslevental
Copy link
Contributor

More dead code in headers...

More dead code in headers...
@llvmbot
Copy link
Member

llvmbot commented Dec 27, 2024

@llvm/pr-subscribers-mlir-llvm

@llvm/pr-subscribers-mlir-scf

Author: Maksim Levental (makslevental)

Changes

More dead code in headers...


Full diff: https://github.com/llvm/llvm-project/pull/121237.diff

1 Files Affected:

  • (modified) mlir/include/mlir/Dialect/SCF/IR/SCF.h (-6)
diff --git a/mlir/include/mlir/Dialect/SCF/IR/SCF.h b/mlir/include/mlir/Dialect/SCF/IR/SCF.h
index b62c9417979478..ba648181daecb4 100644
--- a/mlir/include/mlir/Dialect/SCF/IR/SCF.h
+++ b/mlir/include/mlir/Dialect/SCF/IR/SCF.h
@@ -40,12 +40,6 @@ void buildTerminatedBody(OpBuilder &builder, Location loc);
 namespace mlir {
 namespace scf {
 
-// Insert `loop.yield` at the end of the only region's only block if it
-// does not have a terminator already.  If a new `loop.yield` is inserted,
-// the location is specified by `loc`. If the region is empty, insert a new
-// block first.
-void ensureLoopTerminator(Region &region, Builder &builder, Location loc);
-
 /// Returns the loop parent of an induction variable. If the provided value is
 /// not an induction variable, then return nullptr.
 ForOp getForInductionVarOwner(Value val);

@llvmbot
Copy link
Member

llvmbot commented Dec 27, 2024

@llvm/pr-subscribers-mlir

Author: Maksim Levental (makslevental)

Changes

More dead code in headers...


Full diff: https://github.com/llvm/llvm-project/pull/121237.diff

1 Files Affected:

  • (modified) mlir/include/mlir/Dialect/SCF/IR/SCF.h (-6)
diff --git a/mlir/include/mlir/Dialect/SCF/IR/SCF.h b/mlir/include/mlir/Dialect/SCF/IR/SCF.h
index b62c9417979478..ba648181daecb4 100644
--- a/mlir/include/mlir/Dialect/SCF/IR/SCF.h
+++ b/mlir/include/mlir/Dialect/SCF/IR/SCF.h
@@ -40,12 +40,6 @@ void buildTerminatedBody(OpBuilder &builder, Location loc);
 namespace mlir {
 namespace scf {
 
-// Insert `loop.yield` at the end of the only region's only block if it
-// does not have a terminator already.  If a new `loop.yield` is inserted,
-// the location is specified by `loc`. If the region is empty, insert a new
-// block first.
-void ensureLoopTerminator(Region &region, Builder &builder, Location loc);
-
 /// Returns the loop parent of an induction variable. If the provided value is
 /// not an induction variable, then return nullptr.
 ForOp getForInductionVarOwner(Value val);

@makslevental makslevental changed the title [mlir][scf] DCE ensureLoopTerminator [mlir][scf] DCE unimplemented decls in TDs Dec 28, 2024
@makslevental makslevental merged commit f1bc3af into main Dec 28, 2024
8 checks passed
@makslevental makslevental deleted the users/makslevental/fix-scf-header branch December 28, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants