r194366 - in /branches/cilkplus/gcc: ChangeLog....

bviyer@gcc.gnu.org bviyer@gcc.gnu.org
Mon Dec 10 19:39:00 GMT 2012


Author: bviyer
Date: Mon Dec 10 19:39:34 2012
New Revision: 194366

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194366
Log:
Added several Elemental function changes for C (from patch to branch).

gcc/c-family/ChangeLog.cilkplus
+2012-12-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* c-cpp-elem-function.c: New file.
+	

gcc/testsuite/ChangeLog.cilkplus
+2012-12-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* gcc.dg/cilk-plus/elem_fn_tests/test1.c: Remove.
+	* gcc.dg/cilk-plus/elem_fn_tests/test2.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test3.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test4.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test5.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test6.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test7.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test8.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test9.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/switch_stmt.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/ctrl_flow2.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test10.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test11.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test12.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test13.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test14.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test15.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test16.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test17.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/test18.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/ctrl_flow.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/32bit/test10.c: New test.
+	* gcc.dg/cilk-plus/elem_fn_tests/32bit/test1.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/32bit/test11.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/32bit/test12.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/32bit/test7.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/32bit/test8.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/32bit/test9.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test1.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test2.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test3.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test4.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test5.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test6.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/switch_stmt.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/ctrl_flow2.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test13.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test14.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test15.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test16.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test17.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/test18.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/64bit/ctrl_flow.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/elem_fn.exp: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/errors: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/errors/vlength_errors.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/errors/duplicate_decls.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/errors/linear_errors.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/errors/uniform_errors.c: Likewise.
+	* gcc.dg/cilk-plus/elem_fn_tests/errors/processor_errors.c: Likewise.
+	

gcc/ChangeLog.cilkplus
+2012-12-10  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* doc/tm.texi (TARGET_CILKPLUS_BUILTIN_MAP_PROCESSOR_TO_ATTR): Added
+	documentation for this hook.
+	(TARGET_CILKPLUS_BUILTIN_FIND_PROCESSOR_CODE): Likewise.
+	(TARGET_CILKPLUS_BUILTIN_FIND_ISA_CODE): Likewise.
+	(TARGET_CILKPLUS_BUILTIN_FIND_VLENGTH_CODE): Likewise.
+	* doc/tm.texi.in (TARGET_CILKPLUS_BUILTIN_MAP_PROCESSOR_TO_ATTR): Added
+	hook.
+	(TARGET_CILKPLUS_BUILTIN_FIND_PROCESSOR_CODE): Likewise.
+	(TARGET_CILKPLUS_BUILTIN_FIND_ISA_CODE): Likewise.
+	(TARGET_CILKPLUS_BUILTIN_FIND_VLENGTH_FOR_PROC): Likewise.
+	* targhooks.c (default_builtin_map_processor_to_attr): New function.
+	(default_builtin_find_processor_code): Likewise.
+	(default_builtin_find_vlength_code): Likewise.
+	(default_builtin_find_isa_code): Likewise.
+	* c/c-parser.c (c_parser_elem_fn_processor_clause): Fixed syntax issue
+	in error message.  Added several checks and error reporting for invalid
+	values.
+	(c_parser_elem_fn_uniform_clause): Likewise.
+	(c_parser_elem_fn_linear_clause): Likewise.
+	(c_parser_elem_fn_vlength_clause): Likewise.
+	* c/c-decl.c (c_builtin_function_ext_scope): Added a check if external
+	scope is non-null.
+	* target.def (TARGET_CILKPLUS): Added this hook and several definitions
+	such as builtin_map_processor_to_attr, builtin_find_processor_code,
+	builtin_find_vlength_for_proc, builtin_find_isa_code.
+	* tree.h (enum elem_fn_parm_type): Moved this to c-common.
+	* cilk.h (elem_fn_info): Added some extra fields into struct.
+	* elem-function-common.c (find_processor_code): Called the target
+	dependent version.  Also made several changes to satisfy the new
+	elemental function mangling format.  Finally, fixed up header comments.
+	(find_suffix): Likewise.
+	(extract_elem_fn_values): Likewise.
+	* tree-vect-stmts.c (elem_fn_vect_get_vec_def_for_operand): Return
+	scalar version for the uniform or linear parameters.
+	(vectorizable_call): Set the function type correctly.
+	* tree-inline.c (remap_var_for_cilk): Remove.
+	(tree_elem_fn_versioning): Fix up header function and reflected changes
+	in tree_function_versioning into this function.
+	(copy_tree_body_r): Removed a call for remap_var_for_cilk.
+	(elem_fn_copy_arguments_for_versioning): Fixed header comments.
+	* Makefile.in (C_COMMON_OBJS): Added c-family/c-cpp-elem-function.o.
+	* config/i386/i386.c (type_natural_mode): Added a check for cilk flag
+	before emitting a note.
+	(ix86_frame_pointer_required): Added a flag_enable_cilk check.
+	(ix86_cilkplus_map_proc_to_attr): New function.
+	(ix86_cilkplus_find_proc_code): Likewise.
+	(ix86_cilkplus_find_isa_code): Likewise.
+	(ix86_builtin_find_vlength_for_proc): Likewise.
+

Added:
    branches/cilkplus/gcc/c-family/c-cpp-elem-function.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/32bit/
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/32bit/test1.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/32bit/test10.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/32bit/test11.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/32bit/test12.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/32bit/test7.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/32bit/test8.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/32bit/test9.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/ctrl_flow.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/ctrl_flow2.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/switch_stmt.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test1.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test13.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test14.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test15.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test16.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test17.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test18.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test2.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test3.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test4.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test5.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/64bit/test6.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/elem_fn.exp
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/errors/
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/errors/duplicate_decls.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/errors/linear_errors.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/errors/processor_errors.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/errors/uniform_errors.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/errors/vlength_errors.c
Removed:
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/ctrl_flow.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/ctrl_flow2.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/switch_stmt.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test1.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test10.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test11.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test12.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test13.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test14.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test15.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test16.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test17.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test18.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test2.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test3.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test4.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test5.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test6.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test7.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test8.c
    branches/cilkplus/gcc/testsuite/gcc.dg/cilk-plus/elem_fn_tests/test9.c
Modified:
    branches/cilkplus/gcc/ChangeLog.cilkplus
    branches/cilkplus/gcc/Makefile.in
    branches/cilkplus/gcc/c-family/ChangeLog.cilkplus
    branches/cilkplus/gcc/c/c-decl.c
    branches/cilkplus/gcc/c/c-parser.c
    branches/cilkplus/gcc/cilk.h
    branches/cilkplus/gcc/config/i386/i386.c
    branches/cilkplus/gcc/doc/tm.texi
    branches/cilkplus/gcc/doc/tm.texi.in
    branches/cilkplus/gcc/elem-function-common.c
    branches/cilkplus/gcc/target.def
    branches/cilkplus/gcc/targhooks.c
    branches/cilkplus/gcc/testsuite/ChangeLog.cilkplus
    branches/cilkplus/gcc/tree-inline.c
    branches/cilkplus/gcc/tree-vect-stmts.c
    branches/cilkplus/gcc/tree.c
    branches/cilkplus/gcc/tree.h



More information about the Gcc-cvs mailing list