Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:GIMPLE   [Contents][Index]


11.7 Manipulating GIMPLE statements

This section documents all the functions available to handle eachof the GIMPLE instructions.

11.7.1 Common accessors

The following are common accessors for gimple statements.

GIMPLE function:enum gimple_codegimple_code(gimple g)

Return the code for statementG.

GIMPLE function:basic_blockgimple_bb(gimple g)

Return the basic block to which statementG belongs to.

GIMPLE function:treegimple_block(gimple g)

Return the lexical scope block holding statementG.

GIMPLE function: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.

GIMPLE function:voidgimple_set_block(gimple g, tree block)

Set the lexical scope block ofG toBLOCK.

GIMPLE function:location_tgimple_locus(gimple g)

Return locus information for statementG.

GIMPLE function:voidgimple_set_locus(gimple g, location_t locus)

Set locus information for statementG.

GIMPLE function:boolgimple_locus_empty_p(gimple g)

Return true ifG does not have locus information.

GIMPLE function:boolgimple_no_warning_p(gimple stmt)

Return true if no warnings should be emitted for statementSTMT.

GIMPLE function:voidgimple_set_visited(gimple stmt, bool visited_p)

Set the visited status on statementSTMT toVISITED_P.

GIMPLE function:boolgimple_visited_p(gimple stmt)

Return the visited status on statementSTMT.

GIMPLE function:voidgimple_set_plf(gimple stmt, enum plf_mask plf, bool val_p)

Set pass local flagPLF on statementSTMT toVAL_P.

GIMPLE function:unsigned intgimple_plf(gimple stmt, enum plf_mask plf)

Return the value of pass local flagPLF on statementSTMT.

GIMPLE function:boolgimple_has_ops(gimple g)

Return true if statementG has register or memory operands.

GIMPLE function:boolgimple_has_mem_ops(gimple g)

Return true if statementG has memory operands.

GIMPLE function:unsignedgimple_num_ops(gimple g)

Return the number of operands for statementG.

GIMPLE function:tree *gimple_ops(gimple g)

Return the array of operands for statementG.

GIMPLE function:treegimple_op(gimple g, unsigned i)

Return operandI for statementG.

GIMPLE function:tree *gimple_op_ptr(gimple g, unsigned i)

Return a pointer to operandI for statementG.

GIMPLE function:voidgimple_set_op(gimple g, unsigned i, tree op)

Set operandI of statementG toOP.

GIMPLE function:bitmapgimple_addresses_taken(gimple stmt)

Return the set of symbols that have had their address taken bySTMT.

GIMPLE function:struct def_optype_d *gimple_def_ops(gimple g)

Return the set ofDEF operands for statementG.

GIMPLE function:voidgimple_set_def_ops(gimple g, struct def_optype_d *def)

SetDEF to be the set ofDEF operands for statementG.

GIMPLE function:struct use_optype_d *gimple_use_ops(gimple g)

Return the set ofUSE operands for statementG.

GIMPLE function:voidgimple_set_use_ops(gimple g, struct use_optype_d *use)

SetUSE to be the set ofUSE operands for statementG.

GIMPLE function:struct voptype_d *gimple_vuse_ops(gimple g)

Return the set ofVUSE operands for statementG.

GIMPLE function:voidgimple_set_vuse_ops(gimple g, struct voptype_d *ops)

SetOPS to be the set ofVUSE operands for statementG.

GIMPLE function:struct voptype_d *gimple_vdef_ops(gimple g)

Return the set ofVDEF operands for statementG.

GIMPLE function:voidgimple_set_vdef_ops(gimple g, struct voptype_d *ops)

SetOPS to be the set ofVDEF operands for statementG.

GIMPLE function:bitmapgimple_loaded_syms(gimple g)

Return the set of symbols loaded by statementG. Each element ofthe set is theDECL_UID of the corresponding symbol.

GIMPLE function:bitmapgimple_stored_syms(gimple g)

Return the set of symbols stored by statementG. Each element ofthe set is theDECL_UID of the corresponding symbol.

GIMPLE function:boolgimple_modified_p(gimple g)

Return true if statementG has operands and the modified fieldhas been set.

GIMPLE function:boolgimple_has_volatile_ops(gimple stmt)

Return true if statementSTMT contains volatile operands.

GIMPLE function:voidgimple_set_has_volatile_ops(gimple stmt, bool volatilep)

Return true if statementSTMT contains volatile operands.

GIMPLE function:voidupdate_stmt(gimple s)

Mark statementS as modified, and update it.

GIMPLE function:voidupdate_stmt_if_modified(gimple s)

Update statementS if it has been marked modified.

GIMPLE function:gimplegimple_copy(gimple stmt)

Return a deep copy of statementSTMT.


Next:Tuple specific accessors, Previous:Operands, Up:GIMPLE   [Contents][Index]


[8]ページ先頭

©2009-2026 Movatter.jp