Lines Matching refs:Shadow
1146 Value *Shadow; member
1151 : Shadow(S), Origin(O), OrigIns(I) {} in ShadowOriginAndInsertPoint()
1275 void storeOrigin(IRBuilder<> &IRB, Value *Addr, Value *Shadow, Value *Origin, in storeOrigin()
1279 TypeSize StoreSize = DL.getTypeStoreSize(Shadow->getType()); in storeOrigin()
1280 Value *ConvertedShadow = convertShadowToScalar(Shadow, IRB); in storeOrigin()
1321 Value *Shadow = SI->isAtomic() ? getCleanShadow(Val) : getShadow(Val); in materializeStores() local
1323 Type *ShadowTy = Shadow->getType(); in materializeStores()
1329 StoreInst *NewSI = IRB.CreateAlignedStore(Shadow, ShadowPtr, Alignment); in materializeStores()
1337 storeOrigin(IRB, Addr, Shadow, getOrigin(Val), OriginPtr, in materializeStores()
1421 Value *Shadow = nullptr; in materializeInstructionChecks() local
1426 Value *ConvertedShadow = ShadowData.Shadow; in materializeInstructionChecks()
1449 if (!Shadow) { in materializeInstructionChecks()
1450 Shadow = ConvertedShadow; in materializeInstructionChecks()
1454 Shadow = convertToBool(Shadow, IRB, "_mscmp"); in materializeInstructionChecks()
1456 Shadow = IRB.CreateOr(Shadow, ConvertedShadow, "_msor"); in materializeInstructionChecks()
1459 if (Shadow) { in materializeInstructionChecks()
1462 materializeOneCheck(IRB, Shadow, nullptr); in materializeInstructionChecks()
1592 Value *collapseStructShadow(StructType *Struct, Value *Shadow, in collapseStructShadow()
1599 Value *ShadowItem = IRB.CreateExtractValue(Shadow, Idx); in collapseStructShadow()
1612 Value *collapseArrayShadow(ArrayType *Array, Value *Shadow, in collapseArrayShadow()
1617 Value *FirstItem = IRB.CreateExtractValue(Shadow, 0); in collapseArrayShadow()
1621 Value *ShadowItem = IRB.CreateExtractValue(Shadow, Idx); in collapseArrayShadow()
1930 Value *Shadow = ShadowMap[V]; in getShadow() local
1931 if (!Shadow) { in getShadow()
1934 assert(Shadow && "No shadow for a value"); in getShadow()
1936 return Shadow; in getShadow()
2064 void insertShadowCheck(Value *Shadow, Value *Origin, Instruction *OrigIns) { in insertShadowCheck()
2065 assert(Shadow); in insertShadowCheck()
2070 LLVM_DEBUG(dbgs() << "Skipping check of " << *Shadow << " before " in insertShadowCheck()
2075 Type *ShadowTy = Shadow->getType(); in insertShadowCheck()
2082 ShadowOriginAndInsertPoint(Shadow, Origin, OrigIns)); in insertShadowCheck()
2091 Value *Shadow, *Origin; in insertShadowCheck() local
2093 Shadow = getShadow(Val); in insertShadowCheck()
2094 if (!Shadow) in insertShadowCheck()
2098 Shadow = dyn_cast_or_null<Instruction>(getShadow(Val)); in insertShadowCheck()
2099 if (!Shadow) in insertShadowCheck()
2103 insertShadowCheck(Shadow, Origin, OrigIns); in insertShadowCheck()
2415 Value *Shadow = nullptr; member in __anonf93d87790811::MemorySanitizerVisitor::Combiner
2428 if (!Shadow) in Add()
2429 Shadow = OpShadow; in Add()
2431 OpShadow = MSV->CreateShadowCast(IRB, OpShadow, Shadow->getType()); in Add()
2432 Shadow = IRB.CreateOr(Shadow, OpShadow, "_msprop"); in Add()
2463 assert(Shadow); in Done()
2464 Shadow = MSV->CreateShadowCast(IRB, Shadow, MSV->getShadowTy(I)); in Done()
2465 MSV->setShadow(I, Shadow); in Done()
2750 Value *Shadow = IRB.CreateICmpSLT(getShadow(op), getCleanShadow(op), in handleSignedRelationalComparison() local
2752 setShadow(&I, Shadow); in handleSignedRelationalComparison()
2889 Value *Shadow = getShadow(&I, 1); in handleVectorStoreIntrinsic() local
2895 Addr, IRB, Shadow->getType(), Align(1), /*isStore*/ true); in handleVectorStoreIntrinsic()
2896 IRB.CreateAlignedStore(Shadow, ShadowPtr, Align(1)); in handleVectorStoreIntrinsic()
3402 Value *Shadow = IRB.CreateAlignedLoad(Ty, ShadowPtr, Alignment, "_ldmxcsr"); in handleLdmxcsr() local
3405 insertShadowCheck(Shadow, Origin, &I); in handleLdmxcsr()
3430 Value *Shadow = IRB.CreateMaskedExpandLoad( in handleMaskedExpandLoad() local
3433 setShadow(&I, Shadow); in handleMaskedExpandLoad()
3450 Value *Shadow = getShadow(Values); in handleMaskedCompressStore() local
3456 IRB.CreateMaskedCompressStore(Shadow, ShadowPtr, Mask); in handleMaskedCompressStore()
3489 Value *Shadow = in handleMaskedGather() local
3493 setShadow(&I, Shadow); in handleMaskedGather()
3516 Value *Shadow = getShadow(Values); in handleMaskedScatter() local
3522 IRB.CreateMaskedScatter(Shadow, ShadowPtrs, Alignment, Mask); in handleMaskedScatter()
3534 Value *Shadow = getShadow(V); in handleMaskedStore() local
3544 Ptr, IRB, Shadow->getType(), Alignment, /*isStore*/ true); in handleMaskedStore()
3546 IRB.CreateMaskedStore(Shadow, ShadowPtr, Alignment, Mask); in handleMaskedStore()
3553 DL.getTypeStoreSize(Shadow->getType()), in handleMaskedStore()
3664 Value *Shadow = IRB.CreateShuffleVector(First, Second, Mask); in handleUnarySdSsIntrinsic() local
3666 setShadow(&I, Shadow); in handleUnarySdSsIntrinsic()
3677 Value *Shadow = IRB.CreateZExt(Scalar, getShadowTy(&I)); in handleVtestIntrinsic() local
3679 setShadow(&I, Shadow); in handleVtestIntrinsic()
3695 Value *Shadow = IRB.CreateShuffleVector(First, OrShadow, Mask); in handleBinarySdSsIntrinsic() local
3697 setShadow(&I, Shadow); in handleBinarySdSsIntrinsic()
3716 Value *Shadow = getShadow(&I, 0); in handleIsFpClass() local
3717 setShadow(&I, IRB.CreateICmpNE(Shadow, getCleanShadow(Shadow))); in handleIsFpClass()
4326 Value *Shadow = getShadow(RetVal); in visitReturnInst() local
4330 Shadow = getCleanShadow(RetVal); in visitReturnInst()
4337 IRB.CreateAlignedStore(Shadow, ShadowPtr, kShadowTLSAlignment); in visitReturnInst()
4887 Value *Shadow = MSV.getShadow(A); in visitCallBase() local
4888 IRB.CreateAlignedStore(Shadow, ShadowBase, kShadowTLSAlignment); in visitCallBase()
4891 TypeSize StoreSize = DL.getTypeStoreSize(Shadow->getType()); in visitCallBase()
5622 Value *Shadow = MSV.getShadow(A); in visitCallBase() local
5624 Shadow = MSV.CreateShadowCast(IRB, Shadow, IRB.getInt64Ty(), in visitCallBase()
5627 ShadowBase, PointerType::get(Shadow->getType(), 0), "_msarg_va_s"); in visitCallBase()
5628 IRB.CreateStore(Shadow, ShadowBase); in visitCallBase()
5631 TypeSize StoreSize = DL.getTypeStoreSize(Shadow->getType()); in visitCallBase()