[llvm-bugs] [Bug 48249] New: LLVMCreateTypeAttribute is missing from LLVM-C API

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 21 09:46:04 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48249

            Bug ID: 48249
           Summary: LLVMCreateTypeAttribute is missing from LLVM-C API
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: christoffer.lerno at gmail.com
                CC: llvm-bugs at lists.llvm.org

>From the LLVM-C API it is possible to create string and enum attributes,
however it still lacks support for type attributes, which makes it impossible
to use byval attributes properly. This problem is also clearly documented:


In LLVMCreateEnumAttribute it says:

    // After r362128, byval attributes need to have a type attribute. Provide a
    // NULL one until a proper API is added for this.

This affects sret and byval.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201121/f29e44b4/attachment.html>


More information about the llvm-bugs mailing list