Next:Tuple specific accessors, Previous:Operands, Up:GIMPLE [Contents][Index]
This section documents all the functions available to handle eachof the GIMPLE instructions.
The following are common accessors for gimple statements.
enum gimple_codegimple_code(gimple g) ¶Return the code for statementG.
basic_blockgimple_bb(gimple g) ¶Return the basic block to which statementG belongs to.
treegimple_block(gimple g) ¶Return the lexical scope block holding statementG.
enum tree_codegimple_expr_code(gimple stmt) ¶Return the tree code for the expression computed bySTMT. Thisis only meaningful forGIMPLE_CALL,GIMPLE_ASSIGN andGIMPLE_COND. IfSTMT isGIMPLE_CALL, it will returnCALL_EXPR.ForGIMPLE_COND, it returns the code of the comparison predicate.ForGIMPLE_ASSIGN it returns the code of the operation performedby theRHS of the assignment.
voidgimple_set_block(gimple g, tree block) ¶Set the lexical scope block ofG toBLOCK.
location_tgimple_locus(gimple g) ¶Return locus information for statementG.
voidgimple_set_locus(gimple g, location_t locus) ¶Set locus information for statementG.
boolgimple_locus_empty_p(gimple g) ¶Return true ifG does not have locus information.
boolgimple_no_warning_p(gimple stmt) ¶Return true if no warnings should be emitted for statementSTMT.
voidgimple_set_visited(gimple stmt, bool visited_p) ¶Set the visited status on statementSTMT toVISITED_P.
boolgimple_visited_p(gimple stmt) ¶Return the visited status on statementSTMT.
voidgimple_set_plf(gimple stmt, enum plf_mask plf, bool val_p) ¶Set pass local flagPLF on statementSTMT toVAL_P.
unsigned intgimple_plf(gimple stmt, enum plf_mask plf) ¶Return the value of pass local flagPLF on statementSTMT.
boolgimple_has_ops(gimple g) ¶Return true if statementG has register or memory operands.
boolgimple_has_mem_ops(gimple g) ¶Return true if statementG has memory operands.
unsignedgimple_num_ops(gimple g) ¶Return the number of operands for statementG.
tree *gimple_ops(gimple g) ¶Return the array of operands for statementG.
treegimple_op(gimple g, unsigned i) ¶Return operandI for statementG.
tree *gimple_op_ptr(gimple g, unsigned i) ¶Return a pointer to operandI for statementG.
voidgimple_set_op(gimple g, unsigned i, tree op) ¶Set operandI of statementG toOP.
bitmapgimple_addresses_taken(gimple stmt) ¶Return the set of symbols that have had their address taken bySTMT.
struct def_optype_d *gimple_def_ops(gimple g) ¶Return the set ofDEF operands for statementG.
voidgimple_set_def_ops(gimple g, struct def_optype_d *def) ¶SetDEF to be the set ofDEF operands for statementG.
struct use_optype_d *gimple_use_ops(gimple g) ¶Return the set ofUSE operands for statementG.
voidgimple_set_use_ops(gimple g, struct use_optype_d *use) ¶SetUSE to be the set ofUSE operands for statementG.
struct voptype_d *gimple_vuse_ops(gimple g) ¶Return the set ofVUSE operands for statementG.
voidgimple_set_vuse_ops(gimple g, struct voptype_d *ops) ¶SetOPS to be the set ofVUSE operands for statementG.
struct voptype_d *gimple_vdef_ops(gimple g) ¶Return the set ofVDEF operands for statementG.
voidgimple_set_vdef_ops(gimple g, struct voptype_d *ops) ¶SetOPS to be the set ofVDEF operands for statementG.
bitmapgimple_loaded_syms(gimple g) ¶Return the set of symbols loaded by statementG. Each element ofthe set is theDECL_UID of the corresponding symbol.
bitmapgimple_stored_syms(gimple g) ¶Return the set of symbols stored by statementG. Each element ofthe set is theDECL_UID of the corresponding symbol.
boolgimple_modified_p(gimple g) ¶Return true if statementG has operands and the modified fieldhas been set.
boolgimple_has_volatile_ops(gimple stmt) ¶Return true if statementSTMT contains volatile operands.
voidgimple_set_has_volatile_ops(gimple stmt, bool volatilep) ¶Return true if statementSTMT contains volatile operands.
voidupdate_stmt(gimple s) ¶Mark statementS as modified, and update it.
voidupdate_stmt_if_modified(gimple s) ¶Update statementS if it has been marked modified.
gimplegimple_copy(gimple stmt) ¶Return a deep copy of statementSTMT.
Next:Tuple specific accessors, Previous:Operands, Up:GIMPLE [Contents][Index]