search for: statement

Displaying 20 results from an estimated 16313 matches for "statement".

2006 Mar 23
8
ActiveRecord & Prepared Statement
I searched the archives and found a thread about it, but I didn''t understand: are prepared statement used by ActiveRecord on those databases that could handle them (Postgresql, Mysql, Oracle etc)? In case they are not used, are they planned? Is there a roadmap about Rails I can find somewhere?
2008 Oct 02
2
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
Those rules only apply to if and switch statements. (Yes, this is insane, but true.) The entire section you are quoting from, 6.4, is titled "Selection statements [stmt.select]", which specifically covers these two cases. A for is an iteration statement, not a selection statement. So, if you read 6.5.3p1 (which is actually about for...
2019 Feb 14
3
[RFC] Potential extension to asm statement functionality
Hi Paul, Regarding the "No Touchie!" constraint idea for asm statements: would this be a new qualifier (like volatile) that could be applied to the asm statement? Since the constraint is not necessarily associated with an input or output operand, it seems that introducing the constraint via the qualifier field might work. All, The volatile qualifier on an asm statem...
2019 Feb 12
3
[RFC] Potential extension to asm statement functionality
The team I am working with is using asm statements containing label definitions as a way of instrumentation so that when an application is loaded into their debug and test framework, the labels will cause breakpoints to be set at strategic points where they can query the state of the processor that the application is running on. ~ Todd From: Eli...
2019 Feb 12
2
[RFC] Potential extension to asm statement functionality
Suppose a programmer wants to inject their own global label definition into the body of a function with some guarantee that it will not be removed by the compiler. One way to do this is to define a global label with an asm statement knowing that the asm statement will not be invoked until after the compiler's optimization passes have run, but the following case demonstrates that a label defined with an asm statement is still susceptible to being duplicated: #include <stdint.h> uint32_t f(uint32_t x); uint32_t g(uint...
2013 May 06
2
[LLVMdev] convert switch stmts to If statements
I mean an llvm Pass that transforms switch statements into if statements. For example, if I have code with switch statements then running the pass will convert all switches to ifs in the bytecode. George On Mon, May 6, 2013 at 4:20 PM, Hal Finkel <hfinkel at anl.gov> wrote: > ----- Original Message ----- > > From: "George Baah...
2009 May 12
0
[LLVMdev] Integer casting warning, and another set of warnings
...email I *just* send about the INT64_C macros and so forth, the 1 should actually be INT64_C(1) and that should fix it. Also, getting another set of warning, but the file looks fine, so do not know... R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54113) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54121) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54167) : warning...
2009 May 12
0
[LLVMdev] Integer casting warning, and another set of warnings
...email I *just* send about the INT64_C macros and so forth, the 1 should actually be INT64_C(1) and that should fix it. Also, getting another set of warning, but the file looks fine, so do not know... R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54113) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54121) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54167) : warning...
2014 Dec 09
3
[LLVMdev] [cfe-dev][Openmp-dev] Clang Plugin to analyze OpenMP AST
Hi, I am writing a plugin to get information about the OpenMP constructs from the AST. I am basically writing a “RecursiveASTVisitor” and I am trying to find the OpenMP statement and get information like filename and line of code. When I am visiting recursively each statement I have my own switch on the “StmtClass” and for now I am focusing on “OMPParallelForDirectiveClass”. In my understanding, once I find the beginning of the OpenMP statement, its children are all the st...
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
Jay Freeman (saurik) wrote: > Those rules only apply to if and switch statements. (Yes, this is insane, > but true.) The entire section you are quoting from, 6.4, is titled > "Selection statements [stmt.select]", which specifically covers these two > cases. A for is an iteration statement, not a selection statement. > See 6.4p2: "The rules for...
2008 May 10
0
[LLVMdev] How to handle divide-by-zero exception?
DISCLAIMER: I am SSA, LLVM and compiler ignorant, so take the following for what it is worth. What about logically breaking a (complex) SEH method into two logical methods, as per this pseudo-code as an example: ----------------------- foo(parameter-list) { leading-statements; try { try-statements; } catch(Execption0 ex0) { catch-0-statements; } . catch(ExceptionN exN) { catch-n-statements; } finally { final-statemements } tail-statements; } foo$n(parameter-list) { leading-statements. PushTheExceptionHandler(foo$x); try-...
2010 Jun 10
4
gem update fails on make sqlite3
...x86_64-linux -I/usr/local/ include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. - DHAVE_RB_PROC_ARITY -I/usr/local/include -I/opt/local/include -I/usr/ include -fPIC -O2 -g -Wall -Wno-parentheses -O3 -Wall -Wcast-qual - Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -o statement.o -c statement.c statement.c: In function âinitializeâ: statement.c:53: warning: implicit declaration of function âsqlite3_prepare_v2â statement.c:64: warning: passing argument 2 of ârb_str_newâ as signed due to prototype statement.c: In function âbind_paramâ: statement.c:269: error: âsqlite3_int64...
2020 Jun 22
7
Codifying our Brace rules-
Did this conversation reach a conclusion? My ad hoc tally says that a slight majority of the responders preferred to fully brace statements and no one wanted to totally eliminate braces. The technical arguments for fully braced statements were 1) it's considered a slightly safer coding style and 2) commit diffs with fully braced statements may be slightly more to the point. I didn't register any technical arguments for less-...
2005 Oct 14
10
Active Record: Prepared Statements?
Hello all, my first project is on it''s way, and I am loving it! But, and that''s a big BUT: Active Record does not use prepared statements! How is that? Everybody is bragging about performance and the most obvious tuning measure is missing. Ok, I don''t know, if MySQL can even do them as I am using Postgres, but still. I started looking at the code and it is not prepared for prepared statements at all (pun not intended), som...
2013 May 06
2
[LLVMdev] convert switch stmts to If statements
Hi All, Is there a pass in llvm that converts switch statements to if statements? George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130506/f06741c4/attachment.html>
2011 Sep 13
4
Prepared statements and postgreSQL schemas
Hi guys. I''m using a postgreSQL with multiple schemas. To change between schemas I use the ''SET schema TO ...'' statement. That works ok in rails 3.0. Rails 3.1 uses prepared statements and does not take into account the ''schema_search_path''. This is a big problem because the statement is prepared once and then the same prepared statement is executed many times no matter if you changed the schema, i...
2013 May 06
0
[LLVMdev] convert switch stmts to If statements
There is also the LowerSwitch pass that converts switch instructions to a sequence of branches. On May 6, 2013, at 1:24 PM, George Baah <georgebaah at gmail.com> wrote: > I mean an llvm Pass that transforms switch statements into if statements. For example, if I have code with switch statements then running the pass will convert all switches to ifs in the bytecode. > > George > > > On Mon, May 6, 2013 at 4:20 PM, Hal Finkel <hfinkel at anl.gov> wrote: > ----- Original Message ----- > >...
2011 Apr 27
2
[LLVMdev] Can I get the binary address of a for-loop statement?
...ings as hoisting computations outside of the loop, and enclosing loops, scheduling those instructions before others that did not originate from source lines within the loop, etc. That's not to mention things like loop unrolling. Another thing that might work would be to insert inline assembly statements that define symbols before and after the loop. The LLVM optimizations shouldn't move loop code around these inline assembly statements (if the statements are labeled as modifying memory in a volatile manner), but optimizations between the inline assembly statements should remain unfettere...
2010 Mar 23
3
If else statements
Hi everyone! May I request again for your help? I need to make some codes using if else statements... Can I do an "if-else statement" inside an "if-else statement"? Is this the correct form of writing it? Thank you.=) Example: for (v in 1:6) { for (i in 2:200) { if (v==1) (if max(x*v-y*v)>1 break()) if (v==2) (if max(x*v-y*v)>1.8 break()) if (v==3) (if max(x*v-y*v...
2013 May 06
0
[LLVMdev] convert switch stmts to If statements
----- Original Message ----- > From: "George Baah" <georgebaah at gmail.com> > To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Sent: Monday, May 6, 2013 3:09:33 PM > Subject: [LLVMdev] convert switch stmts to If statements > > > > > Hi All, Is there a pass in llvm that converts switch statements to if > statements? > What do you mean by convert? SelectionDAGBuilder::visitSwitch in lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp converts the switch statements for code generation either int...