Skip to content
Snippets Groups Projects

Ternary Expressions, Improved Integer Divisions, and Iteration Space Fix

Merged Frederik Hennig requested to merge fhennig/ternary into backend-rework
All threads resolved!

Ternary expressions

This MR introduces ast nodes, typification, constant folding, and printing of ternary a ? b : c expressions. On top of that, freezing support for sympy.Piecewise is introduced.

Integer Division Improvements

This MR introduces the PsRem expression node for the C % operator, and adds constant folding for C-style integer division and remainder operations.

Fix: Iteration Space work items

Using the above, this MR fixes the computation of the amount of work items in an interation space if start, stop and step don't align.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply