Lines Matching refs:Shadow
301 Value *Shadow; member
320 void setShadow(Instruction *I, Value *Shadow);
325 void storeShadow(Value *Addr, uint64_t Size, uint64_t Align, Value *Shadow,
893 Value *&Shadow = ValShadowMap[V]; in getShadow() local
894 if (!Shadow) { in getShadow()
905 Shadow = IRB.CreateLoad(getArgTLS(A->getArgNo(), ArgTLSPos)); in getShadow()
913 Shadow = &*i; in getShadow()
914 assert(Shadow->getType() == DFS.ShadowTy); in getShadow()
918 NonZeroChecks.push_back(Shadow); in getShadow()
920 Shadow = DFS.ZeroShadow; in getShadow()
923 return Shadow; in getShadow()
926 void DFSanFunction::setShadow(Instruction *I, Value *Shadow) { in setShadow() argument
928 assert(Shadow->getType() == DFS.ShadowTy); in setShadow()
929 ValShadowMap[I] = Shadow; in setShadow()
981 return CCS.Shadow; in combineShadows()
991 CCS.Shadow = Call; in combineShadows()
1009 CCS.Shadow = Phi; in combineShadows()
1023 ShadowElements[CCS.Shadow] = std::move(UnionElems); in combineShadows()
1025 return CCS.Shadow; in combineShadows()
1035 Value *Shadow = getShadow(Inst->getOperand(0)); in combineOperandShadows() local
1037 Shadow = combineShadows(Shadow, getShadow(Inst->getOperand(i)), Inst); in combineOperandShadows()
1039 return Shadow; in combineOperandShadows()
1150 PHINode *Shadow = PHINode::Create(DFS.ShadowTy, 2, "", &Tail->front()); in loadShadow() local
1151 Shadow->addIncoming(FallbackCall, FallbackBB); in loadShadow()
1152 Shadow->addIncoming(TruncShadow, LastBr->getParent()); in loadShadow()
1153 return Shadow; in loadShadow()
1180 Value *Shadow = DFSF.loadShadow(LI.getPointerOperand(), Size, Align, &LI); in visitLoadInst() local
1183 Shadow = DFSF.combineShadows(Shadow, PtrShadow, &LI); in visitLoadInst()
1185 if (Shadow != DFSF.DFS.ZeroShadow) in visitLoadInst()
1186 DFSF.NonZeroChecks.push_back(Shadow); in visitLoadInst()
1188 DFSF.setShadow(&LI, Shadow); in visitLoadInst()
1192 Value *Shadow, Instruction *Pos) { in storeShadow() argument
1198 IRB.CreateStore(Shadow, i->second); in storeShadow()
1206 if (Shadow == DFS.ZeroShadow) { in storeShadow()
1222 ShadowVec, Shadow, ConstantInt::get(Type::getInt32Ty(*DFS.Ctx), i)); in storeShadow()
1238 IRB.CreateAlignedStore(Shadow, CurShadowAddr, ShadowAlign); in storeShadow()
1259 Value* Shadow = DFSF.getShadow(SI.getValueOperand()); in visitStoreInst() local
1262 Shadow = DFSF.combineShadows(Shadow, PtrShadow, &SI); in visitStoreInst()
1264 DFSF.storeShadow(SI.getPointerOperand(), Size, Align, Shadow, &SI); in visitStoreInst()