[clang] [CIR] Introduce `cir-offload-merge` tool with a combine mode (PR #240322)
David Rivera via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 21:23:12 PST 2026
================
@@ -153,9 +153,33 @@ def CIR_OffloadKindAttr : CIR_EnumAttr<CIR_OffloadKind, "offload"> {
unchanged; the layout above is enforced by the CIR dialect attribute
verifier, following the `gpu.container_module` precedent.
- The attribute names `cir.offload.container` and `cir.offload.kind` are
- defined by the `getOffloadContainerAttrName` and `getOffloadKindAttrName`
- methods in the CIRDialect class.
+ A nested module may also carry `cir.offload.bundle_id`, a string holding
+ the offload bundle ID (`<offload kind>-<target triple>[-<target ID>]`, as
+ used by clang-offload-bundler) of the compilation the module came from,
+ e.g. `"hip-amdgcn-amd-amdhsa--gfx90a:xnack+"`. It identifies a module
+ when splitting the container back into per-target modules; the target
+ triple alone does not, since several device modules may share a triple
----------------
RiverDave wrote:
Not needed after: [`facc70f` (this PR)](https://github.com/llvm/llvm-project/pull/240322/changes/facc70f105f6c42e0ca05b4ff402a9e6e3f6c377)
https://github.com/llvm/llvm-project/pull/240322
More information about the cfe-commits
mailing list