Displaying 1 result from an estimated 1 matches for "start_callback".
Did you mean:
sort_callback
2013 Apr 20
1
[LLVMdev] Adding custom pragma's for generating particular LLVM IR
...39;t find information on this topic.
I would like to add custom pragma's that generate particular LLVM IR.
Here is an example:
int a, b;
/* ... */
#pragma mypragma shared(a, b)
{
a = b;
b++;
}
would result in this (pseudo) LLVM IR:
%1 alloca i32
%2 alloca i32
...
call void @start_callback ()
%3 call i32 @check_callback ( i32 %1 )
%4 call i32 @check_callback ( i32 %2 )
...
call void @end_callback ()
...
Note: All *_callback functions are implemented in a third party library.
I guess that is it quite close to what was implemented for the OpenMP
support, but I need something simple...