freenode/#clasp - IRC Chatlog
Search
17:52:36
drmeister
Ah - thanks. This is code that is really early in the build process. The problem wasn't file-length - it was that I didn't have WHEN.
17:53:32
drmeister
I've got the CLASP_BUILD_MODE "fasoll" working now for quicklisp. Building quicklisp systems creates files with the faspll extension.
18:26:59
drmeister
I figured that I needed to be able to generate llvm-ir for all of the common lisp code before I tackled thread sanitizer because I don't want Cando building itself under the thread sanitizer - that would take an insane amount of time.
20:08:09
drmeister
Dangnabbit! I just realized why I can't link modules from separate threads in compile-file-parallel!
20:08:33
drmeister
There is a different LLVMContext for each thread - the modules basically live in separate parallel universes.
20:10:38
drmeister
I have to stream out the llvm-ir to a memory buffer and then read it back in into one thread.
22:10:21
drmeister
Yeah - in compile-file-parallel each thread now generates an llvm-ir source file in a string and then the main thread parses them back into modules and links them together.
22:11:38
drmeister
So now - with the fasoll CLASP_BUILD_MODE compile-file-parallel generates an llvm-ir file that we can examine to see what it is generating.