search for: scope1

Displaying 9 results from an estimated 9 matches for "scope1".

Did you mean: scope
2013 Nov 04
3
[LLVMdev] [RFC] Scoped no-alias metadata (redux)
...e may represent the entire function, or some other statement block within the function (or a block within a block, etc.) created by the frontend. As in my previous proposal, and similar to how TBAA is implemented, we define some scopes: !scope0 = metadata !{ metadata !"scope of foo()" } !scope1 = metadata !{ metadata !"scope 1", metadata !scope0 } !scope2 = metadata !{ metadata !"scope 2", metadata !scope0 } !scope3 = metadata !{ metadata !"scope 2.1", metadata !scope2 } !scope4 = metadata !{ metadata !"scope 2.2", metadata !scope2 } The language r...
2014 Nov 14
2
[LLVMdev] Upcoming Changes/Additions to Scoped-NoAlias metadata
...objects? >From a different scope? No. Here's why: int i = ...; T a, b; T * y1 = ..., y2 = ... { T * restrict x = y1; a = x[i]; } { T * restrict x = y2; b = x[i]; } which becomes: int i = ...; T a, b; T * y1 = ..., y2 = ... T * x1 = @llvm.noalias(y1, !scope1); a = x1[i]; // alias.scope !scope1 T * x2 = @llvm.noalias(y2, !scope2); b = x2[i]; // alias.scope !scope2 but can we assume that 'x1[i]' does not alias with 'x2[i]'? No. Now one possible design here is to solve this problem by mutual dominance, but to do that, we'd need...
2013 Nov 14
0
[LLVMdev] [RFC] Scoped no-alias metadata (redux)
..., or > some other statement block within the function (or a block within a > block, etc.) created by the frontend. > > As in my previous proposal, and similar to how TBAA is implemented, > we define some scopes: > !scope0 = metadata !{ metadata !"scope of foo()" } > !scope1 = metadata !{ metadata !"scope 1", metadata !scope0 } > !scope2 = metadata !{ metadata !"scope 2", metadata !scope0 } > !scope3 = metadata !{ metadata !"scope 2.1", metadata !scope2 } > !scope4 = metadata !{ metadata !"scope 2.2", metadata !scope2 }...
2011 Oct 12
2
[LLVMdev] Local variable information in scope
...line numbers.   I also want to collect information of variables within the scope.   For the below example:   int global; int func( int t) {    //scope 1   {      int a;      ....   }   return x; }   For "scope 1", I should be able to collect that "a" is a local variable in scope1 and should also be able to identify whether "a" is static or non-static.   Regards, Pankaj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111012/6c217766/attachment.html>
2011 Oct 13
1
[LLVMdev] Local variable information in scope
...in scope".   1. When I traverse the MachineInstructions in the LexicalScopes ranges, and check for variables, I get variables used in this scope.      The variables listed include variables which may not have been declared in the scope. (for example "int t", which is not declared in scope1, is listed.)    I do this by checking if the instruction uses memoperands then I collect name of value.   So, for the example below int func( int t) {    int x;   //scope 1   {      int a;      ....   }   return x; }   what I am expecting is as below: <scope name>: <list of variables d...
2011 Oct 12
0
[LLVMdev] Local variable information in scope
...n the scope. > > For the below example: > > int global; > int func( int t) > { > //scope 1 > { > int a; > .... > } > return x; > } > > For "scope 1", I should be able to collect that "a" is a local variable in scope1 and should also be able to identify whether "a" is static or non-static. > > Regards, > Pankaj > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailma...
2014 Nov 14
2
[LLVMdev] Upcoming Changes/Additions to Scoped-NoAlias metadata
----- Original Message ----- > From: "Chandler Carruth" <chandlerc at google.com> > To: "Hal Finkel" <hfinkel at anl.gov> > Cc: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Sent: Thursday, November 13, 2014 7:02:58 PM > Subject: Re: [LLVMdev] Upcoming Changes/Additions to Scoped-NoAlias metadata > > > >
2014 Nov 14
2
[LLVMdev] Upcoming Changes/Additions to Scoped-NoAlias metadata
...that > > be treated similarly to S+Ls derived from other identified objects? > > From a different scope? No. Here's why: > > int i = ...; > T a, b; > > which becomes: > > int i = ...; > T a, b; > T * y1 = ..., y2 = ... > T * x1 = @llvm.noalias(y1, !scope1); > a = x1[i]; // alias.scope !scope1 > T * x2 = @llvm.noalias(y2, !scope2); > b = x2[i]; // alias.scope !scope2 > > but can we assume that 'x1[i]' does not alias with 'x2[i]'? No. > > Now one possible design here is to solve this problem by mutual > domina...
2014 Nov 14
6
[LLVMdev] Upcoming Changes/Additions to Scoped-NoAlias metadata
Hi everyone, As many of you might know, LLVM now has scoped noalias metadata (http://llvm.org/docs/LangRef.html#noalias-and-alias-scope-metadata) -- it allows us to preserve noalias function argument attributes when inlining, in addition to allowing frontends to add otherwise non-deducible aliasing properties to memory accesses. This currently works well, but needs a change and an intrinsic, as