search for: cflaliasanalysis

Displaying 17 results from an estimated 17 matches for "cflaliasanalysis".

2015 Jan 26
0
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
Inline George > On Jan 26, 2015, at 1:05 PM, Daniel Berlin <dberlin at dberlin.org> wrote: > > George, given that, can you just build constexpr handling (it's not as easy as you think) as a separate funciton and have it use it in the right places? Will do. :) > FWIW, my current list of CFLAA issues is: > > 1. Unknown values (results from ptrtoint, incoming
2015 Jan 26
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
George, given that, can you just build constexpr handling (it's not as easy as you think) as a separate funciton and have it use it in the right places? FWIW, my current list of CFLAA issues is: 1. Unknown values (results from ptrtoint, incoming pointers, etc) are not treated as unknown. These should be done through graph edge (so that they can be one way, otherwise, you will unify
2015 Jan 30
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...to instructions are fair >> game. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150130/e0d4dfe0/attachment.html> -------------- next part -------------- diff --git a/lib/Analysis/CFLAliasAnalysis.cpp b/lib/Analysis/CFLAliasAnalysis.cpp index 9783671..cbb8599 100644 --- a/lib/Analysis/CFLAliasAnalysis.cpp +++ b/lib/Analysis/CFLAliasAnalysis.cpp @@ -28,6 +28,7 @@ // time. //===----------------------------------------------------------------------===// + #include "StratifiedSets.h&qu...
2015 Jan 15
3
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
On Thu, Jan 15, 2015 at 1:26 PM, Nick Lewycky <nlewycky at google.com> wrote: > On 15 January 2015 at 13:10, Daniel Berlin <dberlin at dberlin.org> wrote: > >> Yes. >> I've attached an updated patch that does the following: >> >> 1. Fixes the partialalias of globals/arguments >> 2. Enables partialalias for cases where nothing has been unified to
2015 Jan 15
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...Ana Pazos <apazos at codeaurora.org> wrote: > Daniel, don’t we need to fix the order of invoking alias analyses in > lib/Transforms/IPO/PassManagerBuilder.cpp as well? > > > > Your patch fixed the order in lib/CodeGen/Passes.cpp and the delegation > code in lib/Analysis/CFLAliasAnalysis.cpp. > > > > Thanks, > > Ana. > > > > *From:* Daniel Berlin [mailto:dberlin at dberlin.org] > *Sent:* Wednesday, January 14, 2015 1:10 PM > *To:* Ana Pazos > *Cc:* George Burgess IV; Nick Lewycky; Jiangning Liu; LLVM Developers > Mailing List > > *Sub...
2015 Jan 14
3
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...; > > It should let you pass along the result you've gotten so far, so that you > don't have CFLAA get PartialAlias, chain, and have BasicAA get MayAlias. > > > > (IE it should let it work strictly down the hierarchy). > > > > Note that this patch breaks the CFLAliasAnalysis tests because it no > longer returns PartialAlias in some cases it is expecting it. > > > > I don't have time ATM to fix chaining completely, so if someone wants to > shepherd this patch through, that would be appreciated. > > > > > > > > > > >...
2015 Jan 26
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...t; > > > > > > > > > > > > > > > > > > We can add a special "Unknown" StratifiedAttr and query it before > > > anything else, i.e: > > > > > > > > > > > > > > > > > > // in CFLAliasAnalysis::query, as the first potential return > > > > > > > > > if (AttrsA[AttrUnknown] || AttrsB[AttrUnknown]) > > > > > > > > > return MayAlias; > > > > > > > > > > > > > > > > > > The only *potent...
2015 Jan 14
3
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...badly designed IMHO. > > It should let you pass along the result you've gotten so far, so that you > don't have CFLAA get PartialAlias, chain, and have BasicAA get MayAlias. > > (IE it should let it work strictly down the hierarchy). > > Note that this patch breaks the CFLAliasAnalysis tests because it no > longer returns PartialAlias in some cases it is expecting it. > > I don't have time ATM to fix chaining completely, so if someone wants to > shepherd this patch through, that would be appreciated. > > > > > > On Tue, Jan 13, 2015 at 8:58 PM, D...
2015 Apr 21
2
[LLVMdev] Using an alias analysis pass
Hello LLVMdev, I’m using LLVM to do static analysis exclusively (without any code generation). To implement this analysis, I’m using multiple address spaces to disambiguate the purpose of the pointed memory. Since address spaces never alias in my model, I set on to implement an alias analysis pass that would exactly provide this information, as I’m seeing a couple of otherwise dead store that
2015 Jan 14
4
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...t; It should let you pass along the result you've gotten so far, so that you don't have CFLAA get PartialAlias, chain, and have BasicAA get MayAlias. >>> >>> (IE it should let it work strictly down the hierarchy). >>> >>> Note that this patch breaks the CFLAliasAnalysis tests because it no longer returns PartialAlias in some cases it is expecting it. >>> >>> I don't have time ATM to fix chaining completely, so if someone wants to shepherd this patch through, that would be appreciated. >>> >>> >>> >>> &...
2015 Jan 14
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...t; and –mllvm use-cfl-aa, right? >> > >> > >> > >> > In Transforms/IPO/PassManagerBuilder.cpp and CodeGen/Passes.cpp we see >> > this sequence: >> > >> > >> > >> > if (UseCFLAA) >> > >> > PM.add(createCFLAliasAnalysisPass()); >> > >> > PM.add(createTypeBasedAliasAnalysisPass()); >> > >> > PM.add(createScopedNoAliasAAPass()); >> > >> > PM.add(createBasicAliasAnalysisPass()); >> > >> > >> > >> > So are you recommending changi...
2015 Jan 24
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...her pointer > > > values? Is there a better way? > > > > > > > > > > > > > > We can add a special "Unknown" StratifiedAttr and query it before > > anything else, i.e: > > > > > > > > > > > > // in CFLAliasAnalysis::query, as the first potential return > > > > > > if (AttrsA[AttrUnknown] || AttrsB[AttrUnknown]) > > > > > > return MayAlias; > > > > > > > > > > > > The only *potential* issue with this approach would be that in the > >...
2015 Jan 23
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
> Should we be added an edge from the inttoptr to all other pointer values? Is there a better way? We can add a special "Unknown" StratifiedAttr and query it before anything else, i.e: // in CFLAliasAnalysis::query, as the first potential return if (AttrsA[AttrUnknown] || AttrsB[AttrUnknown]) return MayAlias; The only *potential* issue with this approach would be that in the following code segment: void fn() { int *foo = (int*)rand(); int *bar = new int; int **baz = rand() ? &foo : &b...
2015 Jan 23
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
....iv at gmail.com> wrote: > >> > Should we be added an edge from the inttoptr to all other pointer >> values? Is there a better way? >> >> We can add a special "Unknown" StratifiedAttr and query it before >> anything else, i.e: >> >> // in CFLAliasAnalysis::query, as the first potential return >> if (AttrsA[AttrUnknown] || AttrsB[AttrUnknown]) >> return MayAlias; >> >> The only *potential* issue with this approach would be that in the >> following code segment: >> >> void fn() { >> int *foo = (int*)...
2015 Jan 23
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
....burgess.iv at gmail.com> wrote: > > > Should we be added an edge from the inttoptr to all other pointer > values? Is there a better way? > > > > We can add a special "Unknown" StratifiedAttr and query it before anything > else, i.e: > > > > // in CFLAliasAnalysis::query, as the first potential return > > if (AttrsA[AttrUnknown] || AttrsB[AttrUnknown]) > > return MayAlias; > > > > The only *potential* issue with this approach would be that in the > following code segment: > > > > void fn() { > > int *foo = (in...
2015 Jan 21
2
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
...asAnalysis before BasicAliasAnalysis so that > > > > // BasicAliasAnalysis wins if they disagree. This is intended to > > > > help > > > > // support "obvious" type-punning idioms. > > > > - if (UseCFLAA) > > > > - addPass( createCFLAliasAnalysisPass()); > > > > addPass( createTypeBasedAliasAnalysisPa ss()); > > > > addPass( createScopedNoAliasAAPass()); > > > > + if (UseCFLAA) > > > > + addPass( createCFLAliasAnalysisPass()); > > > > addPass( createBasicAliasAnalysisPass() ); >...
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...ls.cpp for Release+Asserts build llvm[2]: Compiling CFG.cpp for Release+Asserts build llvm[3]: Compiling DataFlowSanitizer.cpp for Release+Asserts build llvm[2]: Compiling CFGPrinter.cpp for Release+Asserts build llvm[3]: Compiling BypassSlowDivision.cpp for Release+Asserts build llvm[2]: Compiling CFLAliasAnalysis.cpp for Release+Asserts build llvm[3]: Compiling CloneFunction.cpp for Release+Asserts build llvm[3]: Compiling GCOVProfiling.cpp for Release+Asserts build llvm[2]: Compiling CGSCCPassManager.cpp for Release+Asserts build llvm[3]: Compiling CloneModule.cpp for Release+Asserts build llvm[3]: Compili...