Slide 14
Slide 14 text
Translating to LLVM IR (2)
Add one to local zero, result in local one
Binary (Binding (Local ("1")),
Add (List (NoSignedWrap ())),
IntT (32), Named (Local ("0")), Const (IntC (1)))
%1 = add nsw i32 %0, 1
Store local one to i’s address
Store (NotVolatile (), IntT (32), Named (Local ("1")),
PointerT (IntT (32), DefaultAddrSpace ()),
Named (Local ("i.addr")), DefaultAlign ())
store i32 %1, i32* %i.addr
14 / 15