Skip to content

Commit

Permalink
Refactor helper code for enum types
Browse files Browse the repository at this point in the history
  • Loading branch information
roastduck committed Jan 19, 2024
1 parent a6a2a5d commit 8412e6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/analyze/all_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ namespace freetensor {
* Collect IDs of all `VarDef` nodes of specific `AccessType`s
*/
inline std::vector<std::pair<ID, std::string>>
allDefs(const Stmt &op,
const std::unordered_set<AccessType> &atypes =
allAccessTypes | ranges::to<std::unordered_set>() {
allDefs(const Stmt &op, const std::unordered_set<AccessType> &atypes =
allAccessTypes | ranges::to<std::unordered_set>()) {
std::vector<std::pair<ID, std::string>> ret;
for (auto &&node : findAllStmt(op, [&](const Stmt &s) {
return s->nodeType() == ASTNodeType::VarDef &&
Expand Down

0 comments on commit 8412e6e

Please sign in to comment.