refu-lang / refu

Refu language
21 stars 4 forks source link

Turn llvm_traversal_ctx to static thread local #18

Open LefterisJP opened 7 years ago

LefterisJP commented 7 years ago

This is a design decision that I am not so sure about. At the moment almost all of the backend llvm functions take the llvm_traversal_ctx as an argument. Example here.

Maybe it would be beneficial to make it into a static global thread local variable.