Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Oct 2, 2024
1 parent 7753d13 commit 6b606ef
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/luisa/xir/instructions/break.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ class LC_XIR_API BreakInst : public Instruction {
}
};

}
}// namespace luisa::compute::xir
2 changes: 1 addition & 1 deletion include/luisa/xir/instructions/continue.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class LC_XIR_API ContinueInst : public Instruction {
}
};

}
}// namespace luisa::compute::xir
11 changes: 11 additions & 0 deletions include/luisa/xir/instructions/switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@

namespace luisa::compute::xir {

// Switch instruction:
//
// switch (value) {
// case case_values[0]: { case_blocks[0] }
// case case_values[1]: { case_blocks[1] }
// ...
// default: { default_block }
// }
// { merge_block }
//
// Note: this instruction must be the terminator of a basic block.
class LC_XIR_API SwitchInst : public Instruction {

public:
Expand Down
2 changes: 1 addition & 1 deletion src/xir/instructions/loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ const BasicBlock *LoopInst::merge_block() const noexcept {
return const_cast<LoopInst *>(this)->merge_block();
}

}// namespace luisa::compute::xir
}// namespace luisa::compute::xir

0 comments on commit 6b606ef

Please sign in to comment.