<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - "Getter" functionality (or just docs?) missing from include/llvm-c/Core.h"
   href="https://bugs.llvm.org/show_bug.cgi?id=42692">42692</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"Getter" functionality (or just docs?) missing from include/llvm-c/Core.h
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Core LLVM classes
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>cdisselk@cs.ucsd.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>LLVM's C API appears to me to be missing getters for certain features.  It's
also very possible that the functionality is there but I can't find it, in
which case I would suggest this could also be considered a documentation bug. 
Specifically, getters seem to be missing for the following:

- the 'nsw' and 'nuw' flags on the 'add', 'sub', 'mul', and 'shl' instructions.
 The C API has functionality to set these flags and/or create new instructions
with specific values of those flags (e.g., `LLVMBuildNSWAdd()`), but appears to
have no way to query those flags on an existing instruction.
- Likewise, the 'exact' flag on the 'udiv', 'sdiv', 'lshr', and 'ashr'
instructions.
- The various fast-math flags on floating-point operations. I don't even see
how setters are exposed for these (let alone getters), but this bug is about
getters.
- The `LLVMAtomicRMWBinOp` associated with a particular 'atomicrmw'
instruction.  The BinOp can be specified when creating an 'atomicrmw'
instruction with `LLVMBuildAtomicRMW()`, but I don't see a way to determine the
BinOp of an existing 'atomicrmw' instruction.
- The contents of an inline asm string.  Despite its name, `LLVMGetInlineAsm()`
appears to create inline asm values, not get information about them.
- The contents of clauses of the 'landingpad' instruction. `LLVMGetClause()`
exists, but it's unclear what functions can be called on the resulting
`LLVMValueRef`, or how to tell the `LLVMLandingPadClauseTy` of the clause.
- The operands of a 'blockaddress' constant expression. If you have a value
with `LLVMBlockAddressValueKind`, how can you determine which basic block it is
taking the address of?
- The "prefix data" associated with a function.

Again, it's very possible that getters do exist for any or all of the above,
but I would suggest that in that case, this could be considered a documentation
bug.

I can also file separate bugs for each of these issues if desired.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>