Lines Matching defs:IRB

144   IRBuilder<> IRB(M.getContext());
147 "__tsan_func_entry", IRB.getVoidTy(), IRB.getInt8PtrTy(), NULL));
149 "__tsan_func_exit", IRB.getVoidTy(), NULL));
150 OrdTy = IRB.getInt32Ty();
156 ReadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), NULL));
160 WriteName, IRB.getVoidTy(), IRB.getInt8PtrTy(), NULL));
172 AtomicStoreName, IRB.getVoidTy(), PtrTy, Ty, OrdTy,
206 "__tsan_vptr_update", IRB.getVoidTy(), IRB.getInt8PtrTy(),
207 IRB.getInt8PtrTy(), NULL));
209 "__tsan_vptr_read", IRB.getVoidTy(), IRB.getInt8PtrTy(), NULL));
211 "__tsan_atomic_thread_fence", IRB.getVoidTy(), OrdTy, NULL));
213 "__tsan_atomic_signal_fence", IRB.getVoidTy(), OrdTy, NULL));
216 "memmove", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(),
217 IRB.getInt8PtrTy(), IntptrTy, NULL));
219 "memcpy", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IRB.getInt8PtrTy(),
222 "memset", IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IRB.getInt32Ty(),
233 IRBuilder<> IRB(M.getContext());
234 IntptrTy = IRB.getIntPtrTy(TD);
236 IRB.getVoidTy(), NULL);
379 IRBuilder<> IRB(F.getEntryBlock().getFirstNonPHI());
380 Value *ReturnAddress = IRB.CreateCall(
382 IRB.getInt32(0));
383 IRB.CreateCall(TsanFuncEntry, ReturnAddress);
394 IRBuilder<> IRB(I);
407 StoredValue = IRB.CreateIntToPtr(StoredValue, IRB.getInt8PtrTy());
409 IRB.CreateCall2(TsanVptrUpdate,
410 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()),
411 IRB.CreatePointerCast(StoredValue, IRB.getInt8PtrTy()));
416 IRB.CreateCall(TsanVptrLoad,
417 IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()));
422 IRB.CreateCall(OnAccessFunc, IRB.CreatePointerCast(Addr, IRB.getInt8PtrTy()));
428 static ConstantInt *createOrdering(IRBuilder<> *IRB, AtomicOrdering ord) {
440 return IRB->getInt32(v);
443 static ConstantInt *createFailOrdering(IRBuilder<> *IRB, AtomicOrdering ord) {
455 return IRB->getInt32(v);
467 IRBuilder<> IRB(I);
469 IRB.CreateCall3(MemsetFn,
470 IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()),
471 IRB.CreateIntCast(M->getArgOperand(1), IRB.getInt32Ty(), false),
472 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false));
475 IRB.CreateCall3(isa<MemCpyInst>(M) ? MemcpyFn : MemmoveFn,
476 IRB.CreatePointerCast(M->getArgOperand(0), IRB.getInt8PtrTy()),
477 IRB.CreatePointerCast(M->getArgOperand(1), IRB.getInt8PtrTy()),
478 IRB.CreateIntCast(M->getArgOperand(2), IntptrTy, false));
493 IRBuilder<> IRB(I);
501 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize);
503 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy),
504 createOrdering(&IRB, LI->getOrdering())};
516 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize);
518 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy),
519 IRB.CreateIntCast(SI->getValueOperand(), Ty, false),
520 createOrdering(&IRB, SI->getOrdering())};
534 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize);
536 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy),
537 IRB.CreateIntCast(RMWI->getValOperand(), Ty, false),
538 createOrdering(&IRB, RMWI->getOrdering())};
548 Type *Ty = Type::getIntNTy(IRB.getContext(), BitSize);
550 Value *Args[] = {IRB.CreatePointerCast(Addr, PtrTy),
551 IRB.CreateIntCast(CASI->getCompareOperand(), Ty, false),
552 IRB.CreateIntCast(CASI->getNewValOperand(), Ty, false),
553 createOrdering(&IRB, CASI->getOrdering()),
554 createFailOrdering(&IRB, CASI->getOrdering())};
558 Value *Args[] = {createOrdering(&IRB, FI->getOrdering())};