search for: slotnumb

Displaying 3 results from an estimated 3 matches for "slotnumb".

Did you mean: slotnum
2015 Oct 05
6
Why is printing an Instruction so slow?
Hi all, When writing my custom passes, I often emit log messages to llvm::errs() like so: llvm::errs() << "Could not handle instruction: " << *Inst << std::endl; where Inst is a pointer to an Instruction. I've profiled my code and found that this way of printing an Instruction takes a very long time: indeed, it is the bottleneck of my pass. Of course, I could
2018 Sep 20
2
Added AllocaInsts are relocated in stack
Hi there, I am wondering how I can prevent the LLVM from re-ordering the added local variables during instrumentation? Because, during the instrumentation, I add some metadata to some local variables, exactly next to it, and the generated bitcode looks good. However, when it is executed, basically the stack is formed as all original local variables are located next to each other, and then all the
2018 Sep 21
2
Added AllocaInsts are relocated in stack
Hi Tim, Thanks for your reply. However, I have seen that addressSanitizer has done this by placing redzones around each local variable. But i have not figured out yet how they have done it, I was wondering if there is a switch or a method by which I can reset the slotNumbering given to each instruction. By doing so, LLVM would place them in the expected order I guess. Best regards, Saman On Fri, Sep 21, 2018 at 5:29 AM Tim Northover <t.p.northover at gmail.com> wrote: > On Thu, 20 Sep 2018 at 21:38, sam djafari via llvm-dev > <llvm-dev at lists.llv...