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

            Bug ID: 36574
           Summary: OMPT runtime msvc support
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Runtime Library
          Assignee: unassignedb...@nondot.org
          Reporter: tras...@gmail.com
                CC: llvm-bugs@lists.llvm.org

The OMPT part of the OpenMP runtime does have a PSAPI based implementation for
Windows but does not currently support msvc as a compiler.

I attached a patch which gets it to compile and link, but is only for
reference.
Some parts of it like removing the non-standard VLA and the ompt-specific.h
change may be of general interest.

The OMPT_GET_*_ADDRESS hacks were just for testing.
These macros are only called with values of 0 or 1 (though the documentation at
https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html for
__builtin_frame_address warns that "calling this function with a nonzero
argument can have unpredictable effects, including crashing the calling
program.")

The zero case may work with the given msvc intrinsics (not tested) but the
other one is not so easy to solve, may require assembly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to