impc:compiler:flush-jit-compilation-queue   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/llvmir.xtm

Implementation

(define impc:compiler:flush-jit-compilation-queue
  (lambda ()
    (if *impc:compiler:print-raw-llvm*
        (print-full-nq *impc:compiler:queued-llvm-ir-string*))
    (if (not (string=? *impc:compiler:queued-llvm-ir-string* ""))
        (let ((res (llvm:jit-compile-ir-string *impc:compiler:queued-llvm-ir-string*)))
          (impc:compiler:reset-jit-compilation-queue)
          ;; (print "Flushed IR compilation queue with result: " res "\n")
          res))))


Back to Index