search for: flattening

Displaying 20 results from an estimated 686 matches for "flattening".

2019 Nov 04
3
Fix clang's 'flatten' function attribute: add depth to always_inline?
Hi everyone, clang currently implements the 'flatten' function attribute by marking all calls to not 'noinline' functions with 'always_inline'. In effect, only the first level of calls is inlined, not all calls recursively (like gcc does). We briefly discussed possible solutions on IRC: We could add an equivalent LLVM attribute for functions (e.g. 'flatten'). The
2010 Feb 03
3
How to flatten a tree (based on list) to a certain depth?
Suppose that I have the following list of lists of frames 'root' (let's call it a 'tree' of frames). I want to flatten it to be a list of frames. However, if I unlist(root), it will flatten the frames as well. Is there a simply way to flatten the tree to certain depth? aframe1=data.frame(x=1:3,y=1:3) aframe2=data.frame(u=7:9,v=11:13) aframe3=data.frame(p=3:5,q=6:8)
2014 Feb 08
3
[LLVMdev] SCEV implementation and limitations, do we need "pow"?
...gt;> (I mean I expect it would have those terms if I was patient enough to >> wait for opt to finish :) ) >> >> So I suppose SCEV is lacking some protection, for instance degrading >> to "unknow" when an expression is above a given threshold, or stop >> flattening and keeping only a reference to another SCEV as a term of >> the expression. >> Nick and Chandler also mentioned on IRC that SCEV should be extended >> with a "pow" operator to tackle such situation and being able to fold >> multiply-tree. >> >> >...
2017 Oct 22
2
Replace "while" "for" loops with "If-Else"
Hi weiren, Thanks for your suggestion! Yes, I am trying to do this "nested flattening". It seems that I need a post-dominator tree-based algorithm to flatten the nested loops from the innermost to the outermost, level by level. Is there any feature already existed in LLVM tools? Or similar? On Sun, Oct 22, 2017 at 2:31 AM, 陳韋任 <chenwj.cs97g at g2.nctu.edu.tw> wrote:...
2012 Jun 13
2
[LLVMdev] llvm-mc problem after a pass
...e -W -Wshadow -Wno-unused-parameter -DLTC_SOURCE -O0 -DLTC_NO_ASM -DUSE_LTM -DLTM_DESC -o src/pk/asn1/der/sequence/der_encode_sequence_ex.bc src/pk/asn1/der/sequence/der_encode_sequence_ex.c ../../../build/Release+Asserts/bin/opt -reg2mem -load ../../../build/Release+Asserts/lib/LLVMobfuscation.so -flattening src/pk/asn1/der/sequence/der_encode_sequence_ex.bc -o src/pk/asn1/der/sequence/der_encode_sequence_ex.bc -stats ===-------------------------------------------------------------------------=== ... Statistics Collected ... ===-------------------------------------------------...
2011 May 19
0
Flattening lists and environments (was: "how to flatten a list to the same level?")
Dear list, I came up with a two functions that flatten arbitrary deeply nested lists (as long as they're named; not tested for unnamed) and environments (see attachment; 'flatten_examples.txt' contains some examples). The paradigm is somewhat similar to that implemented in 'unlist()', yet extends it. I would have very much liked to build upon the superfast functionality
2009 Jan 10
2
hidden_field_tag flattens my array for value
...3774777778779780781782783786787789793805811813816817829830831835842847848851854855862863864869874877882886896899904908909914919920922933934945950959966967968973976977979981985986989991994996997" /> I want to grab an array of user ids and then do something with them, but hidden_form_tag is flattening my array. I''ve tried various ways of putting an array into h_f_t and it always flattens it. How can I preserve the structure of my array? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed...
2014 Jul 17
2
[LLVMdev] LLVM Code Generation on flattened IR code
Hello, I made two flattening transformation filters, one use a switch instruction for the dispatcher, and the other an indirectbranch instruction. Both work well but llc is very time consuming in the second case : 10 minutes for a 500 basic block function, while it takes 10 seconds for the switchcase implementation . The instr...
2007 Dec 09
4
Help on drying code
Hi all, Currently I''m having to do this: def self.authorized_roles(controller, action) specific = self.find_by_controller_and_action(controller, action) all_actions = self.find_by_controller_and_action(controller, ''*'') all_controllers = self.find_by_controller(''*'') role_ids = [] specific.each do |role_item| role_ids <<
2010 Feb 11
1
Flattening Graphics
Hello, This question is a nightmare to search for, as I get so many irrelevant results. What I'm interested in doing if I have many pages of plots and I want to keep them together in the same document, say a PDF, is there a way to flatten all the dot plots and graphics, so that they don't take a long time to load on a slow computer in Adobe Reader, without using external programs outside
2012 Jun 26
2
flatten lists
I am looking for a function to flatten a list to a list of only 1 level deep. Very similar to unlist, however I don't want to turn it into a vector because then everything will be casted to character vectors: x <- list(name="Jeroen", age=27, married=FALSE, home=list(country="Netherlands", city="Utrecht")) unlist(x) This function sort of does it: flatlist
2012 Jun 13
0
[LLVMdev] llvm-mc problem after a pass
...-Wshadow -Wno-unused-parameter -DLTC_SOURCE -O0 -DLTC_NO_ASM -DUSE_LTM -DLTM_DESC -o src/pk/asn1/der/sequence/der_encode_sequence_ex.bc src/pk/asn1/der/sequence/der_encode_sequence_ex.c > ../../../build/Release+Asserts/bin/opt -reg2mem -load ../../../build/Release+Asserts/lib/LLVMobfuscation.so -flattening src/pk/asn1/der/sequence/der_encode_sequence_ex.bc -o src/pk/asn1/der/sequence/der_encode_sequence_ex.bc -stats > ===-------------------------------------------------------------------------=== > ... Statistics Collected ... > ===-----------------------------------...
2006 Jun 07
2
Hash flattening on paginator link_to
Hey I need some help with pagination and the link_to in the view. I''m trying to include a hash in the pagination link_to params and it keeps flattening out my hash. Example: Here''s my hash called @answer: "answer"=>{"6"=>"9bf31c7ff062936a96d3c8bd1f8f2ff3", "7"=>"6f4922f45568161a8cdf4ad2299f6d23"} Here''s the code in my view for my pagination link: <%=...
2005 Mar 09
1
Flattening a list of data frames
Hello all, Simple version of my problem: I've got a list of data frames, where each data frame has the same number of columns and the same column names. I'd like to flatten the list into one large data frame. Is there an easy way to do this? Quick example code: a <- data.frame(x=c(1,2,3),y=c(5,7,9) b <- data.frame(x=c(2,4,7,9),y=c(2,3,5,4)) z <- list(a,b) # Do
2014 Feb 05
2
[LLVMdev] SCEV implementation and limitations, do we need "pow"?
...st multiply has 2^32 terms in its SCEV expression. (I mean I expect it would have those terms if I was patient enough to wait for opt to finish :) ) So I suppose SCEV is lacking some protection, for instance degrading to "unknow" when an expression is above a given threshold, or stop flattening and keeping only a reference to another SCEV as a term of the expression. Nick and Chandler also mentioned on IRC that SCEV should be extended with a "pow" operator to tackle such situation and being able to fold multiply-tree. While looking at SCEV, another thing is puzzling in the...
2014 Jul 21
2
[LLVMdev] LLVM Code Generation on flattened IR code
...De: "Andrew Trick" <atrick at apple.com> À: charlessl at free.fr Cc: llvmdev at cs.uiuc.edu Envoyé: Vendredi 18 Juillet 2014 09:18:41 Objet: Re: [LLVMdev] LLVM Code Generation on flattened IR code On Jul 17, 2014, at 11:41 AM, charlessl at free.fr wrote: Hello, I made two flattening transformation filters, one use a switch instruction for the dispatcher, and the other an indirectbranch instruction. Both work well but llc is very time consuming in the second case : 10 minutes for a 500 basic block function, while it takes 10 seconds for the switchcase implementation . The instr...
2014 Jul 03
0
Re: virsh blockcopy: doesn't seem to flatten the chain by default
...#39;base': > > foo, bar, baz, jazz > > > True or false? False. This is NOT a union mount. Sometime in between base and snap1, you deleted foo. That is recorded in snap1, and when reading a chain, you stop at the first level of the chain that provides information. When flattening, it means you are inherently losing any information about the state that existed before snap1 changed the state, at least when using the flattened chain to try and find that information. Graphically (well, using ASCII), let's look at it like this. When you start your guest originally, you hav...
2012 Apr 27
2
[LLVMdev] RE : RE : Detect if a basicblock is part of a loop
...eds = %10 %14 = load i32* %k, align 4 %15 = add nsw i32 %14, 1 store i32 %15, i32* %k, align 4 br label %7 > is LLVMobfuscationTest.so your own pass? What does it do? Yes it's my own lib... It contains some obfuscation's passes. The one I'm trying to make now is making code flattening! Cheers ps: I tried Cristianno Martins solution, but it didn't work too :( ________________________________________ De : 陳韋任 [chenwj at iis.sinica.edu.tw] Date d'envoi : vendredi 27 avril 2012 14:45 À : Rinaldini Julien Cc: llvmdev at cs.uiuc.edu Objet : Re: [LLVMdev] RE : Detect if a b...
2009 Oct 21
0
Flattened Device Tree Project Announcement
Dear FreeBSD Community, The FreeBSD Foundation is pleased to announce another funded project! Rafal Jaworowski and Semihalf has been awarded a grant to provide FreeBSD with support for the flattened device tree (FDT) technology. This project allows for describing hardware resources of a computer system and their dependencies in a platform-neutral and portable way. The main consumers of this
2001 Dec 28
0
flattening return value of tapply
Dear R-Users, Does anyone know how to flatten, i.e. convert to a table, a return value of tapply when its INDEX argument is a list? Here is an example of what I need > x <- rnorm(100) > f1 <- rep(c(T,F),50) > f2 <- c(rep(T,50), rep(F,50)) > y <- tapply(x, list(f1=f1,f2=f2), summary) > y f2 f1 FALSE TRUE FALSE "Numeric,6"