Equivalent of #include for LLVM IR -


i have found myself reasonably large number of useful functions , constants written in llvm's ir. can use pseudo-library combining hand written ir, provided said hand written ir starts potentially lengthy list of declarations. i'm aware ir isn't designed general purpose programming language write stuff in.

this writing lot of c functions in 1 file redeclaring them wherever used. in c worked around using #include , header files. that's not perfect, beats writing out prototypes repeatedly.

what's least nasty way achieve similar in ir? has beat typing stuff out on , on again (which in copy & paste fashion) , using cat custom build step.

thanks!


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -