Skip to content

Commit

Permalink
Merge pull request #198 from buddy-compiler/revert-197-fix-legalize-f…
Browse files Browse the repository at this point in the history
…uncname

Revert "Fix gemmini legalize funcname."
  • Loading branch information
linuxlonelyeagle authored Sep 8, 2023
2 parents 1e94854 + af14ca6 commit da0c057
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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 configureGemminiLegalizeForExportTarget(LLVMConversionTarget &target);
void configureGemminiegalizeForExportTarget(LLVMConversionTarget &target);

} // namespace mlir

Expand Down
3 changes: 2 additions & 1 deletion midend/lib/Conversion/LowerGemmini/LowerGemminiPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ 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 @@ -202,7 +203,7 @@ void LowerGemminiToLLVMPass::runOnOperation() {
LLVMTypeConverter converter(context);
RewritePatternSet patterns(context);
LLVMConversionTarget target(*context);
configureGemminiLegalizeForExportTarget(target);
configureGemminiegalizeForExportTarget(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::configureGemminiLegalizeForExportTarget(
void mlir::configureGemminiegalizeForExportTarget(
LLVMConversionTarget &target) {
target.addLegalOp<
Flush_IntrOp, ConfigSt_IntrOp, ConifgLd_IntrOp, ConfigEX_IntrOp,
Expand Down

0 comments on commit da0c057

Please sign in to comment.