llvm-project
9d0f66f6 - [CIR] Add offload container operation

Commit
48 days ago
[CIR] Add offload container operation Introduce cir.offload.container, a CIR dialect operation that groups one host CIR module with one or more device CIR modules in a single IR unit. Nested modules are tagged with the new cir.offload.kind enum attribute using #cir.offload_kind<host> and #cir.offload_kind<device>. The verifier enforces the structural contract expected by follow-up offload merge/split pipeline patches: host module first, device modules after it, only nested builtin.module ops, and at least one device module. This patch only adds the IR representation and verifier tests; the passes that create, consume, or split the container are left to later patches.
Author
Committer
Parents
Loading