[llvm-dev] Replacing operands in a call instruction

Abid Malik via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 24 06:38:52 PST 2020


On Thu, Jan 23, 2020 at 3:32 PM Tim Northover <t.p.northover at gmail.com>

> Hi Abid,
> On Thu, 23 Jan 2020 at 19:03, Abid Malik via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > I am trying to replace a pointer argument of a call instruction with
> another pointer argument( new argument value for the call instruction).
> What is the best way to do it? I could not find any hint/guidance on the
> web or LLVM manual.
> You probably want CallBase::setArgOperand. You have to make sure the
> types are the same of course, changing the type of an entity in LLVM
> is substantially more involved.
> Cheers.
> Tim.

Abid M. Malik
"I have learned silence from the talkative, toleration from the intolerant,
and kindness from the unkind"---Gibran
"Success is not for the chosen few, but for the few who choose" --- John
"Being a good person does not depend on your religion or status in life,
your race or skin color, political views or culture. IT DEPENDS ON HOW GOOD
"The Universe is talking to us, and the language of the Universe is
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200124/879c941c/attachment.html>

More information about the llvm-dev mailing list