Lines Matching defs:IRB
423 IRBuilder<> IRB(BB);
426 Value *Callee = IRB.CreateLoad(PtrTy, CalleePtr);
440 Args.push_back(IRB.CreateAlloca(RetTy));
464 Value *Mem = IRB.CreateAlloca(Arg.getType());
465 IRB.CreateStore(&Arg, Mem);
467 Type *IntTy = IRB.getIntNTy(DL.getTypeStoreSizeInBits(Arg.getType()));
468 Args.push_back(IRB.CreateLoad(IntTy, IRB.CreateBitCast(Mem, PtrTy)));
480 Callee = IRB.CreateBitCast(Callee, PtrTy);
481 CallInst *Call = IRB.CreateCall(X64Ty, Callee, Args);
489 RetVal = IRB.CreateLoad(RetTy, Args[1]);
491 Value *CastAlloca = IRB.CreateAlloca(RetTy);
492 IRB.CreateStore(Call, IRB.CreateBitCast(CastAlloca, PtrTy));
493 RetVal = IRB.CreateLoad(RetTy, CastAlloca);
498 IRB.CreateRetVoid();
500 IRB.CreateRet(RetVal);
526 IRBuilder<> IRB(BB);
546 Value *CastAlloca = IRB.CreateAlloca(ArgTy);
547 IRB.CreateStore(Arg, IRB.CreateBitCast(CastAlloca, PtrTy));
548 Arg = IRB.CreateLoad(ArgTy, CastAlloca);
551 Arg = IRB.CreateLoad(ArgTy, IRB.CreateBitCast(Arg, PtrTy));
567 Arg = IRB.CreatePtrAdd(Arg, IRB.getInt64(0x20));
571 Args.push_back(IRB.getInt64(0));
576 Callee = IRB.CreateBitCast(Callee, PtrTy);
577 CallInst *Call = IRB.CreateCall(Arm64Ty, Callee, Args);
588 IRB.CreateStore(RetVal, IRB.CreateBitCast(Thunk->getArg(1), PtrTy));
590 Value *CastAlloca = IRB.CreateAlloca(X64RetType);
591 IRB.CreateStore(Call, IRB.CreateBitCast(CastAlloca, PtrTy));
592 RetVal = IRB.CreateLoad(X64RetType, CastAlloca);
600 IRB.CreateRetVoid();
602 IRB.CreateRet(RetVal);