Skip to content

Commit

Permalink
Update clambcc/clambc-compiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
micahsnyder authored Aug 5, 2024
1 parent 24d4c64 commit 06e1f55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clambcc/clambc-compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,9 @@ def createInputSourceFile(clangLLVM: ClangLLVM, name: str, args: list, options:
'clambc-lowering-notfinal',
'verify',

# TODO: What do this do?
# This is an LLVM built-in pass that converts switch operations to a series of branches (ifs).
# This allows our runtime to get away with not implementing the switch instruction.
# See: https://llvm.org/docs/Passes.html#lower-switch-lower-switchinsts-to-branches
'lowerswitch',
'verify',

Expand Down

0 comments on commit 06e1f55

Please sign in to comment.