search for: nonlocal

Displaying 20 results from an estimated 44 matches for "nonlocal".

2008 Jul 28
2
[LLVMdev] Memory Dependence Analysis: getNonLocalDependency()
Hi, I have a question about the memory dependence analysis. I am trying to use it to selectively enumerate a set of pairs of (load, store) instructions for every function by calling getNonLocalDependency() on the MemoryDependenceAnalysis. This populates a DenseMap<BasicBlock*, Value*>. I just looked up an usage of this in GVN.cpp: MD->getNonLocalDependency(C, deps); for (DenseMap<BasicBlock*, Value*>::iterator I = deps.begin(), E = deps.end(); I != E; ++I) {...
2018 Jan 26
1
MemDep: Invalidating NonLocal result cache entries?
...cifically is to mark MLSM as not preserving MemDep. But a pass that both relies on MemDep and does sinking like MLSM would be prone to hitting the same bug again, without any means to avoid it. So I wonder what's the best approach here. 1) Mark MLSM as not preserving MemDep. 2) Don't cache NonLocal results. 3) Add a map to track which basic blocks have NonLocal results cached and invalidate them when certain instructions are added to a basic block. Cheers, Björn
2008 Jul 28
0
[LLVMdev] Memory Dependence Analysis: getNonLocalDependency()
On Jul 28, 2008, at 3:47 PM, Prakash Prabhu wrote: > Hi, > > I have a question about the memory dependence analysis. I am trying > to use it to selectively enumerate a set of pairs of (load, store) > instructions for every function by calling getNonLocalDependency() > on the MemoryDependenceAnalysis. This populates a > DenseMap<BasicBlock*, Value*>. I just looked up an usage of this in > GVN.cpp: > > MD->getNonLocalDependency(C, deps); > > for (DenseMap<BasicBlock*, Value*>::iterator I = deps.begin(), >...
2008 May 04
0
[LLVMdev] nonlocal go to -- how?
On Sun, 04 May 2008 16:05:44 +0000, Hendrik Boom wrote: > The languages I'm faced with compiling in the near future have nonlocal > go to statements and nested procedures. > > A procedure gets implemented as a structure containing its entry point > and an environment pointer. It is easy enough to call its entry point > and pass the environment pointer as an extra argument (rather like the > pointer to this...
2008 May 05
0
[LLVMdev] nonlocal go to -- how?
On May 4, 2008, at 9:05 AM, Hendrik Boom wrote: > The languages I'm faced with compiling in the near future have > nonlocal goto statements and nested procedures. You want to return to a previous activation record (pascal speak) or stack frame? If yes, then yes, EH will do that for you. You'll want to understand what EH is in detail and how to map the semantics you want onto it. That mapping could be simpl...
2008 May 04
7
[LLVMdev] nonlocal go to -- how?
The languages I'm faced with compiling in the near future have nonlocal go to statements and nested procedures. A procedure gets implemented as a structure containing its entry point and an environment pointer. It is easy enough to call its entry point and pass the environment pointer as an extra argument (rather like the pointer to this or self in object-oriente...
2008 May 05
1
[LLVMdev] nonlocal go to -- how?
...in case their callee might throw an exception straight through them to a faraway outer function? > >> The closest I see is the mechanism for exceptions. I cannot tell by >> reading the documentation for exception-handling whether it is >> sufficiently flexible to accomodate nonlocal goto's. It's plain that >> on modern systems (which dribble saved registers all over the sack) >> some kind of unwinding is necessary, and that the traditional model of >> loading a register and jumping is no longer sufficient. What's not >> clear is whether th...
2008 May 05
0
[LLVMdev] nonlocal go to -- how?
...atic depth is for a lexically less nested function, and you again execute ret { undef, F_static_depth, L_number } > The closest I see is the mechanism for exceptions. I cannot tell by > reading the documentation for exception-handling whether it is > sufficiently flexible to accomodate nonlocal goto's. It's plain that on > modern systems (which dribble saved registers all over the sack) some > kind of unwinding is necessary, and that the traditional model of loading > a register and jumping is no longer sufficient. What's not clear is > whether the exception...
2008 Jul 29
1
[LLVMdev] Memory Dependence Analysis: getNonLocalDependency()
...gt; > On Jul 28, 2008, at 3:47 PM, Prakash Prabhu wrote: > > > Hi, > > > > I have a question about the memory dependence analysis. I am trying > > to use it to selectively enumerate a set of pairs of (load, store) > > instructions for every function by calling getNonLocalDependency() > > on the MemoryDependenceAnalysis. This populates a > > DenseMap<BasicBlock*, Value*>. I just looked up an usage of this in > > GVN.cpp: > > > > MD->getNonLocalDependency(C, deps); > > > > for (DenseMap<BasicBlock*, Value*>::ite...
2013 Jul 22
2
[LLVMdev] Does nounwind have semantics?
...e in the caller > function, but only at a well-defined point (the landing pad). Good explanation. Your definition of nounwind is completely logical. I would prefer not to rely on it though because - Realistically, the semantics won’t be well tested. - It doesn’t seem terribly important to treat nonlocal gotos as readonly (though maybe it is to you :) - When it is important to optimize memory access around nonlocal gotos, I prefer to expose control flow to the optimizer explicitly. e.g. why not just use invokes for all your may-throw calls, then you’re free to mark them readonly? -Andy >> -...
2013 Jul 22
0
[LLVMdev] Does nounwind have semantics?
...ntics is if they created trouble for a large number of users, e.g. clang, for example by making it hard to do important optimizations. Do they? Are these semantics actively harmful? If not I'd prefer to keep them since they are fairly clean. > - It doesn’t seem terribly important to treat nonlocal gotos as readonly (though > maybe it is to you :) It's not a problem for me, I just like to keep orthogonal things orthogonal. Maybe that's a mistake and we should rename readonly to "nothing funky happens". > - When it is important to optimize memory access around nonloca...
2023 Jun 13
1
log transform a data frame
Thank you so much David, here is correction: d1=suppressWarnings(read.csv("/Users/anamaria/Downloads/B1.csv", stringsAsFactors=FALSE, header=TRUE)) d1$X <- NULL d2=as.matrix(sapply(d1, as.numeric)) pdf("~/graph.pdf") b<-barplot(d2, legend= c("SYCL", "CUDA"), beside= TRUE,las=2,cex.axis=0.7,cex.names=0.7,ylim=c(0,80), col=c("#9e9ac8",
2007 Apr 18
1
[Bridge] mac table updates
...code that leads me to believe this is to prevent counting spoofed packets and a DOS. My problem is that the update occurs after the netfilter hooks which may = do weird things to change the course of the packet so that it does not = get counted. (in my case, redirecting, queueing to userspace, nonlocally bound = sockets, etc). For me this causes packets to go spewing out on the wrong interface when = the timer expires. I used the attached patch to revert back to the old method. -Dirk -------------- next part -------------- A non-text attachment was scrubbed... Name: bridge-mac-ageing-fix.patc...
2007 May 07
1
iFolder server on Centos 5
Hi, Does anyone have iFolder server going on Centos 5? I'd like to secure and try it from another nonlocal machine, and was wondering any problems? Thanks. Dave.
2006 Apr 27
0
Is there ping2?
...script that regularly pings their upper providers for see if some of providers are down. If one is down I want to guide all communications via other interface. If second one is down - ip route del default ip route add default via x.x.x.x It works OK but at that moment I can''t ping any nonlocal address thru eth1 so I can''t check when provider come up. ping z.z.z.z -I eth1 - gives nothing Tcpdump shows that eth1 broadcast arp request for nonlocal address ?!? Tables for both interfaces are setup correctly and it seems that ping checks only main table. At same time when haven...
2010 Sep 27
1
[LLVMdev] Proposal: Splitting up MC/ELF + AsmPrinter Hierarchy?
...onal branching.... As JimG and I are working both on ARM emission stuff, I want to minimize chances of us stomping on each other - which probably means a refactoring the AsmPrinter hierarchy to contain a common ABC. This approach seems like the right one to take, but it itself is a "big" nonlocal change, so I wanted to gather opinions before I send in a patch along those lines... Steps would be: 1. New ABC MCTargetPrinter (similar to the current AsmPrinter.cpp class) 2. New derived ABC ARMMCTargetjPrinter 3. New derived class ARMMCAsmPrinter (this is where JimG's new ARM MC .s print...
2023 Jun 13
1
log transform a data frame
Hello, I have a data frame like this: d11=suppressWarnings(read.csv("/Users/anamaria/Downloads/B1.csv", stringsAsFactors=FALSE, header=TRUE)) > d11 X Domain.decomp. DD.com..load Neighbor.search Launch.PP.GPU.ops. Comm..coord. 1 SYCL 2. 1 0 3.7 0. 1 1 .6 2 CUDA 2 0 3. 1 0 1 .0
2011 Dec 13
1
[LLVMdev] Memory Dependence Analysis
...mplifycfg -loop-simplify -loop-rotate -simplifycfg --preston --debug-pass=Structure < test.bc > /dev/null in an effort to simplify things a bit. This gives me pretty straightforward code with 3 basic blocks. When I look at the loads using MDA->getDependency(), we find that they are both NonLocal, which makes sense. Chasing further, with MDA->getNonLocalPointerDependency(), I get a vector of basic blocks (the 1st and 2nd, as expected), along with indications that the query isUnknown. That surprised me; I had expected that it would suggest isClobber for both loads and both blocks. Am I d...
2020 Aug 10
5
[PATCH nbdkit] python: Implement can_extents + extents.
...s defined in the + # nbdkit module, so redefine them here. + EXTENT_HOLE = 1 + EXTENT_ZERO = 2 + + def test_extents_1 (self): + """Test extents.""" + + offset = None + entries = [] + + def f(meta_context, o, e, err): + nonlocal offset, entries + if meta_context != "base:allocation": return + offset = o + entries = e + + self.h.add_meta_context ("base:allocation") + self.connect ({"size": 512, + "can_extents": True,...
2009 Sep 02
0
[LLVMdev] [PATCH] PR2218
...etter if it returned an int, which was -1 if not found. + MemoryDependenceAnalysis& MD = getAnalysis<MemoryDependenceAnalysis>(); You can sink this link to right before the call to MD.getDependency. + // Require pointer to have local dependency. + if (!dep.getInst() || dep.isNonLocal()) + return false; Random thought: after this patch goes in, it would be interesting to see how many queries get rejected because they are non-local: handling non-local would be pretty easy. Please add a TODO that mentions this. In any case, the check for dep.isNonLocal() can be removed....