Lines Matching refs:Value
79 SmallVector<Value *, 8> Args(ArgBegin, ArgEnd);
166 static Value *LowerBSWAP(LLVMContext &Context, Value *V, Instruction *IP) {
174 default: llvm_unreachable("Unhandled type size of value to byteswap!");
176 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
178 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
184 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
186 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
188 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
190 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24),
204 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56),
206 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40),
208 Value *Tmp6 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
210 Value *Tmp5 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
212 Value* Tmp4 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
214 Value* Tmp3 = Builder.CreateLShr(V,
217 Value* Tmp2 = Builder.CreateLShr(V,
220 Value* Tmp1 = Builder.CreateLShr(V,
262 static Value *LowerCTPOP(LLVMContext &Context, Value *V, Instruction *IP) {
275 Value *Count = ConstantInt::get(V->getType(), 0);
278 Value *PartValue = V;
281 Value *MaskCst = ConstantInt::get(V->getType(), MaskValues[ct]);
282 Value *LHS = Builder.CreateAnd(PartValue, MaskCst, "cppop.and1");
283 Value *VShift = Builder.CreateLShr(PartValue,
286 Value *RHS = Builder.CreateAnd(VShift, MaskCst, "cppop.and2");
302 static Value *LowerCTLZ(LLVMContext &Context, Value *V, Instruction *IP) {
308 Value *ShVal = ConstantInt::get(V->getType(), i);
358 Value *V = CI->getArgOperand(0);
368 Value *V = ReplaceCallWith("setjmp", CI, CS.arg_begin(), CS.arg_end(),
405 Value *Src = CI->getArgOperand(0);
406 Value *NotSrc = Builder.CreateNot(Src);
408 Value *SrcM1 = ConstantInt::get(Src->getType(), 1);
465 // Just drop the annotation, but forward the value
475 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr,
477 Value *Ops[3];
486 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr,
488 Value *Ops[3];
496 Value *Op0 = CI->getArgOperand(0);
498 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr,
500 Value *Ops[3];
602 Value *Op = CI->getArgOperand(0);