search for: pushtoworklist

Displaying 2 results from an estimated 2 matches for "pushtoworklist".

2016 Jul 26
2
[LLVMdev] Interprocedural use-def chains
Hello, I have been using the USE class to access the use-def chains of different values. However, what I have noticed is that the set of users of a particular value is limited for the appearance of that variable in the current function. How can I get the interprocedural use of a particular value? For example, if a variable *a* is used as an argument in a function call *foo*, the USE analysis
2016 Jul 26
2
[LLVMdev] Interprocedural use-def chains
...that? This won't > work for varargs, but that's a difficult problem anyway. > > Specifically, I'm saying: > > if (user is CallInst or InvokeInst) { > unsigned ArgNo = // Get argument no. of Use & > if (auto *F = getCallTargetIfPossible()) { > pushToWorklist(F->getArgument(ArgNo)->users()); // Or recurse > } > } > > -- Sanjoy > -- Dounia KHALDI Research Assistant Professor Institute for Advanced Computational Science Stony Brook University Stony Brook, NY 11794-5250 www.iacs.stonybrook.edu -------------- next part -------...