search for: isshift

Displaying 4 results from an estimated 4 matches for "isshift".

Did you mean: _shift
2008 Feb 29
1
Getting Keypressed State in rgl
Dear Rglers, when using a callback in rgl (Windows, if it matters) http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html I would like to get the Asynchronous keyboard status (as least Shift/Control, but preferably other key) to set markers in a plot. getGraphicsEvents seems to be limited to normal graphics windows. Dieter
2012 Jul 31
0
[LLVMdev] rotate
Oh, no. I should have been more clear. The patch was not rejected, just lost in the daily shuffle. I already have my employer's approval to send this upstream, so I will prepare a patch against trunk this morning. > I proposed a similar patch to LLVM (left circular shift) around 10/2011. > > Parts of my patch did make it into trunk about a year after, but others > > did not.
2012 Jul 31
4
[LLVMdev] rotate
On Monday, July 30, 2012 12:16 AM, Cameron McInally wrote: > Hey Andy, > > I proposed a similar patch to LLVM (left circular shift) around 10/2011. > Parts of my patch did make it into trunk about a year after, but others > did not. > > At that time, my solution was to add a binary operator to the IRBuilder, > since LCS fits in nicely with the other shift operators. But,
2012 Jul 31
3
[LLVMdev] rotate
...this shift into the input, this covers the trivial // cast of lshr(shl(x,c1),c2) as well as other more complex cases. if (I.getOpcode() != Instruction::AShr && @@ -527,7 +531,12 @@ BinaryOperator *ShiftOp = dyn_cast<BinaryOperator>(Op0); if (ShiftOp && !ShiftOp->isShift()) ShiftOp = 0; - + + if (ShiftOp && ShiftOp->getOpcode() == Instruction::CShl) { + // Don't combine circular shifts for now. + return 0; + } + if (ShiftOp && isa<ConstantInt>(ShiftOp->getOperand(1))) { // This is a constant shift of a cons...