[llvm-commits] [llvm] r42806 - /llvm/trunk/include/llvm/Support/LLVMBuilder.h
Chris Lattner
clattner at apple.com
Tue Oct 9 14:34:23 PDT 2007
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
More information about the llvm-commits
mailing list