Daily Archives: February 8, 2025

LLVM Exercise VI

It is time to bring in some conditionals. Adding an “if” to our friend foo(): int foo() { int retval1 = 0x0AB; int retval2 = 0; if (retval2) return retval2; return retval1; } We need to implement instructions for both conditional and unconditional branches (i.e jumps). An unconditional branch is just like this (assuming no … Continue reading »

Categories: Uncategorized | Comments Off on LLVM Exercise VI