--- gcc/tree.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gcc/tree.h b/gcc/tree.h index bd0c51b2a18..86a4542f58b 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -6156,6 +6156,17 @@ int_bit_position (const_tree field) + wi::to_offset (DECL_FIELD_BIT_OFFSET (field))).to_shwi (); } +/* Determine if tree code is a constant */ +inline bool +tree_code_is_cst (tree op) +{ + int code = TREE_CODE (op); + if (code == INTEGER_CST || code == REAL_CST || code == COMPLEX_CST + || code == VECTOR_CST) + return true; + return false; +} + /* Return true if it makes sense to consider alias set for a type T. */ inline bool -- 2.18.1
- [patch 0/5] ipa-initcall-cp Erick Ochoa
- [PATCH 1/5] Add stringify_ipa_ref_use ... Erick Ochoa
- Re: [PATCH 1/5] Add stringify_ipa_... Jan Hubicka
- [PATCH 2/5] Add function tree_code_in_... Erick Ochoa
- Re: [PATCH 2/5] Add function tree_... Jan Hubicka
- Re: [PATCH 2/5] Add function t... Richard Biener via Gcc-patches
- Re: [PATCH 2/5] Add functi... Erick Ochoa
- [PATCH 3/5] Add function path_exists Erick Ochoa
- [PATCH 5/5] Adds ipa-initcall-cp pass. Erick Ochoa
- Re: [PATCH 5/5] Adds ipa-initcall-... Richard Biener via Gcc-patches
- [PATCH 4/5] Export cgraph_externally_v... Erick Ochoa
- Re: [patch 0/5] ipa-initcall-cp Richard Biener via Gcc-patches