search for: scanner_cp

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

2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...[num_rules] = 1; if ( performance_report > 0 ) fprintf( err, ("Variable trailing context rule at line %d\n"), rule_linenum[num_rules] ); variable_trailing_context_rules = 1; } else { rule_type[num_rules] = 0; if ( headcnt > 0 || trailcnt > 0 ) { char *scanner_cp = "yy_c_buf_p = yy_cp"; char *scanner_bp = "yy_bp"; add_action( "*yy_cp = yy_hold_char; /* undo effects of setting up yytext */\n" ); if ( headcnt > 0 ) { sprintf( action_text, "%s = %s + %d;\n", scanner_cp, scanner_bp, headcnt );...