search for: writebitcodepass

Displaying 4 results from an estimated 4 matches for "writebitcodepass".

2018 Mar 30
1
Proper way to do thinlto (from code)
Thanks! I'll create a wrapper for WriteBitcodePass. Do I still need the PrepareForThinTLO pass or is the writeBitCodePass enough? On Fri, Mar 30, 2018, at 10:02, Peter Collingbourne wrote: > You need to make sure that your bitcode file has a module summary > index. You can do that either by creating a WriteBitcodePass with > EmitSummaryIn...
2018 Mar 30
0
Proper way to do thinlto (from code)
You need to make sure that your bitcode file has a module summary index. You can do that either by creating a WriteBitcodePass with EmitSummaryIndex set to true or by calling WriteBitcodeToFile with a module summary index that you created yourself. It doesn't look like either of those options are hooked up to the c API, though. Peter On Fri, Mar 30, 2018, 00:50 Carlo Kok via llvm-dev <llvm-dev at lists.llvm.org&gt...
2018 Mar 30
2
Proper way to do thinlto (from code)
I'm using llvm-c (but if needed can call c++ stuff too if nedeed); what's the proper way to emit bitcode with thinlto info so the linker can parallelize ?I'm currently using: unwrap(PMB)->PrepareForThinLTO = b; on the pass manager builder, but that doesn't seem to be enough? -------------- next part -------------- An HTML attachment was scrubbed... URL:
2016 Jun 28
0
mutateType on AllocaInst problem
...m/lib/Bitcode/Writer/BitcodeWriter.cpp:3532:0 #15 0x000000000204c419 llvm::WriteBitcodeToFile(llvm::Module const*, llvm::raw_ostream&, bool, llvm::ModuleSummaryIndex const*, bool) /home/pierre/Desktop/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:3703:0 #16 0x0000000002037ed6 (anonymous namespace)::WriteBitcodePass::runOnModule(llvm::Module&) /home/pierre/Desktop/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp:61:0 #17 0x00000000024da603 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /home/pierre/Desktop/llvm/lib/IR/LegacyPassManager.cpp:1603:0 #18 0x00000000024dad6d llvm::legacy::Pass...