Skip to content

Commit

Permalink
Merge pull request #197 from MbjYjbpivj/fix-legalize-funcname
Browse files Browse the repository at this point in the history
[Gemmini]Fix gemmini legalize function name.
  • Loading branch information
linuxlonelyeagle authored Sep 8, 2023
2 parents 5659ccc + e4db5b2 commit 1e94854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion midend/include/Dialect/Gemmini/Transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void populateGemminiLegalizeForLLVMExportPatterns(LLVMTypeConverter &converter,
RewritePatternSet &patterns,
int64_t dim, int64_t addrLen,
size_t sizeOfElemT, size_t sizeOfAccT);
void configureGemminiegalizeForExportTarget(LLVMConversionTarget &target);
void configureGemminiLegalizeForExportTarget(LLVMConversionTarget &target);

} // namespace mlir

Expand Down
3 changes: 1 addition & 2 deletions midend/lib/Conversion/LowerGemmini/LowerGemminiPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ class LowerGemminiToLLVMPass

// Override explicitly to allow conditional dialect dependence.
void getDependentDialects(DialectRegistry &registry) const override {
registry.insert<LLVM::LLVMDialect>();
registry.insert<LLVM::LLVMDialect>();
registry.insert<arith::ArithDialect>();
registry.insert<memref::MemRefDialect>();
Expand Down Expand Up @@ -203,7 +202,7 @@ void LowerGemminiToLLVMPass::runOnOperation() {
LLVMTypeConverter converter(context);
RewritePatternSet patterns(context);
LLVMConversionTarget target(*context);
configureGemminiegalizeForExportTarget(target);
configureGemminiLegalizeForExportTarget(target);
populateGemminiLegalizeForLLVMExportPatterns(
converter, patterns, dim, addrLen, sizeOfElemT, sizeOfAccT);
populateAffineToStdConversionPatterns(patterns);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ void mlir::populateGemminiLegalizeForLLVMExportPatterns(
sizeOfAccT);
}

void mlir::configureGemminiegalizeForExportTarget(
void mlir::configureGemminiLegalizeForExportTarget(
LLVMConversionTarget &target) {
target.addLegalOp<
Flush_IntrOp, ConfigSt_IntrOp, ConifgLd_IntrOp, ConfigEX_IntrOp,
Expand Down

0 comments on commit 1e94854

Please sign in to comment.