-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Open
Labels
llvm:corequestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
Hi,
I use Value::getName
and Value::print
to obtain the string representation of IR variables such as %x
.
I have two questions:
- It seems that a value sometimes does not have a name. Could anyone explain when the name is available?
- When the name is NULL, I use
print
to obtain the string representation of an instruction and manipulate it on my own. But it seemsprint
is extremely slow for large IR. Does anyone know some idea for optimizing this process?
Metadata
Metadata
Assignees
Labels
llvm:corequestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!