search for: bloc

Displaying 20 results from an estimated 86 matches for "bloc".

Did you mean: block
2010 Dec 01
2
Lattice dotplots
Dear, I have a dataset with 4 subjects (see ID in example), and 4 treatment (see TRT in example) which are tested on 2 locations and in 3 blocs. By using Lattice dotplot, I made a graph that shows the raw data per location and per bloc. In that graph, I would like to have a reference line per bloc that refers to the first treatment (T1). However, I can not find how to do that. I can make a dotplot with a reference line which is the...
2011 Apr 25
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
hi all, i would like insert a fucntion call at the end of each basic bloc the fucntion i have defined and declared at the begining of the module ie i have written a pass derived from a module pass virtual bool runOnModule(Module & M){ // i declared the fucntion and defined it for (Module::iterator a = M.begin(), b = M.end(); a != b; for (Function::iterator...
2011 Apr 25
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
2011/4/25 Duncan Sands <baldrick at free.fr> > Hi Nabila, > > > i would like insert a fucntion call at the end of each basic bloc > > you can't, because only terminators are allowed at the end of a basic > block. > However you can try to insert the call before the terminator. > Yes, i mean before the termininator, My problem is how to call a method suppose this fucntion void A(int x) { x=x+1; } should i...
2011 Apr 25
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > i would like insert a fucntion call at the end of each basic bloc you can't, because only terminators are allowed at the end of a basic block. However you can try to insert the call before the terminator. ... > i tried to see an example with the demo, i saw that it instead of calling the > function, it repeats all the instruction that are existing in...
2011 Apr 25
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > My problem is how to call a method > suppose this fucntion > void A(int x) > { > x=x+1; > > } > > should i define this function and declare it at the beginig of the module and > create for it a basic bloc? you can just declare the function (i.e. no need to give it a body), and call it. You can then link with an object file that defines it. This is simpler than injecting the function into each module (though that is easy to do too). > and then how to call it before each basic bloc terminitor U...
2011 Apr 19
2
[LLVMdev] llvm-gcc
...wrong bc file >> as output, because when i try to execute it with lli it says to me >> invalid signature. > There is no llvm-gcc 4.5. Report this bug to Ubuntu, because it seems > they hacked the stuff somehow. > >> i would like to add the value of the size od a basic bloc to this >> global variable >> how to convert the size of a basic bloc to integer? > Size = number of LLVM IR instructions there? If yes, just grab the > number, convert it to ConstantIn and use as an initializer / store to > variable. > There's a typo in the above sente...
2011 May 20
3
[LLVMdev] convert a char * to a value
Hi all, Please i need help, I have a method that takes 2 arguments with type char *: void branchPredict(char *b1, char *b2){ --- -- } i'm supposed to add this method, in an IR basic bloc: to add it into a basic bloc i do: //i: is the basic bloc std::vector<Value*> void_43_params; Constant* tbname = ConstantArray::get(M.getContext(),i->getNameStr() , true); Constant* pbname = ConstantArray::get(M.getContext(), i->getPrevNode()->getNameStr(), true); void_43_params.pu...
2010 Oct 01
1
I18n.with_options bloc executed TWICE
....org/active_support_core_extensions.html#with_options) I tried with <%= I18n.with_options :locale => :en, :scope => ''portal.visitor_menu'' do |i18n|%> Try <%= i18n.t :fav_songs %> <% end %> But it produce Try favorite song Try favorite song I mean, the bloc is executed TWICE. The same code exercised under the rails console is executed only ONCE. Anybody have an idea of this strange phenomenom ? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&qu...
2011 Apr 19
4
[LLVMdev] llvm-gcc
...it with lli it says to me invalid signature. 2 - for (Module::iterator a=M.begin(),b=M.end();a!=b;++a) { for (Function::iterator i = a->begin(), e = a->end(); i != e; ++i){ new StoreInst(const_int32_12, gvar_int32_x, false, label_entry); // normally label entry would be the end of the basic bloc i } } what would be the value of label entry to make the instruction inserted at the end of the basic bloc when i have tried this: Instruction* label_entry = i->begin(); new StoreInst(const_int32_12, gvar_int32_x, false, label_entry); it works but the instruction is inserted at the begining of t...
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
...i Nabila, > > > My problem is how to call a method >> suppose this fucntion >> void A(int x) >> { >> x=x+1; >> >> } >> >> should i define this function and declare it at the beginig of the module >> and >> create for it a basic bloc? >> > > you can just declare the function (i.e. no need to give it a body), and > call it. > You can then link with an object file that defines it. This is simpler > than > injecting the function into each module (though that is easy to do too). > > > and then how...
2011 Apr 22
0
[LLVMdev] llvm-gcc
>>  i would like to add the value of  the size od a basic bloc to this >>> global variable >>> how to convert the size of a basic bloc to integer? >> >> Size = number of LLVM IR instructions there? If yes, just grab the >> number, convert it to ConstantIn and use as an initializer / store to >> variable. >> >...
2001 Nov 26
1
EXT3 crash: ext3_free_blocks: bit already cleared
...ad,rpc_blk) The filesystem is RAID0 using LVM (1.0.1-rc4). The disks are connected using fiber channel (qlogic 2200, qlax00-4.27beta). I was generating high load on my nfs server that is using ext3 filesystems. I started to get the following error: EXT3-fs error (device lvm(58,6)): ext3_free_blocks: bit already cleared for bloc k 290754 EXT3-fs error (device lvm(58,6)): ext3_free_blocks: bit already cleared for bloc k 289980 EXT3-fs error (device lvm(58,6)): ext3_free_blocks: bit already cleared for bloc k 289981 (Many more errors than this) And then I lost that NFS filesystem. The load...
2004 Sep 22
1
layout for xyplot
Dear all, I tried to use layout argument in xyplot to get one panel per page. I have a dataframe named 'data' with the following variables: x, y = coords, sub, bloc = 2-level factors, etat = 5-level factor, I did : > lset(theme = col.whitebg()) > xyplot(y ~ x | bloc*sub , data=data, groups=etat, + layout=c(0,1,4), + main="Etat des plantes dans chaque bloc", + auto.key=list(columns=5, cex=.8), + scales=list(relatio...
2011 May 20
0
[LLVMdev] convert a char * to a value
On 5/20/11 5:46 PM, Nabila ABDESSAIED wrote: > Hi all, > > Please i need help, I have a method that takes 2 arguments with type > char *: > void branchPredict(char *b1, char *b2){ > --- > -- > } > i'm supposed to add this method, in an IR basic bloc: > to add it into a basic bloc i do: The problem is that you are passing arrays to the function instead of passing pointers to arrays. Instead of making tbname and pbname arguments to the function, you need to create GlobalVariable's that have, as their initializer, the Constant's t...
2007 Aug 04
2
multiple nls - next fit even after convergence problem
...)) rmse.log<-sqrt(mean(residuals(fit.log)^2)) rmse.exp<-sqrt(mean(residuals(fit.exp)^2)) rmse.gomp<-sqrt(mean(residuals(fit.gomp)^2)) data.frame(rmse.log=rmse.log,rmse.gomp=rmse.gomp,rmse.exp=rmse.exp,semis=unique(tab$semis),densite=unique(tab$densite),traitement=unique(tab$traitement),bloc=unique(tab$bloc),num.feuille.def=unique(tab$num.feuille.def)) } I've thought of just storing the 3 model results in a list, and then going through each model object, but even then, when I have a convergence problem, the function breaks off. What I'd like is to find a way for the function...
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > Now when i tried this pass an error says: > Wrong type for attribute noalias > tail call void @consume(i32 noalias 3, i32* @y) nounwind noalias is only for arguments of pointer type. You probably meant it to be on the second argument rather than the first. I suggest you correct your code that adds the attribute. Ciao, Duncan.
2008 Feb 14
0
how to write a bloc in helper to check/uncheck box ?
Hi all I have a check box in form, and I would like to enable/disable it according to the value of the check box.. <% form_for(:query, @query,.... <%= f.check_box(:all_categories, :disabled => true, :onchange =>''javascript:all_categories();'') -%><%=l :All_categories %> I would like to have something like :disabled => { @query.all_categories.to_i
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
...; > noalias is only for arguments of pointer type. You probably meant it to > be on the second argument rather than the first. I suggest you correct > your code that adds the attribute. > > Ciao, Duncan. > > > no my fucntion is > void consume(int nb_into_bloc, int *nb_total) > the second is a pointer > here is how I pass the parameters > Instruction* ii = i->getTerminator(); > const int n = cast <int> (i->size()); > ConstantInt* inValue = ConstantInt::get(Type::getInt32Ty(Context), n); > std::vector<Value*> in...
2012 Aug 07
4
Execution of a function
Hi >i have aproblem withe execution of my function >first, i wrote my function in the script of R >nom_fonction <- function(arg1[=expr1], arg2[=expr2], ...){ bloc d'instructions } > when i want to have the result i mean the laste instruction in the bloc of > instruction , i try to >wrote the name of function >source(aj.fun) Error in readLines(file, warn = FALSE) : 'con' is not a connection >return(aj.fun) Error: no function to...
2012 Jan 12
2
is there an equivalent for #ifdef (C langage) in R
...cro(DEBUG, expr=(DEBUG==1)) if(useDebug(0)){ #Here I do not use debug mode make_addition = function(a, b) { c=a+b plot(c) return(c) } }else{ #here I use debug mode c=a+b } I assume this would work... The problem is : if I have 15 lines of code in if{ } bloc I have to copy and paste these15 lines into else{} bloc. These is too many lines in my file... Is there something like (in C langage): #define DEBUG 1 #ifndef DEBUG make_addition = function(a, b) { #endif #ifdef DEBUG a = 1 b = 2 #endif c=a+b plot(c) #ifndef DEBUG return(...