Support for dynamic linking?


I'm experimenting with the wasm target and especially with a new dynamic
linking phase done by the JavaScript bundlers (Webpack or Rollup).

It requires changing the LLVM IR emitter for that target. For my test
I'm using C/C++ but since I couldn't find the correct clang
attribute/pragma, I decided to implement it myself.

Omitting the clang parsing phase, how would be the best way to represent
it in LLVM's IR?

I'm not really sure about the boundaries between clang and LLVM, clang
can emit LLVM IR but the writer is in LLVM so my understand was that It
was part of LLVM. Is that correct?

Thanks in advance,