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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -