Displaying 2 results from an estimated 2 matches for "_znsolsei".
2016 Jan 28
2
Find the instructions where a particular value is defined
...; preds =
%if.then.3, %if.else
74 br label %if.end.4
75
76 if.end.4: ; preds =
%if.end, %if.then
77 %2 = load i32, i32* %a, align 4
78 %call5 = call dereferenceable(272) %"class.std::basic_ostream"*
@_ZNSolsEi(%"class.std::basic_ostream"* @_ZSt4cout, i32 %2)
79 %3 = load i32, i32* %b, align 4
80 %call6 = call dereferenceable(272) %"class.std::basic_ostream"*
@_ZNSolsEi(%"class.std::basic_ostream"* %call5, i32 %3)
81 ret i32 0
at line 79 of the IR, I have found %b....
2016 Jan 28
2
Find the instructions where a particular value is defined
Sorry, I should ask the following:
finds all the instructions of a function where a particular variable is defined?
Lets consider the following code snippet:
1. void foo(){
2. int a, b;
3. if(a > 10)
4. b = 10;
5. if(a<10)
6. b = 5;
7. cout << b;
8. }
I would like to know the instructions where variable b can be be
defined, i.e, in this case, the instructions 4 and 6.
On Wed,