add Analysis Passes

work on #91
This fixes the issue, iff a TargetMachine is provided