[MLIR][KernelGen] Fix Windows build failure
Fix usage of default constructor. Instead, always use the parameterized constructor and make the maximum supported rank explicit. PiperOrigin-RevId: 377037155
This commit is contained in:
parent
557e56362e
commit
75a1c450ea
|
@ -75,8 +75,7 @@ std::unique_ptr<FunctionPass> createMoveUpDynamicBroadcastsForFusionPass();
|
|||
/// - Lower rank specialization clusters to SCF and ranked operations.
|
||||
std::unique_ptr<FunctionPass> createRankSpecializationClusterPass();
|
||||
std::unique_ptr<FunctionPass> createRankSpecializationToSCFPass(
|
||||
int64_t max_target_rank);
|
||||
std::unique_ptr<FunctionPass> createRankSpecializationToSCFPass();
|
||||
int64_t max_target_rank = 5);
|
||||
|
||||
std::unique_ptr<FunctionPass> createOptimizeMhloPass();
|
||||
std::unique_ptr<FunctionPass> createLowerComplexPass();
|
||||
|
|
|
@ -651,8 +651,6 @@ struct LowerRankSpecializationClusterPattern
|
|||
|
||||
struct RankSpecializationToSCFPass
|
||||
: public RankSpecializationToSCFPassBase<RankSpecializationToSCFPass> {
|
||||
using RankSpecializationToSCFPassBase<
|
||||
RankSpecializationToSCFPass>::RankSpecializationToSCFPassBase;
|
||||
explicit RankSpecializationToSCFPass(int64_t max_target_rank)
|
||||
: RankSpecializationToSCFPassBase<
|
||||
RankSpecializationToSCFPass>::RankSpecializationToSCFPassBase() {
|
||||
|
@ -699,9 +697,5 @@ std::unique_ptr<FunctionPass> createRankSpecializationToSCFPass(
|
|||
return std::make_unique<RankSpecializationToSCFPass>(max_target_rank);
|
||||
}
|
||||
|
||||
std::unique_ptr<FunctionPass> createRankSpecializationToSCFPass() {
|
||||
return std::make_unique<RankSpecializationToSCFPass>();
|
||||
}
|
||||
|
||||
} // namespace mhlo
|
||||
} // namespace mlir
|
||||
|
|
Loading…
Reference in New Issue