Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(180)

Delta Between Two Patch Sets: gcc/target.def

Issue 5752064: User directed Function Multiversioning via Function Overloading Base URL: svn+ssh://gcc.gnu.org/svn/gcc/trunk/gcc/
Left Patch Set: Created 12 years, 10 months ago
Right Patch Set: User directed Function Multiversioning via Function Overloading Created 12 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « gcc/doc/tm.texi.in ('k') | gcc/testsuite/g++.dg/mv1.C » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /* Target hook definitions. 1 /* Target hook definitions.
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
3 2011, 2012 3 2011, 2012
4 Free Software Foundation, Inc. 4 Free Software Foundation, Inc.
5 5
6 This program is free software; you can redistribute it and/or modify it 6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the 7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 3, or (at your option) any 8 Free Software Foundation; either version 3, or (at your option) any
9 later version. 9 later version.
10 10
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 (resolve_overloaded_builtin, 1290 (resolve_overloaded_builtin,
1291 "", 1291 "",
1292 tree, (unsigned int /*location_t*/ loc, tree fndecl, void *arglist), NULL) 1292 tree, (unsigned int /*location_t*/ loc, tree fndecl, void *arglist), NULL)
1293 1293
1294 /* Fold a target-specific builtin. */ 1294 /* Fold a target-specific builtin. */
1295 DEFHOOK 1295 DEFHOOK
1296 (fold_builtin, 1296 (fold_builtin,
1297 "", 1297 "",
1298 tree, (tree fndecl, int n_args, tree *argp, bool ignore), 1298 tree, (tree fndecl, int n_args, tree *argp, bool ignore),
1299 hook_tree_tree_int_treep_bool_null) 1299 hook_tree_tree_int_treep_bool_null)
1300
1301 /* Target hook to compare the priority of target features in function DECL1
1302 and DECL2. It returns positive value if DECL1 is higher priority,
1303 negative value if DECL2 is higher priority and 0 if they are the
1304 same. */
1305 DEFHOOK
1306 (compare_version_priority,
1307 "",
1308 int, (tree decl1, tree decl2), NULL)
1309
1310 /* Target hook to get the new assembler name of DECL which is a function
1311 version. */
1312
1313 DEFHOOK
1314 (set_version_assembler_name,
1315 "",
1316 void, (tree decl), NULL)
1317
1318 /* Target hook to generate the dispatcher body for a function version
1319 dispatcher ARG, which is a cgraph_node pointer. */
1320
1321 DEFHOOK
1322 (generate_version_dispatcher_body,
1323 "",
1324 tree, (void *arg), NULL)·
1325
1326 /* Target hook to generate a function version dispatcher DECL for the list
1327 of function versions in arglist, which is a vector of decls. */
1328
1329 DEFHOOK
1330 (get_function_versions_dispatcher,
1331 "",
1332 tree, (void *arglist), NULL)
1300 1333
1301 /* Returns a code for a target-specific builtin that implements 1334 /* Returns a code for a target-specific builtin that implements
1302 reciprocal of the function, or NULL_TREE if not available. */ 1335 reciprocal of the function, or NULL_TREE if not available. */
1303 DEFHOOK 1336 DEFHOOK
1304 (builtin_reciprocal, 1337 (builtin_reciprocal,
1305 "", 1338 "",
1306 tree, (unsigned fn, bool md_fn, bool sqrt), 1339 tree, (unsigned fn, bool md_fn, bool sqrt),
1307 default_builtin_reciprocal) 1340 default_builtin_reciprocal)
1308 1341
1309 /* For a vendor-specific TYPE, return a pointer to a statically-allocated 1342 /* For a vendor-specific TYPE, return a pointer to a statically-allocated
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 bool, (tree args, tree pop_target), 2731 bool, (tree args, tree pop_target),
2699 default_target_option_pragma_parse) 2732 default_target_option_pragma_parse)
2700 2733
2701 /* Do option overrides for the target. */ 2734 /* Do option overrides for the target. */
2702 DEFHOOK 2735 DEFHOOK
2703 (override, 2736 (override,
2704 "", 2737 "",
2705 void, (void), 2738 void, (void),
2706 hook_void_void) 2739 hook_void_void)
2707 2740
2741 /* Returns true if DECL1 and DECL2 are versions of the same function. */
2742
2743 DEFHOOK
2744 (function_versions,
2745 "",
2746 bool, (tree decl1, tree decl2),
2747 hook_bool_tree_tree_false)
2748
2708 /* Function to determine if one function can inline another function. */ 2749 /* Function to determine if one function can inline another function. */
2709 #undef HOOK_PREFIX 2750 #undef HOOK_PREFIX
2710 #define HOOK_PREFIX "TARGET_" 2751 #define HOOK_PREFIX "TARGET_"
2711 DEFHOOK 2752 DEFHOOK
2712 (can_inline_p, 2753 (can_inline_p,
2713 "", 2754 "",
2714 bool, (tree caller, tree callee), 2755 bool, (tree caller, tree callee),
2715 default_target_can_inline_p) 2756 default_target_can_inline_p)
2716 2757
2717 HOOK_VECTOR_END (target_option) 2758 HOOK_VECTOR_END (target_option)
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
2838 2879
2839 DEFHOOKPOD 2880 DEFHOOKPOD
2840 (delay_vartrack, "True if vartrack is not to be run at its normal place. \ 2881 (delay_vartrack, "True if vartrack is not to be run at its normal place. \
2841 This usually means it will be run as part of machine-specific reorg.", 2882 This usually means it will be run as part of machine-specific reorg.",
2842 bool, false) 2883 bool, false)
2843 2884
2844 /* Leave the boolean fields at the end. */ 2885 /* Leave the boolean fields at the end. */
2845 2886
2846 /* Close the 'struct gcc_target' definition. */ 2887 /* Close the 'struct gcc_target' definition. */
2847 HOOK_VECTOR_END (C90_EMPTY_HACK) 2888 HOOK_VECTOR_END (C90_EMPTY_HACK)
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b