willi19 / swpp202301-compiler-team6

MIT License
0 stars 0 forks source link

Stuck with getting llvm after optimization pass #5

Open willi19 opened 1 year ago

willi19 commented 1 year ago

I need it for filecheck and alive2. If you have any idea, please share with me.

sharaelong commented 1 year ago

Temporarily, you can print IR directly in opt.cpp like this:

errs() << *__M << '\n';
willi19 commented 1 year ago

I'm worrying about changing cpp file in src which is not in opt folder and opt.cpp. Since TA said he will give huge penalty for changing the given code, I think it's safe to ask TA first.

willi19 commented 1 year ago

But there are no time left for sprint 1 so I will write python file that reads verbose output of build/swpp-compiler and extract optimized ll from it.