Displaying 3 results from an estimated 3 matches for "capturedstmt".
2014 Dec 31
5
[LLVMdev] outlining in llvm
Hi,
I have some questions regarding outlining (extracting piece of code into a
function):
1. Is there an outlining pass in llvm (IR)? I've found out
CodeExtractor pass, but I'm not sure it's exactly the same idea.
2. How do I set the function name?
And another question:
Where do I control the execution of my pass? I'm writing a pass that first
works on
2014 Dec 09
3
[LLVMdev] [cfe-dev][Openmp-dev] Clang Plugin to analyze OpenMP AST
Hi,
I am writing a plugin to get information about the OpenMP constructs from the AST.
I am basically writing a “RecursiveASTVisitor” and I am trying to find the OpenMP statement and get information like filename and line of code.
When I am visiting recursively each statement I have my own switch on the “StmtClass” and for now I am focusing on “OMPParallelForDirectiveClass”.
In my understanding,
2013 May 27
0
[LLVMdev] RFC: Converting byref captures into bycopy
...el for with lambdas.
I have been prototyping an LLVM IR pass that can move loads out of a captured statement body when possible. The approach:
Use named metadata to find the captured statement helpers (or lambda functions), as well as the "kind" of captured region they represent.
e.g.
!capturedstmt.helper = !{!0, !1}
!0 = metadata !{<function1>, metadata !"cilk_for"}
!1 = metadata !{<function2>, metadata !"default"}
For each field in the implicit capture-struct parameter, determine whether it can be "promoted" to a by-copy capture. This involves
1)...