Skip to content

Commit

Permalink
Bump IREE to bbe7f5c17a041bed5b4f652c49475ae8789eba86 (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang93 authored Jan 24, 2025
1 parent b0cdccc commit 4d9aa6a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion compiler/plugins/target/AMD-AIE/aievec/AIEVecUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ inline mlir::VectorType getVectorOpDestType(mlir::VectorType type, bool AIE2) {
if (auto ftype = llvm::dyn_cast<mlir::FloatType>(stype)) {
if (AIE2 && ftype.getWidth() == 16)
return mlir::VectorType::get(type.getShape(),
mlir::FloatType::getF32(ftype.getContext()));
mlir::Float32Type::get(ftype.getContext()));

// Floating point vector types for aie1 are returned as is since the
// floating point operations write back to registers and not accumulators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ static SmallVector<Value> getCollapsedIndices(RewriterBase &rewriter,
collapsedOffset = affine::makeComposedFoldedAffineApply(
rewriter, loc, collapsedExpr, collapsedVals);

if (collapsedOffset.is<Value>()) {
indicesAfterCollapsing.push_back(collapsedOffset.get<Value>());
if (isa<Value>(collapsedOffset)) {
indicesAfterCollapsing.push_back(cast<Value>(collapsedOffset));
} else {
indicesAfterCollapsing.push_back(rewriter.create<arith::ConstantIndexOp>(
loc, *getConstantIntValue(collapsedOffset)));
Expand Down
4 changes: 2 additions & 2 deletions compiler/plugins/target/AMD-AIE/iree-amd-aie/IR/AMDAIEOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ namespace {
LogicalResult foldMixed(SmallVectorImpl<OpFoldResult> &ofrs) {
bool valuesChanged = false;
for (OpFoldResult &ofr : ofrs) {
if (ofr.is<Attribute>()) continue;
if (isa<Attribute>(ofr)) continue;
Attribute attr;
if (matchPattern(ofr.get<Value>(), m_Constant(&attr))) {
if (matchPattern(cast<Value>(ofr), m_Constant(&attr))) {
ofr = attr;
valuesChanged = true;
}
Expand Down
2 changes: 1 addition & 1 deletion third_party/iree
Submodule iree updated 198 files

0 comments on commit 4d9aa6a

Please sign in to comment.