llvmpy/docs/_build/html/doc/llvm.ee.GenericValue.html

173 lines
No EOL
9.1 KiB
HTML

<!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>llvm.ee.GenericValue &mdash; llvmpy 0.8.2 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.8.2',
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>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="top" title="llvmpy 0.8.2 documentation" href="../index.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><a href="../index.html">llvmpy 0.8.2 documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<table border="1" class="docutils">
<colgroup>
<col width="100%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td>layout: page</td>
</tr>
<tr class="row-even"><td>title: GenericValue (llvm.ee)</td>
</tr>
</tbody>
</table>
<div class="section" id="llvm-ee-genericvalue">
<h1>llvm.ee.GenericValue<a class="headerlink" href="#llvm-ee-genericvalue" title="Permalink to this headline"></a></h1>
<ul class="simple">
<li>This will become a table of contents (this text will be scraped).
{:toc}</li>
</ul>
<div class="section" id="methods">
<h2>Methods<a class="headerlink" href="#methods" title="Permalink to this headline"></a></h2>
<div class="section" id="as-int-self">
<h3><tt class="docutils literal"><span class="pre">as_int(self)</span></tt><a class="headerlink" href="#as-int-self" title="Permalink to this headline"></a></h3>
<p>Return the value of this <tt class="docutils literal"><span class="pre">GenericValue</span></tt> instance as an unsigned
integer</p>
</div>
<div class="section" id="as-int-signed-self">
<h3><tt class="docutils literal"><span class="pre">as_int_signed(self)</span></tt><a class="headerlink" href="#as-int-signed-self" title="Permalink to this headline"></a></h3>
<p>Return the value of this <tt class="docutils literal"><span class="pre">GenericValue</span></tt> instance as a signed integer.</p>
</div>
<div class="section" id="as-pointer-self">
<h3><tt class="docutils literal"><span class="pre">as_pointer(self)</span></tt><a class="headerlink" href="#as-pointer-self" title="Permalink to this headline"></a></h3>
<p>Return the value of this <tt class="docutils literal"><span class="pre">GenericValue</span></tt> instance as a pointer. The
type of the return value is <tt class="docutils literal"><span class="pre">int</span></tt>.</p>
</div>
<div class="section" id="as-real-self-ty">
<h3><tt class="docutils literal"><span class="pre">as_real(self,</span> <span class="pre">ty)</span></tt><a class="headerlink" href="#as-real-self-ty" title="Permalink to this headline"></a></h3>
<p>Return the value of this <tt class="docutils literal"><span class="pre">GenericValue</span></tt> instance as a real number
which type is specified by <tt class="docutils literal"><span class="pre">ty</span></tt>. <tt class="docutils literal"><span class="pre">ty</span></tt> must be a
<a class="reference external" href="llvm.core.Type.html">Type</a> instance of a real number type.</p>
</div>
</div>
<div class="section" id="static-factory-methods">
<h2>Static Factory Methods<a class="headerlink" href="#static-factory-methods" title="Permalink to this headline"></a></h2>
<div class="section" id="int-ty-intval">
<h3><tt class="docutils literal"><span class="pre">int(ty,</span> <span class="pre">intval)</span></tt><a class="headerlink" href="#int-ty-intval" title="Permalink to this headline"></a></h3>
<p>Create a <tt class="docutils literal"><span class="pre">GenericValue</span></tt> instance with a <tt class="docutils literal"><span class="pre">int</span></tt> value, which is
zero-extended if necessary. The type of the value is specified by
<tt class="docutils literal"><span class="pre">ty</span></tt>, which is a <a class="reference external" href="llvm.core.Type.html">Type</a> instance.</p>
</div>
<div class="section" id="int-signed-ty-intval">
<h3><tt class="docutils literal"><span class="pre">int_signed(ty,</span> <span class="pre">intval)</span></tt><a class="headerlink" href="#int-signed-ty-intval" title="Permalink to this headline"></a></h3>
<p>Create a <tt class="docutils literal"><span class="pre">GenericValue</span></tt> instance with a <tt class="docutils literal"><span class="pre">int</span></tt> value, which is
sign-extended if necessary. The type of the value is specified by
<tt class="docutils literal"><span class="pre">ty</span></tt>, which is a <a class="reference external" href="llvm.core.Type.html">Type</a> instance.</p>
</div>
<div class="section" id="pointer-ty-addr-or-pointer-addr">
<h3><tt class="docutils literal"><span class="pre">pointer(ty,</span> <span class="pre">addr)</span></tt> or <tt class="docutils literal"><span class="pre">pointer(addr)</span></tt><a class="headerlink" href="#pointer-ty-addr-or-pointer-addr" title="Permalink to this headline"></a></h3>
<p>Create a <tt class="docutils literal"><span class="pre">GenericValue</span></tt> instance with a <tt class="docutils literal"><span class="pre">int</span></tt> value, which is
representing a pointer value.</p>
<p>The two argument version is <strong>deprecated</strong>. The old code never used
<tt class="docutils literal"><span class="pre">ty</span></tt> anyway.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="../index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">llvm.ee.GenericValue</a><ul>
<li><a class="reference internal" href="#methods">Methods</a><ul>
<li><a class="reference internal" href="#as-int-self"><tt class="docutils literal"><span class="pre">as_int(self)</span></tt></a></li>
<li><a class="reference internal" href="#as-int-signed-self"><tt class="docutils literal"><span class="pre">as_int_signed(self)</span></tt></a></li>
<li><a class="reference internal" href="#as-pointer-self"><tt class="docutils literal"><span class="pre">as_pointer(self)</span></tt></a></li>
<li><a class="reference internal" href="#as-real-self-ty"><tt class="docutils literal"><span class="pre">as_real(self,</span> <span class="pre">ty)</span></tt></a></li>
</ul>
</li>
<li><a class="reference internal" href="#static-factory-methods">Static Factory Methods</a><ul>
<li><a class="reference internal" href="#int-ty-intval"><tt class="docutils literal"><span class="pre">int(ty,</span> <span class="pre">intval)</span></tt></a></li>
<li><a class="reference internal" href="#int-signed-ty-intval"><tt class="docutils literal"><span class="pre">int_signed(ty,</span> <span class="pre">intval)</span></tt></a></li>
<li><a class="reference internal" href="#pointer-ty-addr-or-pointer-addr"><tt class="docutils literal"><span class="pre">pointer(ty,</span> <span class="pre">addr)</span></tt> or <tt class="docutils literal"><span class="pre">pointer(addr)</span></tt></a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../_sources/doc/llvm.ee.GenericValue.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><a href="../index.html">llvmpy 0.8.2 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2012, Mahadevan R (2008-2010), Continuum Analytics (2012).
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
</div>
</body>
</html>