/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SSAUpdaterBulk.cpp | 174 Value *OldVal = U->get(); in RewriteAllUses() local 175 assert(OldVal && "Invalid use!"); in RewriteAllUses() 177 if (OldVal != V && OldVal->hasValueHandle()) in RewriteAllUses() 178 ValueHandleBase::ValueIsRAUWd(OldVal, V); in RewriteAllUses() 179 LLVM_DEBUG(dbgs() << "SSAUpdater: replacing " << *OldVal << " with " << *V in RewriteAllUses()
|
H A D | Local.cpp | 936 static Value *selectIncomingValueForBlock(Value *OldVal, BasicBlock *BB, in selectIncomingValueForBlock() argument 938 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock() 940 IncomingValues.find(BB)->second == OldVal) && in selectIncomingValueForBlock() 943 IncomingValues.insert(std::make_pair(BB, OldVal)); in selectIncomingValueForBlock() 944 return OldVal; in selectIncomingValueForBlock() 950 return OldVal; in selectIncomingValueForBlock() 1055 Value *OldVal = PN->removeIncomingValue(BB, false); in redirectValuesFromPredecessorsToPhi() local 1056 assert(OldVal && "No entry in PHI for Pred BB!"); in redirectValuesFromPredecessorsToPhi() 1073 if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) { in redirectValuesFromPredecessorsToPhi() 1074 PHINode *OldValPN = cast<PHINode>(OldVal); in redirectValuesFromPredecessorsToPhi() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
H A D | RAIIObjectsForParser.h | 275 bool OldVal; variable 278 : P(p), OldVal(P.ColonIsSacred) { in P() 285 P.ColonIsSacred = OldVal; in restore() 297 bool OldVal; variable 301 : P(P), OldVal(P.OpenMPDirectiveParsing) { in P() 307 void restore() { P.OpenMPDirectiveParsing = OldVal; } in restore() 316 bool OldVal; variable 320 : P(P), OldVal(P.OpenACCDirectiveParsing) { in P() 326 void restore() { P.OpenACCDirectiveParsing = OldVal; } in restore()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | CurrentSourceLocExprScope.h | 52 : Current(Current), OldVal(Current), Enable(false) { in SourceLocExprScopeGuard() 60 Current = OldVal; in ~SourceLocExprScopeGuard() 68 CurrentSourceLocExprScope OldVal; variable
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsExpandPseudo.cpp | 245 Register OldVal = I->getOperand(2).getReg(); in expandAtomicCmpSwap() local 280 .addReg(Dest, RegState::Kill).addReg(OldVal).addMBB(exitMBB); in expandAtomicCmpSwap() 433 Register OldVal = I->getOperand(6).getReg(); in expandAtomicBinOpSubword() local 454 BuildMI(loopMBB, DL, TII->get(LL), OldVal).addReg(Ptr).addImm(0); in expandAtomicBinOpSubword() 460 .addReg(OldVal) in expandAtomicBinOpSubword() 480 .addReg(OldVal) in expandAtomicBinOpSubword() 552 .addReg(OldVal) in expandAtomicBinOpSubword() 569 .addReg(OldVal).addReg(Mask2); in expandAtomicBinOpSubword() 584 BuildMI(sinkMBB, DL, TII->get(Mips::AND), Dest).addReg(OldVal).addReg(Mask); in expandAtomicBinOpSubword() 668 Register OldVal = I->getOperand(0).getReg(); in expandAtomicBinOp() local [all …]
|
H A D | MipsISelLowering.cpp | 1577 Register OldVal = MI.getOperand(0).getReg(); in emitAtomicBinary() local 1580 Register Scratch = RegInfo.createVirtualRegister(RegInfo.getRegClass(OldVal)); in emitAtomicBinary() 1627 .addReg(OldVal, RegState::Define | RegState::EarlyClobber) in emitAtomicBinary() 1634 RegInfo.createVirtualRegister(RegInfo.getRegClass(OldVal)); in emitAtomicBinary() 1886 Register OldVal = MI.getOperand(2).getReg(); in emitAtomicCmpSwap() local 1898 Register OldValCopy = MRI.createVirtualRegister(MRI.getRegClass(OldVal)); in emitAtomicCmpSwap() 1902 BuildMI(*BB, II, DL, TII->get(Mips::COPY), OldValCopy).addReg(OldVal); in emitAtomicCmpSwap()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_handlers.cpp | 249 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 D | ubsan_handlers.h | 67 RECOVERABLE(negate_overflow, OverflowData *Data, ValueHandle OldVal)
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | IteratorModeling.cpp | 637 SVal OldVal = State->getSVal(Iterator, C.getLocationContext()); in handlePtrIncrOrDecr() local 639 const IteratorPosition *OldPos = getIteratorPosition(State, OldVal); in handlePtrIncrOrDecr() 645 NewVal = State->getLValue(ElementType, Offset, OldVal); in handlePtrIncrOrDecr() 649 NewVal = State->getLValue(ElementType, NegatedOffset, OldVal); in handlePtrIncrOrDecr() 655 auto AdvancedState = advancePosition(State, OldVal, OK, Offset); in handlePtrIncrOrDecr() 657 const IteratorPosition *NewPos = getIteratorPosition(AdvancedState, OldVal); in handlePtrIncrOrDecr()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGAtomic.cpp | 506 llvm::Value *OldVal, in EmitPostAtomicMinMax() argument 521 llvm::Value *Cmp = Builder.CreateICmp(Pred, OldVal, RHS, "tst"); in EmitPostAtomicMinMax() 522 return Builder.CreateSelect(Cmp, OldVal, RHS, "newval"); in EmitPostAtomicMinMax() 1778 auto *OldVal = CGF.Builder.CreateLoad(ExpectedAddr); in EmitAtomicUpdateLibcall() local 1779 CGF.Builder.CreateStore(OldVal, DesiredAddr); in EmitAtomicUpdateLibcall() 1799 auto *OldVal = EmitAtomicLoadOp(Failure, IsVolatile, /*CmpXchg=*/true); in EmitAtomicUpdateOp() local 1805 llvm::PHINode *PHI = CGF.Builder.CreatePHI(OldVal->getType(), in EmitAtomicUpdateOp() 1807 PHI->addIncoming(OldVal, CurBB); in EmitAtomicUpdateOp() 1869 auto *OldVal = CGF.Builder.CreateLoad(ExpectedAddr); in EmitAtomicUpdateLibcall() local 1870 CGF.Builder.CreateStore(OldVal, DesiredAddr); in EmitAtomicUpdateLibcall() [all …]
|
H A D | CGExprScalar.cpp | 3590 Value *OldVal = Builder.CreateAtomicRMW( in EmitCompoundAssignLValue() local 3596 Result = Builder.CreateBinOp(Op, OldVal, Amt); in EmitCompoundAssignLValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | PoisonChecking.cpp | 313 auto *OldVal = OldPHI->getIncomingValue(i); in rewrite() local 314 NewPHI->setIncomingValue(i, getPoisonFor(ValToPoison, OldVal)); in rewrite()
|
H A D | ThreadSanitizer.cpp | 780 Value *OldVal = C; in instrumentAtomic() local 783 OldVal = IRB.CreateIntToPtr(C, OrigOldValTy); in instrumentAtomic() 787 IRB.CreateInsertValue(PoisonValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()
|
H A D | InstrProfiling.cpp | 452 LoadInst *OldVal = Builder.CreateLoad(Ty, Addr, "pgocount.promoted"); in doExtraRewritesBeforeFinalDeletion() local 453 auto *NewVal = Builder.CreateAdd(OldVal, LiveInValue); in doExtraRewritesBeforeFinalDeletion() 460 LoopToCandidates[TargetLoop].emplace_back(OldVal, NewStore); in doExtraRewritesBeforeFinalDeletion()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | AtomicExpandPass.cpp | 1100 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in expandPartwordCmpXchg() local 1113 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg() 1123 Value *FinalOldVal = extractMaskedValue(Builder, OldVal, PMV); in expandPartwordCmpXchg() 1185 Value *OldVal = TLI->emitMaskedAtomicCmpXchgIntrinsic( in expandAtomicCmpXchgToMaskedIntrinsic() local 1188 Value *FinalOldVal = extractMaskedValue(Builder, OldVal, PMV); in expandAtomicCmpXchgToMaskedIntrinsic() 1192 CmpVal_Shifted, Builder.CreateAnd(OldVal, PMV.Mask), "Success"); in expandAtomicCmpXchgToMaskedIntrinsic() 1274 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in convertCmpXchgToIntegerType() local 1277 OldVal = Builder.CreateIntToPtr(OldVal, CI->getCompareOperand()->getType()); in convertCmpXchgToIntegerType() 1280 Res = Builder.CreateInsertValue(Res, OldVal, 0); in convertCmpXchgToIntegerType()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 173 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()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeTypes.cpp | 684 SDValue OldVal(N, i); in ReplaceValueWith() local 692 auto OldValId = getTableId(OldVal); in ReplaceValueWith() 694 DAG.ReplaceAllUsesOfValueWith(OldVal, NewVal); in ReplaceValueWith()
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 1491 llvm::APInt OldVal = Val; in GetIntegerValue() local 1509 OldVal = Val; in GetIntegerValue() 1513 OverflowOccurred |= Val.udiv(RadixVal) != OldVal; in GetIntegerValue()
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | Preprocessor.h | 1793 bool OldVal = DisableMacroExpansion; in LexUnexpandedToken() local 1799 DisableMacroExpansion = OldVal; in LexUnexpandedToken()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZISelLowering.cpp | 8576 Register OldVal = MRI.createVirtualRegister(&SystemZ::GR32BitRegClass); in emitAtomicLoadBinary() local 8603 BuildMI(MBB, DL, TII->get(SystemZ::PHI), OldVal) in emitAtomicLoadBinary() 8607 .addReg(OldVal).addReg(BitShift).addImm(0); in emitAtomicLoadBinary() 8629 .addReg(OldVal) in emitAtomicLoadBinary() 8671 Register OldVal = MRI.createVirtualRegister(&SystemZ::GR32BitRegClass); in emitAtomicLoadMinMax() local 8698 BuildMI(MBB, DL, TII->get(SystemZ::PHI), OldVal) in emitAtomicLoadMinMax() 8702 .addReg(OldVal).addReg(BitShift).addImm(0); in emitAtomicLoadMinMax() 8733 .addReg(OldVal) in emitAtomicLoadMinMax() 8776 Register OldVal = MRI.createVirtualRegister(RC); in emitAtomicCmpSwapW() local 8814 BuildMI(MBB, DL, TII->get(SystemZ::PHI), OldVal) in emitAtomicCmpSwapW() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
H A D | OMPIRBuilder.cpp | 6186 auto *OldVal = cast<ConstantAsMetadata>(ExistingOp->getOperand(2)); in updateNVPTXMetadata() local 6187 int32_t OldLimit = cast<ConstantInt>(OldVal->getValue())->getZExtValue(); in updateNVPTXMetadata() 6190 OldVal->getValue()->getType(), in updateNVPTXMetadata() 6225 auto *OldVal = cast<ConstantAsMetadata>(ExistingOp->getOperand(2)); in readThreadBoundsForKernel() local 6226 int32_t UB = cast<ConstantInt>(OldVal->getValue())->getZExtValue(); in readThreadBoundsForKernel() 7890 LoadInst *OldVal = in emitAtomicUpdate() local 7892 OldVal->setAtomic(AO); in emitAtomicUpdate() 7910 llvm::PHINode *PHI = Builder.CreatePHI(OldVal->getType(), 2); in emitAtomicUpdate() 7911 PHI->addIncoming(OldVal, CurBB); in emitAtomicUpdate()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPURegisterBankInfo.cpp | 873 auto OldVal = WaterfalledRegMap.find(OldReg); in executeInWaterfallLoop() local 874 if (OldVal != WaterfalledRegMap.end()) { in executeInWaterfallLoop() 875 Op.setReg(OldVal->second); in executeInWaterfallLoop()
|
H A D | SIISelLowering.cpp | 16588 AtomicRMWInst *OldVal = in emitExpandAtomicRMW() local 16594 OldVal->setMetadata(P.first, P.second); in emitExpandAtomicRMW() 16595 return OldVal; in emitExpandAtomicRMW()
|
/freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
H A D | Core.h | 1985 void LLVMReplaceAllUsesWith(LLVMValueRef OldVal, LLVMValueRef NewVal);
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Core.cpp | 1069 void LLVMReplaceAllUsesWith(LLVMValueRef OldVal, LLVMValueRef NewVal) { in LLVMReplaceAllUsesWith() argument 1070 unwrap(OldVal)->replaceAllUsesWith(unwrap(NewVal)); in LLVMReplaceAllUsesWith()
|