[llvm-dev] Arguments name IR LLVM

mohamed messelka via llvm-dev llvm-dev at lists.llvm.org
Mon Jul 29 04:09:28 PDT 2019


Hi everybody,

I want to read the name of the arguments of fucntion IR LLVM, I have the following function define:

define void @vecadd(i32, float* nocapture readonly, float* nocapture readonly, float* nocapture) local_unnamed_addr #0 {

As we see, the argument has no name, if we look at call function in main function we see the arguments name (a, b and c):

call void @vecadd(i32 10, float* getelementptr inbounds ([10 x float], [10 x float]* @a, i64 0, i64 0), float* getelementptr inbounds ([10 x float], [10 x float]* @b, i64 0, i64 0), float* nonnull %3)

The problem is, how can I get arguments name from the instruction inside define function because I just have the instructions in define function.

Any idea please?


Kinds regards
Mohamed Messelka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190729/9c22b18a/attachment.html>


More information about the llvm-dev mailing list