Skip to content

Commit

Permalink
more bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
hikettei committed Dec 17, 2024
1 parent 72bac24 commit ced8c58
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/isl/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
#:create-space-set
#:create-space-map
#:space-dim
#:multi-aff-zero
#:set-from-multi-aff
;; Local Space
#:local-space
#:local-space-p
Expand Down Expand Up @@ -120,6 +122,8 @@
#:union-access-info-set-schedule-map
;; Set
#:set
#:set-from-union-set
#:set-get-space
;;#:setp
#:set-from-str
#:set-empty
Expand Down Expand Up @@ -157,10 +161,12 @@
;; Union set
#:union-set
#:union-set-p
#:union-set-is-empty
#:union-set-from-str
#:union-set-empty
#:union-set-universe
#:basic-set-union-set
#:union-set-from-set
#:set-union-set
#:union-set-intersect
#:union-set-union
Expand Down Expand Up @@ -200,6 +206,8 @@
#:basic-map-union-map
#:map-union-map
#:union-map-reverse
#:union-map-is-empty
#:union-map-deltas
#:union-map-intersect
#:union-map-union
#:union-map-subtract
Expand Down Expand Up @@ -366,6 +374,7 @@
#:schedule-node-get-children
#:schedule-node-get-type
#:schedule-node-insert-partial-schedule
#:schedule-node-band-get-partial-schedule-union-map
#:schedule-node-get-schedule-depth
#:schedule-node-get-child
#:schedule-insert-sequence
Expand Down
4 changes: 4 additions & 0 deletions source/isl/schedule-node.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
(:give multi-union-pw-aff)
(:keep schedule-node))

(define-isl-function schedule-node-band-get-partial-schedule-union-map %isl-schedule-node-band-get-partial-schedule-union-map
(:give union-map)
(:keep schedule-node))

(define-isl-function schedule-node-get-domain %isl-schedule-node-get-domain
(:give union-set)
(:keep schedule-node))
Expand Down
12 changes: 12 additions & 0 deletions source/isl/set.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@
(define-isl-function basic-set-set %isl-set-from-basic-set
(:give set)
(:take basic-set))

(define-isl-function set-from-union-set %isl-set-from-union-set
(:give set)
(:take union-set))

(define-isl-function set-get-space %isl-set-get-space
(:give space)
(:take set))

(define-isl-function set-from-multi-aff %isl-set-from-multi-aff
(:give set)
(:take multi-aff))
8 changes: 8 additions & 0 deletions source/isl/space.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
:free %isl-space-free
:copy %isl-space-copy)

(define-isl-object multi-aff
:free %isl-multi-aff-free
:copy %isl-multi-aff-copy)

(defmethod print-object ((value space) stream)
(print-unreadable-object (value stream :type t)
(write-string (%isl-space-to-str (space-handle value)) stream)))
Expand Down Expand Up @@ -33,3 +37,7 @@

(defun space-dim (space dim-type)
(%isl-space-dim (space-handle space) dim-type))

(define-isl-function multi-aff-zero %isl-multi-aff-zero
(:give multi-aff)
(:take space))
8 changes: 8 additions & 0 deletions source/isl/union-map.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
(:give union-set)
(:take union-map domain))

(define-isl-function union-map-deltas %isl-union-map-deltas
(:give union-set)
(:take union-map))

(define-isl-function union-map-range %isl-union-map-range
(:give union-set)
(:take union-map range))
Expand Down Expand Up @@ -123,3 +127,7 @@
(:give union-map)
(:take union-map)
(:take union-map domain))

(define-isl-function union-map-is-empty %isl-union-map-is-empty
(:give boolean)
(:take union-map))
8 changes: 8 additions & 0 deletions source/isl/union-set.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
(:give union-set)
(:take basic-set))

(define-isl-function union-set-from-set %isl-union-set-from-set
(:give union-set)
(:take set))

(define-isl-function set-union-set %isl-set-from-basic-set
(:give union-set)
(:take set))
Expand Down Expand Up @@ -61,3 +65,7 @@
(:give union-set)
(:take union-set)
(:take set params))

(define-isl-function union-set-is-empty %isl-union-set-is-empty
(:give boolean)
(:take union-set))

0 comments on commit ced8c58

Please sign in to comment.