Home
last modified time | relevance | path

Searched refs:OldVal (Results 1 – 25 of 46) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSSAUpdaterBulk.cpp180 Value *OldVal = U->get(); in RewriteAllUses() local
181 assert(OldVal && "Invalid use!"); in RewriteAllUses()
183 if (OldVal != V && OldVal->hasValueHandle()) in RewriteAllUses()
184 ValueHandleBase::ValueIsRAUWd(OldVal, V); in RewriteAllUses()
185 LLVM_DEBUG(dbgs() << "SSAUpdater: replacing " << *OldVal << " with " << *V in RewriteAllUses()
H A DLocal.cpp888 static Value *selectIncomingValueForBlock(Value *OldVal, BasicBlock *BB, in selectIncomingValueForBlock() argument
890 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock()
892 IncomingValues.find(BB)->second == OldVal) && in selectIncomingValueForBlock()
895 IncomingValues.insert(std::make_pair(BB, OldVal)); in selectIncomingValueForBlock()
896 return OldVal; in selectIncomingValueForBlock()
902 return OldVal; in selectIncomingValueForBlock()
976 Value *OldVal = PN->removeIncomingValue(BB, false); in redirectValuesFromPredecessorsToPhi() local
977 assert(OldVal && "No entry in PHI for Pred BB!"); in redirectValuesFromPredecessorsToPhi()
994 if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) { in redirectValuesFromPredecessorsToPhi()
995 PHINode *OldValPN = cast<PHINode>(OldVal); in redirectValuesFromPredecessorsToPhi()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsExpandPseudo.cpp245 Register OldVal = I->getOperand(2).getReg(); in expandAtomicCmpSwap() local
280 .addReg(Dest, RegState::Kill).addReg(OldVal).addMBB(exitMBB); in expandAtomicCmpSwap()
416 Register OldVal = I->getOperand(6).getReg(); in expandAtomicBinOpSubword() local
437 BuildMI(loopMBB, DL, TII->get(LL), OldVal).addReg(Ptr).addImm(0); in expandAtomicBinOpSubword()
443 .addReg(OldVal) in expandAtomicBinOpSubword()
466 BuildMI(loopMBB, DL, TII->get(Mips::AND), OldVal) in expandAtomicBinOpSubword()
467 .addReg(OldVal) in expandAtomicBinOpSubword()
475 .addReg(OldVal) in expandAtomicBinOpSubword()
486 .addReg(OldVal) in expandAtomicBinOpSubword()
500 .addReg(OldVal) in expandAtomicBinOpSubword()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DCurrentSourceLocExprScope.h53 : Current(Current), OldVal(Current), Enable(false) { in SourceLocExprScopeGuard()
61 Current = OldVal; in ~SourceLocExprScopeGuard()
69 CurrentSourceLocExprScope OldVal; variable
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h272 bool OldVal; variable
275 : P(p), OldVal(P.ColonIsSacred) { in P()
282 P.ColonIsSacred = OldVal; in restore()
294 bool OldVal; variable
298 : P(P), OldVal(P.OpenMPDirectiveParsing) { in P()
304 void restore() { P.OpenMPDirectiveParsing = OldVal; } in restore()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A Dubsan_handlers.cc151 static void handleNegateOverflowImpl(OverflowData *Data, ValueHandle OldVal, in handleNegateOverflowImpl() argument
170 << Value(Data->Type, OldVal) << Data->Type; in handleNegateOverflowImpl()
173 << Value(Data->Type, OldVal) << Data->Type; in handleNegateOverflowImpl()
177 ValueHandle OldVal) { in __ubsan_handle_negate_overflow() argument
179 handleNegateOverflowImpl(Data, OldVal, Opts); in __ubsan_handle_negate_overflow()
182 ValueHandle OldVal) { in __ubsan_handle_negate_overflow_abort() argument
184 handleNegateOverflowImpl(Data, OldVal, Opts); in __ubsan_handle_negate_overflow_abort()
H A Dubsan_handlers.h57 RECOVERABLE(negate_overflow, OverflowData *Data, ValueHandle OldVal)
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_handlers.cc147 static void handleNegateOverflowImpl(OverflowData *Data, ValueHandle OldVal, in handleNegateOverflowImpl() argument
166 << Value(Data->Type, OldVal) << Data->Type; in handleNegateOverflowImpl()
169 << Value(Data->Type, OldVal) << Data->Type; in handleNegateOverflowImpl()
173 ValueHandle OldVal) { in __ubsan_handle_negate_overflow() argument
175 handleNegateOverflowImpl(Data, OldVal, Opts); in __ubsan_handle_negate_overflow()
178 ValueHandle OldVal) { in __ubsan_handle_negate_overflow_abort() argument
180 handleNegateOverflowImpl(Data, OldVal, Opts); in __ubsan_handle_negate_overflow_abort()
H A Dubsan_handlers.h55 RECOVERABLE(negate_overflow, OverflowData *Data, ValueHandle OldVal)
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/ubsan/
H A Dubsan_handlers.cpp249 static void handleNegateOverflowImpl(OverflowData *Data, ValueHandle OldVal, in handleNegateOverflowImpl() argument
268 << Value(Data->Type, OldVal) << Data->Type; in handleNegateOverflowImpl()
271 << Value(Data->Type, OldVal) << Data->Type; in handleNegateOverflowImpl()
275 ValueHandle OldVal) { in __ubsan_handle_negate_overflow() argument
277 handleNegateOverflowImpl(Data, OldVal, Opts); in __ubsan_handle_negate_overflow()
280 ValueHandle OldVal) { in __ubsan_handle_negate_overflow_abort() argument
282 handleNegateOverflowImpl(Data, OldVal, Opts); in __ubsan_handle_negate_overflow_abort()
H A Dubsan_handlers.h67 RECOVERABLE(negate_overflow, OverflowData *Data, ValueHandle OldVal)
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp642 SVal OldVal = State->getSVal(Iterator, C.getLocationContext()); in handlePtrIncrOrDecr() local
644 const IteratorPosition *OldPos = getIteratorPosition(State, OldVal); in handlePtrIncrOrDecr()
650 NewVal = State->getLValue(ElementType, Offset, OldVal); in handlePtrIncrOrDecr()
654 NewVal = State->getLValue(ElementType, NegatedOffset, OldVal); in handlePtrIncrOrDecr()
660 auto AdvancedState = advancePosition(State, OldVal, OK, Offset); in handlePtrIncrOrDecr()
662 const IteratorPosition *NewPos = getIteratorPosition(AdvancedState, OldVal); in handlePtrIncrOrDecr()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGAtomic.cpp495 llvm::Value *OldVal, in EmitPostAtomicMinMax() argument
508 llvm::Value *Cmp = Builder.CreateICmp(Pred, OldVal, RHS, "tst"); in EmitPostAtomicMinMax()
509 return Builder.CreateSelect(Cmp, OldVal, RHS, "newval"); in EmitPostAtomicMinMax()
1833 auto *OldVal = CGF.Builder.CreateLoad(ExpectedAddr); in EmitAtomicUpdateLibcall() local
1834 CGF.Builder.CreateStore(OldVal, DesiredAddr); in EmitAtomicUpdateLibcall()
1854 auto *OldVal = EmitAtomicLoadOp(Failure, IsVolatile); in EmitAtomicUpdateOp() local
1860 llvm::PHINode *PHI = CGF.Builder.CreatePHI(OldVal->getType(), in EmitAtomicUpdateOp()
1862 PHI->addIncoming(OldVal, CurBB); in EmitAtomicUpdateOp()
1919 auto *OldVal = CGF.Builder.CreateLoad(ExpectedAddr); in EmitAtomicUpdateLibcall() local
1920 CGF.Builder.CreateStore(OldVal, DesiredAddr); in EmitAtomicUpdateLibcall()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp933 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in expandPartwordCmpXchg() local
946 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg()
956 Value *FinalOldVal = extractMaskedValue(Builder, OldVal, PMV); in expandPartwordCmpXchg()
1017 Value *OldVal = TLI->emitMaskedAtomicCmpXchgIntrinsic( in expandAtomicCmpXchgToMaskedIntrinsic() local
1020 Value *FinalOldVal = extractMaskedValue(Builder, OldVal, PMV); in expandAtomicCmpXchgToMaskedIntrinsic()
1024 CmpVal_Shifted, Builder.CreateAnd(OldVal, PMV.Mask), "Success"); in expandAtomicCmpXchgToMaskedIntrinsic()
1108 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in convertCmpXchgToIntegerType() local
1111 OldVal = Builder.CreateIntToPtr(OldVal, CI->getCompareOperand()->getType()); in convertCmpXchgToIntegerType()
1114 Res = Builder.CreateInsertValue(Res, OldVal, 0); in convertCmpXchgToIntegerType()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DPoisonChecking.cpp314 auto *OldVal = OldPHI->getIncomingValue(i); in rewrite() local
315 NewPHI->setIncomingValue(i, getPoisonFor(ValToPoison, OldVal)); in rewrite()
H A DThreadSanitizer.cpp809 Value *OldVal = C; in instrumentAtomic() local
813 OldVal = IRB.CreateIntToPtr(C, OrigOldValTy); in instrumentAtomic()
817 IRB.CreateInsertValue(UndefValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp173 uint64_t OldVal; in RemoveMapping() local
178 OldVal = 0; in RemoveMapping()
181 OldVal = I->second; in RemoveMapping()
185 return OldVal; in RemoveMapping()
258 uint64_t OldVal = CurVal; in updateGlobalMapping() local
271 return OldVal; in updateGlobalMapping()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp714 Value *OldVal = NamedValues[VarName]; in codegen() local
760 if (OldVal) in codegen()
761 NamedValues[VarName] = OldVal; in codegen()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp813 AllocaInst *OldVal = NamedValues[VarName]; in Codegen() local
857 if (OldVal) in Codegen()
858 NamedValues[VarName] = OldVal; in Codegen()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp831 AllocaInst *OldVal = NamedValues[VarName]; in Codegen() local
875 if (OldVal) in Codegen()
876 NamedValues[VarName] = OldVal; in Codegen()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp826 Value *OldVal = NamedValues[VarName]; in codegen() local
872 if (OldVal) in codegen()
873 NamedValues[VarName] = OldVal; in codegen()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp937 AllocaInst *OldVal = NamedValues[VarName]; in codegen() local
984 if (OldVal) in codegen()
985 NamedValues[VarName] = OldVal; in codegen()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
H A Dtoy.cpp932 AllocaInst *OldVal = NamedValues[VarName]; in codegen() local
979 if (OldVal) in codegen()
980 NamedValues[VarName] = OldVal; in codegen()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp938 AllocaInst *OldVal = NamedValues[VarName]; in codegen() local
985 if (OldVal) in codegen()
986 NamedValues[VarName] = OldVal; in codegen()
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
H A Dtoy.cpp932 AllocaInst *OldVal = NamedValues[VarName]; in codegen() local
979 if (OldVal) in codegen()
980 NamedValues[VarName] = OldVal; in codegen()

12