Patchwork [Cilkplus] Added LTO support for the Cilk Plus Flag

login
register
mail settings
Submitter Iyer, Balaji V
Date July 25, 2012, 10:23 p.m.
Message ID <BF230D13CA30DD48930C31D40993300016C381C1@FMSMSX102.amr.corp.intel.com>
Download mbox | patch
Permalink /patch/173298/
State New
Headers show

Comments

Iyer, Balaji V - July 25, 2012, 10:23 p.m.
Hello Everyone,
    This patch is for the Cilk Plus branch mainly affecting the LTO flag. This patch will allow the flag_enable_cilk to carry through into the LTO code. Also, I added one small case statement for __cilkrts_detach.

Thanks,

Balaji V. Iyer.

Patch

Index: gcc/c-family/c.opt
===================================================================
--- gcc/c-family/c.opt	(revision 189810)
+++ gcc/c-family/c.opt	(working copy)
@@ -769,7 +769,7 @@ 
 C ObjC C++ ObjC++ Joined
 
 fcilkplus
-C ObjC C++ ObjC++ Report Var(flag_enable_cilk) Init(0)
+C ObjC C++ ObjC++ LTO Report Var(flag_enable_cilk) Init(0)
 Enable Cilk
 
 fcilk-check-spawn-queue
Index: gcc/cilk.c
===================================================================
--- gcc/cilk.c	(revision 189811)
+++ gcc/cilk.c	(working copy)
@@ -1212,6 +1212,7 @@ 
   
   switch (func_code)
     {
+    case BUILT_IN_CILK_DETACH:
     case BUILT_IN_CILK_ENTER_FRAME:
     case BUILT_IN_CILK_ENTER_BEGIN:
     case BUILT_IN_CILK_ENTER_H_BEGIN:
Index: gcc/ChangeLog.cilk
===================================================================
--- gcc/ChangeLog.cilk	(revision 189811)
+++ gcc/ChangeLog.cilk	(working copy)
@@ -1,3 +1,8 @@ 
+2012-07-25  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* cilk.c (is_cilk_must_expand_fn): Added BUILT_IN_CILK_DETACH case.
+	* c.opt (flag_enable_cilk): Added a case for LTO.
+
 2012-07-23  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
 	* cilk.c (cilk_declare_looper): Added comments to function header.  Also