[llvm-dev] Understanding CallInst::Create
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Thu Nov 19 08:01:08 PST 2020
On Thu, 19 Nov 2020 at 15:22, Arnamoy Bhattacharyya <arnamoy at ualberta.ca> wrote:
> So in the LLVM-10, the equivalent will be just
> CallInst * Create (FunctionCallee Func, ArrayRef< Value *> Args...),
> where I push the "Actual" argument to the ArrayRef and then create the
> call?
Yep, though I think ArrayRef has enough constructors that you can just
pass the single argument directly and it'll automatically do the right
thing.
Cheers.
Tim.
More information about the llvm-dev
mailing list