Lines Matching refs:IRB

375   IRBuilder<> IRB(BB);  in buildExitThunk()  local
378 Value *Callee = IRB.CreateLoad(PtrTy, CalleePtr); in buildExitThunk()
391 Args.push_back(IRB.CreateAlloca(RetTy)); in buildExitThunk()
412 Value *Mem = IRB.CreateAlloca(Arg.getType()); in buildExitThunk()
413 IRB.CreateStore(&Arg, Mem); in buildExitThunk()
415 Type *IntTy = IRB.getIntNTy(DL.getTypeStoreSizeInBits(Arg.getType())); in buildExitThunk()
416 Args.push_back(IRB.CreateLoad(IntTy, IRB.CreateBitCast(Mem, PtrTy))); in buildExitThunk()
425 Callee = IRB.CreateBitCast(Callee, PtrTy); in buildExitThunk()
426 CallInst *Call = IRB.CreateCall(X64Ty, Callee, Args); in buildExitThunk()
434 RetVal = IRB.CreateLoad(RetTy, Args[1]); in buildExitThunk()
436 Value *CastAlloca = IRB.CreateAlloca(RetTy); in buildExitThunk()
437 IRB.CreateStore(Call, IRB.CreateBitCast(CastAlloca, PtrTy)); in buildExitThunk()
438 RetVal = IRB.CreateLoad(RetTy, CastAlloca); in buildExitThunk()
443 IRB.CreateRetVoid(); in buildExitThunk()
445 IRB.CreateRet(RetVal); in buildExitThunk()
470 IRBuilder<> IRB(BB); in buildEntryThunk() local
488 Value *CastAlloca = IRB.CreateAlloca(ArgTy); in buildEntryThunk()
489 IRB.CreateStore(Arg, IRB.CreateBitCast(CastAlloca, PtrTy)); in buildEntryThunk()
490 Arg = IRB.CreateLoad(ArgTy, CastAlloca); in buildEntryThunk()
492 Arg = IRB.CreateLoad(ArgTy, IRB.CreateBitCast(Arg, PtrTy)); in buildEntryThunk()
507 Arg = IRB.CreatePtrAdd(Arg, IRB.getInt64(0x20)); in buildEntryThunk()
511 Args.push_back(IRB.getInt64(0)); in buildEntryThunk()
516 Callee = IRB.CreateBitCast(Callee, PtrTy); in buildEntryThunk()
517 CallInst *Call = IRB.CreateCall(Arm64Ty, Callee, Args); in buildEntryThunk()
528 IRB.CreateStore(RetVal, IRB.CreateBitCast(Thunk->getArg(1), PtrTy)); in buildEntryThunk()
530 Value *CastAlloca = IRB.CreateAlloca(X64RetType); in buildEntryThunk()
531 IRB.CreateStore(Call, IRB.CreateBitCast(CastAlloca, PtrTy)); in buildEntryThunk()
532 RetVal = IRB.CreateLoad(X64RetType, CastAlloca); in buildEntryThunk()
540 IRB.CreateRetVoid(); in buildEntryThunk()
542 IRB.CreateRet(RetVal); in buildEntryThunk()