Skip to content

Replaced uses of -1 as the dynamic index marker#17

Closed
dk949 wants to merge 33 commits intomainfrom
david/xdsl-dynamic-index-fix
Closed

Replaced uses of -1 as the dynamic index marker#17
dk949 wants to merge 33 commits intomainfrom
david/xdsl-dynamic-index-fix

Conversation

@dk949
Copy link
Collaborator

@dk949 dk949 commented Sep 30, 2025

xDSL now uses a different value for the dynamic index marker - builtin.DYNAMIC_INDEX with value -(2**63), which matches the value MLIR uses for this.

Now memrefs, and tensors that use -1 as the dynamic index get printed with a literal -1, rather than ?.

Depends on #14
Closes #16

gabrielrodcanal and others added 30 commits August 1, 2025 00:15
… function. Otherwise, the function will not be present in the symbol table of the calling module
…rated IR does not pass the mlir-opt verifier. Tested on all the offload examples
…tion arguments are dereferenced, since HLS is not compatible with pointers to pointers. OpenMP variables in the omp.map.info operations are forwarded and the omp.target operation is forwarded (operands are forwarded to the block operations). Tested with offload/ex1.F90
… earlier in the pipeline. Also, remove attributes from the module, since they are incompatible with the downgrading to LLVM v7
…nly works when called after offload and extract-target, target-to-hls, but it is not enforced yet for debuggability
…e the operands to omp.taget are expected to be in has_device_addr_vars
…nto a new function (previously the omp.target operation was kept inside the function)
…ass, since this is done previously in the pipeline now
It should now be possible to inherit from `ApplyTargetConfig` and
override the `_get_config` member function to return a new config.
xDSL now uses a different value for the dynamic index marker -
`builtin.DYNAMIC_INDEX` with value `-(2**63)`, which matches the value
MLIR uses for this.

Now `memref`s, and `tensor`s that use `-1` as the dynamic index get
printed with a literal `-1`, rather than `?`.
@dk949 dk949 requested a review from mesham September 30, 2025 10:51
@dk949 dk949 self-assigned this Sep 30, 2025
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.

ftn uses -1 as the dynamic index marker for memref

3 participants