-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially support the transformation of PARALLEL directive
A simple PARALLEL directive without any clauses can be transformed correctly. The updated implementation using LLVM runtime only support C/C++. Since the transformation function is shared by both C/C++ and Fortran, the transformation of PARALLEL directive in Fortran is probably broken now.
- Loading branch information
Showing
3 changed files
with
33 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
typedef struct ident { | ||
int reserved_1; | ||
int flags; | ||
int reserved_2; | ||
int reserved_3; | ||
char const *psource; | ||
} ident_t; | ||
|
||
void __kmpc_fork_call(ident_t*, int, void*, ...); | ||
void __kmpc_atomic_start(void); | ||
void __kmpc_atomic_end(void); | ||
void __kmpc_push_num_threads(ident_t*, int, int); | ||
int __kmpc_global_thread_num(ident_t*); |