Skip to content

[mlir][dxsa] Add atomic multi-operand instructions#193

Merged
tagolog merged 1 commit into
dxsa-mlirfrom
vshiryaev/dxsa-mlir-atomic-multi-operand-instructions
Jun 26, 2026
Merged

[mlir][dxsa] Add atomic multi-operand instructions#193
tagolog merged 1 commit into
dxsa-mlirfrom
vshiryaev/dxsa-mlir-atomic-multi-operand-instructions

Conversation

@tagolog

@tagolog tagolog commented Jun 21, 2026

Copy link
Copy Markdown
  • imm_atomic_iadd
  • imm_atomic_and
  • imm_atomic_or
  • imm_atomic_xor
  • imm_atomic_imax
  • imm_atomic_imin
  • imm_atomic_umax
  • imm_atomic_umin
  • atomic_cmp_store
  • imm_atomic_exch
  • imm_atomic_cmp_exch

Example:

  dxsa.imm_atomic_iadd r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_and r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_or r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_xor r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_imax r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_imin r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_umax r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_umin r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.atomic_cmp_store u<0>, r<1>, r<2>, r<3>
  dxsa.imm_atomic_exch r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_cmp_exch r<0, <x>>, u<0>, r<1>, r<2>, r<3>

@tagolog tagolog requested review from asavonic, asl and hvdijk June 21, 2026 08:15
@tagolog tagolog self-assigned this Jun 21, 2026
Comment thread mlir/include/mlir/Dialect/DXSA/IR/DXSAAtomicOps.td Outdated
Comment thread mlir/lib/Target/DXSA/BinaryParser.cpp Outdated
Comment thread mlir/test/Target/DXSA/atomic/imm_atomic_and.mlir
@tagolog tagolog force-pushed the vshiryaev/dxsa-mlir-mad-min-max-mul-sincos branch from c4629dc to d9a8ae0 Compare June 23, 2026 17:20
@tagolog tagolog force-pushed the vshiryaev/dxsa-mlir-atomic-multi-operand-instructions branch from a6a31b8 to 090aaf9 Compare June 25, 2026 02:52
@tagolog tagolog changed the base branch from vshiryaev/dxsa-mlir-mad-min-max-mul-sincos to dxsa-mlir June 25, 2026 02:52
@tagolog tagolog requested review from asl and hvdijk June 25, 2026 03:05
- imm_atomic_iadd
- imm_atomic_and
- imm_atomic_or
- imm_atomic_xor
- imm_atomic_imax
- imm_atomic_imin
- imm_atomic_umax
- imm_atomic_umin
- atomic_cmp_store
- imm_atomic_exch
- imm_atomic_cmp_exch

Example:
  dxsa.imm_atomic_iadd r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_and r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_or r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_xor r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_imax r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_imin r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_umax r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_umin r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.atomic_cmp_store u<0>, r<1>, r<2>, r<3>
  dxsa.imm_atomic_exch r<0, <x>>, u<0>, r<1>, r<2>
  dxsa.imm_atomic_cmp_exch r<0, <x>>, u<0>, r<1>, r<2>, r<3>

Signed-off-by: Vladimir Shiryaev <vshiryaev@accesssoftek.com>
@tagolog tagolog force-pushed the vshiryaev/dxsa-mlir-atomic-multi-operand-instructions branch from 090aaf9 to 9fd1a03 Compare June 26, 2026 19:23
@tagolog tagolog merged commit a3058c0 into dxsa-mlir Jun 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants