Skip to content

Commit

Permalink
[skip ci] enforce code format
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-gardener committed May 30, 2021
1 parent 94d4bbe commit e3e939c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions taichi/ir/ir_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ class IRBuilder {
template <typename XStmt>
[[nodiscard]] LoopGuard get_loop_guard(XStmt *loop) {
return LoopGuard(*this, loop);
}
[[nodiscard]] IfGuard get_if_guard(IfStmt *if_stmt, bool true_branch) {
}[[nodiscard]] IfGuard get_if_guard(IfStmt *if_stmt, bool true_branch) {
return IfGuard(*this, if_stmt, true_branch);
}

Expand Down
4 changes: 2 additions & 2 deletions taichi/program/program.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ TLANG_NAMESPACE_END
namespace std {
template <>
struct hash<taichi::lang::JITEvaluatorId> {
std::size_t operator()(
taichi::lang::JITEvaluatorId const &id) const noexcept {
std::size_t operator()(taichi::lang::JITEvaluatorId const &id) const
noexcept {
return ((std::size_t)id.op | (id.ret.hash() << 8) | (id.lhs.hash() << 16) |
(id.rhs.hash() << 24) | ((std::size_t)id.is_binary << 31)) ^
(std::hash<std::thread::id>{}(id.thread_id) << 32);
Expand Down

0 comments on commit e3e939c

Please sign in to comment.