Skip to content

Mark public parameters show up on the vampir dump #10

@mariari

Description

@mariari

Currently I ignore public private parameters. However with little work we can get public parameters to functions to emit when we dump the entry point to the circuit.

Care has to be taken care not to have any other functions public parameters be marked as public when we compile down the circuit however.

We can either chose to inject this in the primitive-circuit phase of the compiler

;; src/pass/pass.lisp
(-> primtitve-circuit (spc:fully-expanded-list spc:circuit) spc:prim-circuit)
(defun primtitve-circuit (terms circuit)
  (~>> (spc:make-prim-circuit :name (spc:name circuit) :body terms)
       (fill-in-arguments circuit)
       (fill-in-output    circuit)))

or rather as special behavior for the main function to compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions