similar to: in an IR pass: access the instruction pointer/BB address

Displaying 20 results from an estimated 600 matches similar to: "in an IR pass: access the instruction pointer/BB address"

2020 Mar 09
2
llvm-link has no --allow-multiple-definition
Hi Eli, I know the page, and the only mentioning about LTO or link time optimization I found is the option PassManagerBuilder::EP_FullLinkTimeOptimizationLast - and nobody knows how this works (and asked about it on this list too before with no reply), and the author who wrote that part in the llvm code at Redhat did not reply to a question how to actually use it. And there is no example code or
2020 Mar 10
3
llvm-link has no --allow-multiple-definition
HI Eli, that sounds like the -mllvm option would be a good a mention in the WritingAnLLVMPass document ;-) Two further questions for this and I am keeping this on the list so other people have pointers to this if they struggle with the same thing: 1. Does this require to use lld? (I am sure it is, just to clarify, for the very low chance that it would also work with gnu ld and the llvm gold
2019 Jul 03
3
optimisation issue in an llvm IR pass
Hi Craig, On 03.07.19 17:33, Craig Topper wrote: > Don't the CreateICmp calls return a Value* with an i1 type? But then > they are added to an i8 type? Not sure that works.  I had that initially: auto cf = IRB.CreateICmpULT(Incr, ConstantInt::get(Int8Ty, 1)); auto carry = IRB.CreateZExt(cf, Int8Ty); Incr = IRB.CreateAdd(Incr, carry); it makes no difference to the generated assembly
2019 Jul 03
2
optimisation issue in an llvm IR pass
Hello, I have an optimisation issue in an llvm IR pass - the issue being that unnecessary instructions are generated in the final assembly (with -O3). I want to create the following assembly snippet: mov dl,BYTE PTR [rsi+rdi*1] add dl,0x1 adc dl,0x0 mov BYTE PTR [rsi+rdi*1],dl however what is created is (variant #1): mov dl,BYTE PTR [rsi+rdx*1] add dl,0x1 cmp
2020 Mar 08
2
llvm-link has no --allow-multiple-definition
Hello, I am developing an LTO instrumentation of programs for fuzzing (for afl++) and I run into the following problem: a lot of open source program have multiple definitons of the same functions. In normal compile mode this is not a problem, however with LTO this only works with the linker option: -Wl,--allow-multiple-definition Now to be able to instrument (it is an "opt"
2020 Aug 10
3
resolve the name of an ifunc resolver function
Hi, I just spent 4 hours trying to find a way to get the name of the resolver function of a ifunc definition ... :-( and with all that time I didnt event get far: for (GlobalIFunc &IF : M.ifuncs()) { StringRef ifunc_name = IF.getName(); Constant *r = IF.getResolver(); But how do I get to the (Function*) or function name of the resolver from there? I tried everything with the Constant
2020 Jan 15
4
Finding callees of a function
I searched the doxygen documentation and could not find a solution to my task: In a ModulePass running at EP_OptimizerLast, if I have a function F like in: bool Foo:runOnModule(Module &M) { LLVMContext &C = M.getContext(); for (auto &F : M) { // magic here if I want to know from which function (callee) each function is called - how can I do this? (so that I e.g. have
2018 Apr 16
2
Question concerning llvm::BlockAddress class
Hi all, I have a question concerning block address class in LLVM. I am currently working on a project where I need to obtain and manipulate basic block virtual addresses. I was searching the web and found the llvm::BlockAddress class (http://llvm.org/doxygen/classllvm_1_1BlockAddress.html). With this class I was able to obtain a printout like this: i8* blockaddress(@func_name, %bb_label) How do
2018 Apr 16
0
Question concerning llvm::BlockAddress class
On Mon, Apr 16, 2018 at 04:14:03PM -0400, Brenda So via llvm-dev wrote: > Hi all, > > I have a question concerning block address class in LLVM. I am currently > working on a project where I need to obtain and manipulate basic block virtual > addresses. I was searching the web and found the llvm::BlockAddress class ( > http://llvm.org/doxygen/classllvm_1_1BlockAddress.html). With
2007 Oct 04
1
Problems suspending/hibernating Dell Latitude D810 with CentOS 5
Hi all. I'm having problems trying to suspend/hibernate my Dell Latitude D810 Laptop. Basically I have an ATI X600 videographics and SATA harddrive and run httpd and mysqld daemons on it. I use fglrx (ATI propietary drivers) and the open too with no success. I tried with 1 and 2 screens configurations with no success. I tried with CA and/or with battery with no success. I need some help
2017 Nov 24
2
[ovirt-users] slow performance with export storage on glusterfs
On Thu, Nov 23, 2017 at 4:56 PM, Ji?? Sl??ka <jiri.slezka at slu.cz> wrote: > Hi, > > On 11/22/2017 07:30 PM, Nir Soffer wrote: > > On Mon, Nov 20, 2017 at 5:22 PM Ji?? Sl??ka <jiri.slezka at slu.cz > > <mailto:jiri.slezka at slu.cz>> wrote: > > > > Hi, > > > > I am trying realize why is exporting of vm to export storage on
2017 Nov 24
0
[ovirt-users] slow performance with export storage on glusterfs
On 11/24/2017 06:41 AM, Sahina Bose wrote: > > > On Thu, Nov 23, 2017 at 4:56 PM, Ji?? Sl??ka <jiri.slezka at slu.cz > <mailto:jiri.slezka at slu.cz>> wrote: > > Hi, > > On 11/22/2017 07:30 PM, Nir Soffer wrote: > > On Mon, Nov 20, 2017 at 5:22 PM Ji?? Sl??ka <jiri.slezka at slu.cz <mailto:jiri.slezka at slu.cz> > >
2016 May 30
1
[Bug 96274] New: [NVC0] Failure when compiling compute shader: Assertion `bb->getFirst()->serial <= bb->getExit()->serial' failed
https://bugs.freedesktop.org/show_bug.cgi?id=96274 Bug ID: 96274 Summary: [NVC0] Failure when compiling compute shader: Assertion `bb->getFirst()->serial <= bb->getExit()->serial' failed Product: Mesa Version: git Hardware: Other OS: All Status: NEW
2017 Nov 28
2
[ovirt-users] slow performance with export storage on glusterfs
What about mounting over nfs instead of the fuse client. Or maybe libgfapi. Is that available for export domains On Fri, Nov 24, 2017 at 3:48 AM Ji?? Sl??ka <jiri.slezka at slu.cz> wrote: > On 11/24/2017 06:41 AM, Sahina Bose wrote: > > > > > > On Thu, Nov 23, 2017 at 4:56 PM, Ji?? Sl??ka <jiri.slezka at slu.cz > > <mailto:jiri.slezka at slu.cz>>
2017 Nov 28
0
[ovirt-users] slow performance with export storage on glusterfs
Hello If you use Gluster as FUSE mount it's always slower than you expect it to be. If you want to get better performance out of your oVirt/Gluster storage, try the following: - create a Linux VM in your oVirt environment, assign 4/8/12 virtual disks (Virtual disks are located on your Gluster storage volume). - Boot/configure the VM, then use LVM to create VG/LV with 4 stripes (lvcreate -i
2017 Jun 05
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
Since the getelementptrs were implicitly generated by the CreateStore/Load I'm not sure how to get access to them. So I hacked the assignment to be done thrice: once using a manual decomposition into two GEPs and stores, once using the "big" CreateStore, once via the setGlobal function, printing addresses and memory contents at each point to the degree that I have access to them.
2007 Nov 07
0
recommendation for rpm packaged forum/bb software for centos 5?
Subject says it all- has anyone got any recommendations for rpm-packaged forum/bb software for CentOS 5 - preferrably from a repo like rpmforge or similar so it will get updates as they come through? Yes, I can install phpBB et al from scratch but I with 'yum update' it is harder for me to miss updates :-) -- Cheers, Tony
2018 Jan 21
1
Splitting BB pre SelectionDAG
Hi everyone, I'm faily new to LLVM, I'm working on a new backend. In my backend, one of the requirements is to split a BB on every call, I considered putting some kind of pseudo instruction using the TargetLowering::LowerCall function. Before going said path, I was wondering if there is some way to split the BB before the SelectionDAG is generated, this way the call instruction would be
2002 Nov 13
2
[LLVMdev] a basic question about BB
Dear LLVM, I want to know, given a function, How do I know which block is entry block, which blocks are exit blocks? Is there any efficient way to dicectly get that information?
2002 Nov 13
0
[LLVMdev] a basic question about BB
> Dear LLVM, > > I want to know, given a function, How do I know which block is entry > block, which blocks are exit blocks? Is there any efficient way to > dicectly get that information? Given a function you can always use Function::getEntryBlock() to get the entry block. You need to scan the function to get the returning nodes. -Chris "llvm" Lattner --