Skip to content

Commit 9ecf54e

Browse files
committed
add to declaration
1 parent 653552c commit 9ecf54e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/gc/Analysis/MatmulConfigAnalysis.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ struct MatmulConfig {
3333
uint32_t innerMostMBlock, innerMostNBlock, innerMostKBlock;
3434
};
3535

36+
bool validateConfig(const MatmulConfig &cfg, ArrayRef<uint32_t> shape = {});
37+
3638
enum DimType { Batch, M, N, K };
3739

3840
// Extract the index of the given DimType in the DimType list

lib/gc/Analysis/MatmulConfigAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static llvm::raw_ostream &operator<<(llvm::raw_ostream &ss,
3737
return ss;
3838
}
3939

40-
bool validateConfig(const MatmulConfig &cfg, ArrayRef<uint32_t> shape = {}) {
40+
bool validateConfig(const MatmulConfig &cfg, ArrayRef<uint32_t> shape) {
4141
if (cfg.MThreads <= 0 || cfg.NThreads <= 0 || cfg.KThreads <= 0 ||
4242
cfg.MBlock <= 0 || cfg.NBlock <= 0 || cfg.KBlock <= 0 ||
4343
cfg.innerMostMBlock <= 0 || cfg.innerMostNBlock <= 0 ||

0 commit comments

Comments
 (0)