Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@593f6fd (llvm#3260)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsuderman authored and archana-ramalingam committed May 8, 2024
1 parent e14c9c3 commit 2626c0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion externals/llvm-project
Submodule llvm-project updated 5104 files
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ namespace detail {
LogicalResult verifyTMTensorOpInterface(Operation *op);
}

#include "torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorOps.h.inc" // IWYU pragma: export

/// Include the generated interface declarations.
#include "torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorOpInterfaces.h.inc" // IWYU pragma: export

} // namespace TMTensor
} // namespace torch
} // namespace mlir

#include "torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorOps.h.inc" // IWYU pragma: export

#endif // TORCH_MLIR_DIALECTS_DIALECT_TMTENSOR_IR_TMTENSORINTERFACES_H_
2 changes: 1 addition & 1 deletion lib/Dialect/TMTensor/IR/TMTensorOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ struct FoldTensorCastOp : public OpInterfaceRewritePattern<TMTensorOp> {
// If no operand comes from a tensor::CastOp and can be folded then fail.
bool hasTensorCastOperand =
llvm::any_of(op.getInputAndOutputOperands(), [&](OpOperand *opOperand) {
if (opOperand->get().isa<BlockArgument>())
if (isa<BlockArgument>(opOperand->get()))
return false;
auto castOp = opOperand->get().getDefiningOp<tensor::CastOp>();
return castOp && canFoldIntoConsumerOp(castOp);
Expand Down

0 comments on commit 2626c0f

Please sign in to comment.