Re: [Mesa-dev] [PATCH 1/4] ac: add reusable helpers for direct LLVM compilation

2018-07-03 Thread Dave Airlie
On 4 July 2018 at 16:02, Marek Olšák wrote: > From: Marek Olšák > > This is basically LLVMTargetMachineEmitToMemoryBuffer inlined and reworked. > > struct ac_compiler_passes (opaque type) contains the main pass manager. > > ac_create_llvm_passes -- the result can go to thread local storage > ac_d

[Mesa-dev] [PATCH 1/4] ac: add reusable helpers for direct LLVM compilation

2018-07-03 Thread Marek Olšák
From: Marek Olšák This is basically LLVMTargetMachineEmitToMemoryBuffer inlined and reworked. struct ac_compiler_passes (opaque type) contains the main pass manager. ac_create_llvm_passes -- the result can go to thread local storage ac_destroy_llvm_passes -- can be called by a destructor in TLS