search for: var_comma

Displaying 2 results from an estimated 2 matches for "var_comma".

2012 Jul 05
0
[LLVMdev] Accessing Return Variable Names
...ng name; raw_string_ostream s(name); s << *i; // string representation of an instruction size_t var_start = name.find('%'); // var starts with a % size_t var_end = name.find(" ", var_start+1); // till space size_t var_comma = name.find(",", var_start+1); // or comma return var_comma<var_end? name.substr(var_start,var_comma-var_start) : name.substr(var_start, var_end-var_start); } Have fun Igor On Thu, Jul 5, 2012 at 11:15 PM, John Backes <b...
2012 Jul 05
4
[LLVMdev] Accessing Return Variable Names
Hello, I'm new to llvm development and I have a question which I think should be straight forward, but I am having trouble figuring it out. I want to be able to access the return variable name for an instruction. For some instructions I can get this value through the "getName" method. For example, with the instruction: > %arg11 = bitcast i32* %arg1 to i8*, !dbg !42, !id