Have LLVM pass declare globalcount variable
Currently, the LLVM pass expects there to already be a global variable named globalcount
in the code, which makes it of limited use (the idea is to compile any program with our pass).
The pass should declare and initialise globalcount
itself instead.
Moreover, it could declare more variables this way (for analysing purposes). One thing that comes to mind is a second counter that keeps track of how often we context switch.