Advertisement
Guest User

Untitled

a guest
Aug 17th, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.05 KB | None | 0 0
  1. /* Generated automatically by the program `genmatch' from
  2.    a IL pattern matching and simplification description.  */
  3.  
  4. #include "gimple-match-head.c"
  5.  
  6. static bool
  7. gimple_simplify (code_helper * res_code, tree * res_ops,
  8.          gimple_seq * seq, tree (*valueize) (tree),
  9.          code_helper code, tree type, tree op0)
  10. {
  11.   return false;
  12. }
  13.  
  14. static bool
  15. gimple_simplify (code_helper * res_code, tree * res_ops,
  16.          gimple_seq * seq, tree (*valueize) (tree),
  17.          code_helper code, tree type, tree op0, tree op1)
  18. {
  19.   if (code == TRUNC_MOD_EXPR)
  20.     {
  21.       {
  22.     {
  23.       if (integer_onep (op1))
  24.         {
  25. /* simplify 0 */
  26.           {
  27.         tree captures[6] ATTRIBUTE_UNUSED = { };
  28.         captures[0] = op0;
  29. /* #line 3 "test.pd" */
  30.         res_ops[0] = build_zero_cst (type);
  31.         *res_code = TREE_CODE (res_ops[0]);
  32.         return true;
  33.           }
  34.         }
  35.     }
  36.       }
  37.     }
  38.   return false;
  39. }
  40.  
  41. static bool
  42. gimple_simplify (code_helper * res_code, tree * res_ops,
  43.          gimple_seq * seq, tree (*valueize) (tree),
  44.          code_helper code, tree type, tree op0, tree op1, tree op2)
  45. {
  46.   return false;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement