LLVM: implementing if-then branching

Viewed 12

How do I implement if-then branching in LLVM? The Kaleidoscope tutorial only shows how to create if-then-else branching but it doesn't show how to implement if statements without the else block.

example C code that I'd like to compile:

if 0 {
 // do something...
} // no else block

thanks!

0 Answers
Related