abadams wrote:
Our actual need is for a stable and user-friendly way to write fragments of
mostly-target-agnostic llvm IR.
We concat these with other fragments and give it an actual target triple later.
This lets us assemble a target-specific Halide runtime dynamically by mixing
and matching
abadams wrote:
We were advised to use the pnacl targets at the time the code was written.
We're trying wasm now.
The IR can be generic if you use a subset of C that excludes all the things
that vary across the targets you care about. For cases we really can't avoid it
(e.g. win32 calling con