Revision a3f5054b tcg/README
b/tcg/README | ||
---|---|---|
75 | 75 |
* Helpers: |
76 | 76 |
|
77 | 77 |
Using the tcg_gen_helper_x_y it is possible to call any function |
78 |
taking i32, i64 or pointer types. Before calling an helper, all |
|
79 |
globals are stored at their canonical location and it is assumed that |
|
80 |
the function can modify them. In the future, function modifiers will |
|
81 |
be allowed to tell that the helper does not read or write some globals. |
|
78 |
taking i32, i64 or pointer types. By default, before calling an helper, |
|
79 |
all globals are stored at their canonical location and it is assumed |
|
80 |
that the function can modify them. This can be overriden by the |
|
81 |
TCG_CALL_CONST function modifier. By default, the helper is allowed to |
|
82 |
modify the CPU state or raise an exception. This can be overriden by |
|
83 |
the TCG_CALL_PURE function modifier, in which case the call to the |
|
84 |
function is removed if the return value is not used. |
|
82 | 85 |
|
83 | 86 |
On some TCG targets (e.g. x86), several calling conventions are |
84 | 87 |
supported. |
Also available in: Unified diff