[llvm-bugs] [Bug 49787] New: Codegen for calling __tgt_target_teams_nowait_mapper has too few arguments

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 31 07:40:37 PDT 2021


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

            Bug ID: 49787
           Summary: Codegen for calling __tgt_target_teams_nowait_mapper
                    has too few arguments
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: protze at itc.rwth-aachen.de
                CC: llvm-bugs at lists.llvm.org

The codegen seems to use:

declare i32 @__tgt_target_teams_nowait_mapper(%struct.ident_t*, i64, i8*, i32,
i8**, i8**, i64*, i64*, i8**, i8**, i32, i32) #3


While openmp/libomptarget/include/omptarget.h has 4 more arguments:

int __tgt_target_teams_nowait_mapper(
    ident_t *loc, int64_t device_id, void *host_ptr, int32_t arg_num,
    void **args_base, void **args, int64_t *arg_sizes, int64_t *arg_types,
    map_var_info_t *arg_names, void **arg_mappers, int32_t num_teams,
    int32_t thread_limit, int32_t depNum, void *depList, int32_t noAliasDepNum,
    void *noAliasDepList);

clang seems to be not aware of the last 4 arguments (based on comparing the
argument types)

-- 
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/20210331/5cac2bf8/attachment.html>


More information about the llvm-bugs mailing list