[LLVMdev] Using the LLVM IR builder API

Tim Northover t.p.northover at gmail.com
Sun Jul 6 06:44:43 PDT 2014


On 6 July 2014 12:00, James Courtier-Dutton <james.dutton at gmail.com> wrote:
> I have code that generates:
> declare i32 @test25b(i64*, i64*, i32, i64*)
> Is there any way to get names added to that?

No. There would be no point because there's no reason or way to refer
to those formal parameters in isolation. Put another way: there's no
llvm::Value instance associated with them, and that's what names are
attached to in the LLVM IR.

Are you trying to do anything in particular that you think you need
the names for, or just make your IR more human-readable?

Cheers.

Tim.



More information about the llvm-dev mailing list