On Oct 9, 2007, at 12:49 PM, Devang Patel wrote:

> +  Value *CreateShl(Value *LHS, Value *RHS, const char *Name = "") {
> +     if (Constant *LC = dyn_cast<Constant>(LHS))
> +      if (Constant *RC = dyn_cast<Constant>(RHS))
> +        return ConstantExpr::getShl(LC, RC);
> +    return LLVMBuilder::CreateShl(LHS, RHS, Name);
> +  }

Several of these have slightly funky indentation, otherwise looks  
very nice!

-Chris
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to