Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove dead code
Browse files Browse the repository at this point in the history
zero9178 committed Aug 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ec55803 commit 57870b4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions codegen/compiler/src/Quidditch/Conversion/ConvertSnitchToLLVM.cpp
Original file line number Diff line number Diff line change
@@ -145,24 +145,7 @@ struct StartDMATransferOp1DLowering
});
}
};
} // namespace

static StridedLayoutAttr identityStride(MemRefType type) {
SmallVector<int64_t> strides{1};
for (int64_t dim : llvm::reverse(type.getShape().drop_back())) {
if (ShapedType::isDynamic(dim))
break;
strides.push_back(strides.back() * dim);
}

while (strides.size() < type.getShape().size())
strides.push_back(ShapedType::kDynamic);

std::reverse(strides.begin(), strides.end());
return StridedLayoutAttr::get(type.getContext(), 0, strides);
}

namespace {
struct StartDMATransferOp2DLowering
: ConvertOpToLLVMPattern<StartDMATransferOp> {

0 comments on commit 57870b4

Please sign in to comment.