[cfe-users] How to get llvm Location of Used Variables

2021-02-23 Thread Bella V via cfe-users
Hello Experts, I'm trying to get the location of used variables inside the function pass. For example the output should be: variable name = [line numbers where they are used] Output: a = [5,7] b= [6,8] C code void bar() { int a = 10; //line 2 int b = 20; //line 3 a = a +

[cfe-users] How to get llvm Location of Used Variables

2021-02-23 Thread Bella V via cfe-users
Hello LLVM Experts, Please ignore the last email. I'm trying to get the location of used variables inside the function pass. For example: *Symbol a = [4, 4, 6] linesSymbol b= [5, 5, 7] lines* *C code:* void bar() { int a = 10; //line 2 int b = 20; //line 3 a = a + 5;//line 4