• Home
  • Raw
  • Download

Lines Matching refs:Shadow

571     Value *Shadow;  member
575 : Shadow(S), Origin(O), OrigIns(I) { } in ShadowOriginAndInsertPoint()
642 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin()
646 unsigned StoreSize = DL.getTypeStoreSize(Shadow->getType()); in storeOrigin()
647 if (isa<StructType>(Shadow->getType())) { in storeOrigin()
652 Value *ConvertedShadow = convertToShadowTyNoVec(Shadow, IRB); in storeOrigin()
692 Value *Shadow = SI.isAtomic() ? getCleanShadow(Val) : getShadow(Val); in materializeStores() local
693 Value *ShadowPtr = getShadowPtr(Addr, Shadow->getType(), IRB); in materializeStores()
696 IRB.CreateAlignedStore(Shadow, ShadowPtr, SI.getAlignment()); in materializeStores()
705 storeOrigin(IRB, Addr, Shadow, getOrigin(Val), SI.getAlignment(), in materializeStores()
710 void materializeOneCheck(Instruction *OrigIns, Value *Shadow, Value *Origin, in materializeOneCheck()
713 DEBUG(dbgs() << " SHAD0 : " << *Shadow << "\n"); in materializeOneCheck()
714 Value *ConvertedShadow = convertToShadowTyNoVec(Shadow, IRB); in materializeOneCheck()
765 Value *Shadow = ShadowData.Shadow; in materializeChecks() local
767 materializeOneCheck(OrigIns, Shadow, Origin, InstrumentWithCalls); in materializeChecks()
1019 Value *Shadow = ShadowMap[V]; in getShadow() local
1020 if (!Shadow) { in getShadow()
1023 assert(Shadow && "No shadow for a value"); in getShadow()
1025 return Shadow; in getShadow()
1131 void insertShadowCheck(Value *Shadow, Value *Origin, Instruction *OrigIns) { in insertShadowCheck()
1132 assert(Shadow); in insertShadowCheck()
1135 Type *ShadowTy = Shadow->getType(); in insertShadowCheck()
1140 ShadowOriginAndInsertPoint(Shadow, Origin, OrigIns)); in insertShadowCheck()
1149 Value *Shadow, *Origin; in insertShadowCheck() local
1151 Shadow = getShadow(Val); in insertShadowCheck()
1152 if (!Shadow) return; in insertShadowCheck()
1155 Shadow = dyn_cast_or_null<Instruction>(getShadow(Val)); in insertShadowCheck()
1156 if (!Shadow) return; in insertShadowCheck()
1159 insertShadowCheck(Shadow, Origin, OrigIns); in insertShadowCheck()
1410 Value *Shadow; member in __anon554764450211::MemorySanitizerVisitor::Combiner
1417 Shadow(nullptr), Origin(nullptr), IRB(IRB), MSV(MSV) {} in Combiner()
1423 if (!Shadow) in Add()
1424 Shadow = OpShadow; in Add()
1426 OpShadow = MSV->CreateShadowCast(IRB, OpShadow, Shadow->getType()); in Add()
1427 Shadow = IRB.CreateOr(Shadow, OpShadow, "_msprop"); in Add()
1460 assert(Shadow); in Done()
1461 Shadow = MSV->CreateShadowCast(IRB, Shadow, MSV->getShadowTy(I)); in Done()
1462 MSV->setShadow(I, Shadow); in Done()
1726 Value* Shadow = in handleSignedRelationalComparison() local
1728 setShadow(&I, Shadow); in handleSignedRelationalComparison()
1865 Value *Shadow = getShadow(&I, 1); in handleVectorStoreIntrinsic() local
1866 Value *ShadowPtr = getShadowPtr(Addr, Shadow->getType(), IRB); in handleVectorStoreIntrinsic()
1870 IRB.CreateAlignedStore(Shadow, ShadowPtr, 1); in handleVectorStoreIntrinsic()
2506 Value *Shadow = getCleanShadow(RetVal); in visitReturnInst() local
2507 IRB.CreateAlignedStore(Shadow, ShadowPtr, kShadowTLSAlignment); in visitReturnInst()
2509 Value *Shadow = getShadow(RetVal); in visitReturnInst() local
2510 IRB.CreateAlignedStore(Shadow, ShadowPtr, kShadowTLSAlignment); in visitReturnInst()