<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>gcc.Tree operators by symbol — gcc-python-plugin 0.9 documentation</title> <link rel="stylesheet" href="_static/default.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '0.9', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="top" title="gcc-python-plugin 0.9 documentation" href="index.html" /> <link rel="up" title="Appendices" href="appendices.html" /> <link rel="prev" title="All of GCC’s passes" href="tables-of-passes.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="tables-of-passes.html" title="All of GCC’s passes" accesskey="P">previous</a> |</li> <li><a href="index.html">gcc-python-plugin 0.9 documentation</a> »</li> <li><a href="appendices.html" accesskey="U">Appendices</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="gcc-tree-operators-by-symbol"> <h1><a class="reference internal" href="tree.html#gcc.Tree" title="gcc.Tree"><tt class="xref py py-class docutils literal"><span class="pre">gcc.Tree</span></tt></a> operators by symbol<a class="headerlink" href="#gcc-tree-operators-by-symbol" title="Permalink to this headline">¶</a></h1> <p id="get-symbols">The following shows the symbol used for each expression subclass in debug dumps, as returned by the various <cite>get_symbol()</cite> class methods.</p> <p>There are some duplicates (e.g. <cite>-</cite> is used for both <a class="reference internal" href="tree.html#gcc.MinusExpr" title="gcc.MinusExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.MinusExpr</span></tt></a> as an infix binary operator, and by <a class="reference internal" href="tree.html#gcc.NegateExpr" title="gcc.NegateExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.NegateExpr</span></tt></a> as a prefixed unary operator).</p> <blockquote> <div><table border="1" class="docutils"> <colgroup> <col width="73%" /> <col width="27%" /> </colgroup> <thead valign="bottom"> <tr class="row-odd"><th class="head">Class</th> <th class="head">get_symbol()</th> </tr> </thead> <tbody valign="top"> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.AddrExpr</span></tt></td> <td><cite>&</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.BitAndExpr" title="gcc.BitAndExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.BitAndExpr</span></tt></a></td> <td><cite>&</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.BitIorExpr" title="gcc.BitIorExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.BitIorExpr</span></tt></a></td> <td><cite>|</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.BitNotExpr" title="gcc.BitNotExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.BitNotExpr</span></tt></a></td> <td><cite>~</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.BitXorExpr" title="gcc.BitXorExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.BitXorExpr</span></tt></a></td> <td><cite>^</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.CeilDivExpr" title="gcc.CeilDivExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.CeilDivExpr</span></tt></a></td> <td><cite>/[cl]</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.CeilModExpr" title="gcc.CeilModExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.CeilModExpr</span></tt></a></td> <td><cite>%[cl]</cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.EqExpr</span></tt></td> <td><cite>==</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.ExactDivExpr" title="gcc.ExactDivExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.ExactDivExpr</span></tt></a></td> <td><cite>/[ex]</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.FloorDivExpr" title="gcc.FloorDivExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.FloorDivExpr</span></tt></a></td> <td><cite>/[fl]</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.FloorModExpr" title="gcc.FloorModExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.FloorModExpr</span></tt></a></td> <td><cite>%[fl]</cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.GeExpr</span></tt></td> <td><cite>>=</cite></td> </tr> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.GtExpr</span></tt></td> <td><cite>></cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.IndirectRef</span></tt></td> <td><cite>*</cite></td> </tr> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.LeExpr</span></tt></td> <td><cite><=</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.LrotateExpr" title="gcc.LrotateExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.LrotateExpr</span></tt></a></td> <td><cite>r<<</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.LshiftExpr" title="gcc.LshiftExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.LshiftExpr</span></tt></a></td> <td><cite><<</cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.LtExpr</span></tt></td> <td><cite><</cite></td> </tr> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.LtgtExpr</span></tt></td> <td><cite><></cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.MaxExpr" title="gcc.MaxExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.MaxExpr</span></tt></a></td> <td><cite>max</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.MinExpr" title="gcc.MinExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.MinExpr</span></tt></a></td> <td><cite>min</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.MinusExpr" title="gcc.MinusExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.MinusExpr</span></tt></a></td> <td><cite>-</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.ModifyExpr" title="gcc.ModifyExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.ModifyExpr</span></tt></a></td> <td><cite>=</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.MultExpr" title="gcc.MultExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.MultExpr</span></tt></a></td> <td><cite>*</cite></td> </tr> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.NeExpr</span></tt></td> <td><cite>!=</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.NegateExpr" title="gcc.NegateExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.NegateExpr</span></tt></a></td> <td><cite>-</cite></td> </tr> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.OrderedExpr</span></tt></td> <td><cite>ord</cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.PlusExpr</span></tt></td> <td><cite>+</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.PointerPlusExpr" title="gcc.PointerPlusExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.PointerPlusExpr</span></tt></a></td> <td><cite>+</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.PostdecrementExpr" title="gcc.PostdecrementExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.PostdecrementExpr</span></tt></a></td> <td><cite>–</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.PostincrementExpr" title="gcc.PostincrementExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.PostincrementExpr</span></tt></a></td> <td><cite>++</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.PredecrementExpr" title="gcc.PredecrementExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.PredecrementExpr</span></tt></a></td> <td><cite>–</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.PreincrementExpr" title="gcc.PreincrementExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.PreincrementExpr</span></tt></a></td> <td><cite>++</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.RdivExpr" title="gcc.RdivExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.RdivExpr</span></tt></a></td> <td><cite>/</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.ReducPlusExpr" title="gcc.ReducPlusExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.ReducPlusExpr</span></tt></a></td> <td><cite>r+</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.RoundDivExpr" title="gcc.RoundDivExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.RoundDivExpr</span></tt></a></td> <td><cite>/[rd]</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.RoundModExpr" title="gcc.RoundModExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.RoundModExpr</span></tt></a></td> <td><cite>%[rd]</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.RrotateExpr" title="gcc.RrotateExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.RrotateExpr</span></tt></a></td> <td><cite>r>></cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.RshiftExpr" title="gcc.RshiftExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.RshiftExpr</span></tt></a></td> <td><cite>>></cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.TruncDivExpr</span></tt></td> <td><cite>/</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.TruncModExpr" title="gcc.TruncModExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.TruncModExpr</span></tt></a></td> <td><cite>%</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.TruthAndExpr" title="gcc.TruthAndExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.TruthAndExpr</span></tt></a></td> <td><cite>&&</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.TruthAndifExpr" title="gcc.TruthAndifExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.TruthAndifExpr</span></tt></a></td> <td><cite>&&</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.TruthNotExpr" title="gcc.TruthNotExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.TruthNotExpr</span></tt></a></td> <td><cite>!</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.TruthOrExpr" title="gcc.TruthOrExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.TruthOrExpr</span></tt></a></td> <td><cite>||</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.TruthOrifExpr" title="gcc.TruthOrifExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.TruthOrifExpr</span></tt></a></td> <td><cite>||</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.TruthXorExpr" title="gcc.TruthXorExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.TruthXorExpr</span></tt></a></td> <td><cite>^</cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.UneqExpr</span></tt></td> <td><cite>u==</cite></td> </tr> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.UngeExpr</span></tt></td> <td><cite>u>=</cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.UngtExpr</span></tt></td> <td><cite>u></cite></td> </tr> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.UnleExpr</span></tt></td> <td><cite>u<=</cite></td> </tr> <tr class="row-odd"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.UnltExpr</span></tt></td> <td><cite>u<</cite></td> </tr> <tr class="row-even"><td><tt class="xref py py-class docutils literal"><span class="pre">gcc.UnorderedExpr</span></tt></td> <td><cite>unord</cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.VecLshiftExpr" title="gcc.VecLshiftExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.VecLshiftExpr</span></tt></a></td> <td><cite>v<<</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.VecRshiftExpr" title="gcc.VecRshiftExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.VecRshiftExpr</span></tt></a></td> <td><cite>v>></cite></td> </tr> <tr class="row-odd"><td><a class="reference internal" href="tree.html#gcc.WidenMultExpr" title="gcc.WidenMultExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.WidenMultExpr</span></tt></a></td> <td><cite>w*</cite></td> </tr> <tr class="row-even"><td><a class="reference internal" href="tree.html#gcc.WidenSumExpr" title="gcc.WidenSumExpr"><tt class="xref py py-class docutils literal"><span class="pre">gcc.WidenSumExpr</span></tt></a></td> <td><cite>w+</cite></td> </tr> </tbody> </table> </div></blockquote> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="tables-of-passes.html" title="previous chapter">All of GCC’s passes</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/operators.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="tables-of-passes.html" title="All of GCC’s passes" >previous</a> |</li> <li><a href="index.html">gcc-python-plugin 0.9 documentation</a> »</li> <li><a href="appendices.html" >Appendices</a> »</li> </ul> </div> <div class="footer"> © Copyright 2011, David Malcolm. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>