Lines Matching refs:Origin
640 Value *Origin; member
643 : Shadow(S), Origin(O), OrigIns(I) { } in ShadowOriginAndInsertPoint()
670 Value *originToIntptr(IRBuilder<> &IRB, Value *Origin) { in originToIntptr()
673 if (IntptrSize == kOriginSize) return Origin; in originToIntptr()
675 Origin = IRB.CreateIntCast(Origin, MS.IntptrTy, /* isSigned */ false); in originToIntptr()
676 return IRB.CreateOr(Origin, IRB.CreateShl(Origin, kOriginSize * 8)); in originToIntptr()
680 void paintOrigin(IRBuilder<> &IRB, Value *Origin, Value *OriginPtr, in paintOrigin()
691 Value *IntptrOrigin = originToIntptr(IRB, Origin); in paintOrigin()
706 IRB.CreateAlignedStore(Origin, GEP, CurrentAlignment); in paintOrigin()
711 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin()
717 paintOrigin(IRB, updateOrigin(Origin, IRB), in storeOrigin()
725 paintOrigin(IRB, updateOrigin(Origin, IRB), in storeOrigin()
740 Origin}); in storeOrigin()
747 paintOrigin(IRBNew, updateOrigin(Origin, IRBNew), in storeOrigin()
779 void materializeOneCheck(Instruction *OrigIns, Value *Shadow, Value *Origin, in materializeOneCheck()
790 IRB.CreateStore(Origin ? (Value *)Origin : (Value *)IRB.getInt32(0), in materializeOneCheck()
810 IRB.CreateCall(Fn, {ConvertedShadow2, MS.TrackOrigins && Origin in materializeOneCheck()
811 ? Origin in materializeOneCheck()
822 IRB.CreateStore(Origin ? (Value *)Origin : (Value *)IRB.getInt32(0), in materializeOneCheck()
835 Value *Origin = ShadowData.Origin; in materializeChecks() local
836 materializeOneCheck(OrigIns, Shadow, Origin, InstrumentWithCalls); in materializeChecks()
1031 void setOrigin(Value *V, Value *Origin) { in setOrigin()
1034 DEBUG(dbgs() << "ORIGIN: " << *V << " ==> " << *Origin << "\n"); in setOrigin()
1035 OriginMap[V] = Origin; in setOrigin()
1187 Value *Origin = OriginMap[V]; in getOrigin() local
1188 assert(Origin && "Missing origin"); in getOrigin()
1189 return Origin; in getOrigin()
1201 void insertShadowCheck(Value *Shadow, Value *Origin, Instruction *OrigIns) { in insertShadowCheck()
1210 ShadowOriginAndInsertPoint(Shadow, Origin, OrigIns)); in insertShadowCheck()
1219 Value *Shadow, *Origin; in insertShadowCheck() local
1223 Origin = getOrigin(Val); in insertShadowCheck()
1227 Origin = dyn_cast_or_null<Instruction>(getOrigin(Val)); in insertShadowCheck()
1229 insertShadowCheck(Shadow, Origin, OrigIns); in insertShadowCheck()
1487 Value *Origin; member in __anone66e8aa50211::MemorySanitizerVisitor::Combiner
1493 Shadow(nullptr), Origin(nullptr), IRB(IRB), MSV(MSV) {} in Combiner()
1509 if (!Origin) { in Add()
1510 Origin = OpOrigin; in Add()
1518 Origin = IRB.CreateSelect(Cond, OpOrigin, Origin); in Add()
1541 assert(Origin); in Done()
1542 MSV->setOrigin(I, Origin); in Done()