Lines Matching refs:PtrLong
186 void instrumentMemAccessInline(Value *PtrLong, bool IsWrite,
197 Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag);
198 Value *untagPointer(IRBuilder<> &IRB, Value *PtrLong);
523 void HWAddressSanitizer::instrumentMemAccessInline(Value *PtrLong, bool IsWrite, in instrumentMemAccessInline() argument
527 Value *PtrTag = IRB.CreateTrunc(IRB.CreateLShr(PtrLong, kPointerTagShift), in instrumentMemAccessInline()
529 Value *AddrLong = untagPointer(IRB, PtrLong); in instrumentMemAccessInline()
530 Value *ShadowLong = memToShadow(AddrLong, PtrLong->getType(), IRB); in instrumentMemAccessInline()
553 FunctionType::get(IRB.getVoidTy(), {PtrLong->getType()}, false), in instrumentMemAccessInline()
562 FunctionType::get(IRB.getVoidTy(), {PtrLong->getType()}, false), in instrumentMemAccessInline()
570 IRB.CreateCall(Asm, PtrLong); in instrumentMemAccessInline()
727 Value *PtrLong, Value *Tag) { in tagPointer() argument
734 TaggedPtrLong = IRB.CreateAnd(PtrLong, ShiftedTag); in tagPointer()
738 TaggedPtrLong = IRB.CreateOr(PtrLong, ShiftedTag); in tagPointer()
744 Value *HWAddressSanitizer::untagPointer(IRBuilder<> &IRB, Value *PtrLong) { in untagPointer() argument
748 UntaggedPtrLong = IRB.CreateOr(PtrLong, in untagPointer()
749 ConstantInt::get(PtrLong->getType(), 0xFFULL << kPointerTagShift)); in untagPointer()
752 UntaggedPtrLong = IRB.CreateAnd(PtrLong, in untagPointer()
753 ConstantInt::get(PtrLong->getType(), ~(0xFFULL << kPointerTagShift))); in untagPointer()