search for: read_flags

Displaying 1 result from an estimated 1 matches for "read_flags".

Did you mean: head_flags
2010 Sep 25
2
[LLVMdev] custom lowering with multiple results
...two nodes. Imagine I have a new instruction "read_world" that sets the status flags according to some kind of global state. In order to generate this instruction I have a built-in function with the prototype "int __builtin_read_world(void)". I also have a new instruction "read_flags" that sets a register according to the status flags so I can translate a call to __builtin_read_world into a "read_world" followed by a "read_flags" (at least as a last resort; I'm expecting the "read_flags" instruction to be optimised away in most cases). At...