Currently we use the -fembed-offload-object option to embed a binary
file into the host as a named section. This is currently only used as a
codegen action, meaning we only handle this option correctly when the
input is a bitcode file. This patch adds the same handling to embed an
offloading object after we complete code generation. This allows us to
embed the object correctly if the input file is source or bitcode.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Sure.
clang/include/clang/CodeGen/BackendUtil.h | ||
---|---|---|
48 ↗ | (On Diff #410350) | Yeah this is unrelated somewhat, just felt like changing it after doing another pass through. I can probably just commit this separately. |