Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSSAUpdaterBulk.cpp214 Value *OldVal = U->get(); in RewriteAllUses() local
215 assert(OldVal && "Invalid use!"); in RewriteAllUses()
217 if (OldVal != V && OldVal->hasValueHandle()) in RewriteAllUses()
218 ValueHandleBase::ValueIsRAUWd(OldVal, V); in RewriteAllUses()
219 LLVM_DEBUG(dbgs() << "SSAUpdater: replacing " << *OldVal << " with " << *V in RewriteAllUses()
H A DLocal.cpp935 static Value *selectIncomingValueForBlock(Value *OldVal, BasicBlock *BB, in selectIncomingValueForBlock() argument
937 if (!isa<UndefValue>(OldVal)) { in selectIncomingValueForBlock()
939 IncomingValues.find(BB)->second == OldVal) && in selectIncomingValueForBlock()
942 IncomingValues.insert(std::make_pair(BB, OldVal)); in selectIncomingValueForBlock()
943 return OldVal; in selectIncomingValueForBlock()
949 return OldVal; in selectIncomingValueForBlock()
1086 Value *OldVal = PN->removeIncomingValue(BB, false); in redirectValuesFromPredecessorsToPhi() local
1087 assert(OldVal && "No entry in PHI for Pred BB!"); in redirectValuesFromPredecessorsToPhi()
1104 if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) { in redirectValuesFromPredecessorsToPhi()
1105 PHINode *OldValPN = cast<PHINode>(OldVal); in redirectValuesFromPredecessorsToPhi()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h275 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 DCurrentSourceLocExprScope.h52 : 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 DMipsExpandPseudo.cpp244 Register OldVal = I->getOperand(2).getReg(); in expandAtomicCmpSwap() local
279 .addReg(Dest, RegState::Kill).addReg(OldVal).addMBB(exitMBB); in expandAtomicCmpSwap()
432 Register OldVal = I->getOperand(6).getReg(); in expandAtomicBinOpSubword() local
474 BuildMI(loopMBB, DL, TII->get(LL), OldVal).addReg(Ptr).addImm(0); in expandAtomicBinOpSubword()
480 .addReg(OldVal) in expandAtomicBinOpSubword()
500 .addReg(OldVal) in expandAtomicBinOpSubword()
619 .addReg(OldVal) in expandAtomicBinOpSubword()
637 .addReg(OldVal) in expandAtomicBinOpSubword()
652 .addReg(OldVal) in expandAtomicBinOpSubword()
674 BuildMI(sinkMBB, DL, TII->get(Mips::AND), Dest).addReg(OldVal).addReg(Mask); in expandAtomicBinOpSubword()
[all …]
H A DMipsISelLowering.cpp1672 Register OldVal = MI.getOperand(0).getReg(); in emitAtomicBinary() local
1675 Register Scratch = RegInfo.createVirtualRegister(RegInfo.getRegClass(OldVal)); in emitAtomicBinary()
1722 .addReg(OldVal, RegState::Define | RegState::EarlyClobber) in emitAtomicBinary()
1729 RegInfo.createVirtualRegister(RegInfo.getRegClass(OldVal)); in emitAtomicBinary()
1981 Register OldVal = MI.getOperand(2).getReg(); in emitAtomicCmpSwap() local
1993 Register OldValCopy = MRI.createVirtualRegister(MRI.getRegClass(OldVal)); in emitAtomicCmpSwap()
1997 BuildMI(*BB, II, DL, TII->get(Mips::COPY), OldValCopy).addReg(OldVal); in emitAtomicCmpSwap()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.h147 void updateIfExistAssignPtrTypeInstr(Value *OldVal, Value *NewVal, in updateIfExistAssignPtrTypeInstr() argument
149 if (CallInst *CI = findAssignPtrTypeInstr(OldVal)) { in updateIfExistAssignPtrTypeInstr()
151 AssignPtrTypeInstr.erase(OldVal); in updateIfExistAssignPtrTypeInstr()
190 void updateIfExistDeducedElementType(Value *OldVal, Value *NewVal, in updateIfExistDeducedElementType() argument
192 if (Type *Ty = findDeducedElementType(OldVal)) { in updateIfExistDeducedElementType()
194 DeducedElTys.erase(OldVal); in updateIfExistDeducedElementType()
/freebsd/contrib/llvm-project/compiler-rt/lib/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)
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp643 SVal OldVal = State->getSVal(Iterator, C.getLocationContext()); in handlePtrIncrOrDecr() local
645 const IteratorPosition *OldPos = getIteratorPosition(State, OldVal); in handlePtrIncrOrDecr()
651 NewVal = State->getLValue(ElementType, Offset, OldVal); in handlePtrIncrOrDecr()
655 NewVal = State->getLValue(ElementType, NegatedOffset, OldVal); in handlePtrIncrOrDecr()
661 auto AdvancedState = advancePosition(State, OldVal, OK, Offset); in handlePtrIncrOrDecr()
663 const IteratorPosition *NewPos = getIteratorPosition(AdvancedState, OldVal); in handlePtrIncrOrDecr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGAtomic.cpp508 llvm::Value *OldVal, in EmitPostAtomicMinMax() argument
523 llvm::Value *Cmp = Builder.CreateICmp(Pred, OldVal, RHS, "tst"); in EmitPostAtomicMinMax()
524 return Builder.CreateSelect(Cmp, OldVal, RHS, "newval"); in EmitPostAtomicMinMax()
1822 auto *OldVal = CGF.Builder.CreateLoad(ExpectedAddr); in EmitAtomicUpdateLibcall() local
1823 CGF.Builder.CreateStore(OldVal, DesiredAddr); in EmitAtomicUpdateLibcall()
1843 auto *OldVal = EmitAtomicLoadOp(Failure, IsVolatile, /*CmpXchg=*/true); in EmitAtomicUpdateOp() local
1849 llvm::PHINode *PHI = CGF.Builder.CreatePHI(OldVal->getType(), in EmitAtomicUpdateOp()
1851 PHI->addIncoming(OldVal, CurBB); in EmitAtomicUpdateOp()
1913 auto *OldVal = CGF.Builder.CreateLoad(ExpectedAddr); in EmitAtomicUpdateLibcall() local
1914 CGF.Builder.CreateStore(OldVal, DesiredAddr); in EmitAtomicUpdateLibcall()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp1149 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in expandPartwordCmpXchg() local
1162 Value *OldVal_MaskOut = Builder.CreateAnd(OldVal, PMV.Inv_Mask); in expandPartwordCmpXchg()
1172 Value *FinalOldVal = extractMaskedValue(Builder, OldVal, PMV); in expandPartwordCmpXchg()
1234 Value *OldVal = TLI->emitMaskedAtomicCmpXchgIntrinsic( in expandAtomicCmpXchgToMaskedIntrinsic() local
1237 Value *FinalOldVal = extractMaskedValue(Builder, OldVal, PMV); in expandAtomicCmpXchgToMaskedIntrinsic()
1241 CmpVal_Shifted, Builder.CreateAnd(OldVal, PMV.Mask), "Success"); in expandAtomicCmpXchgToMaskedIntrinsic()
1323 Value *OldVal = Builder.CreateExtractValue(NewCI, 0); in convertCmpXchgToIntegerType() local
1326 OldVal = Builder.CreateIntToPtr(OldVal, CI->getCompareOperand()->getType()); in convertCmpXchgToIntegerType()
1329 Res = Builder.CreateInsertValue(Res, OldVal, 0); in convertCmpXchgToIntegerType()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp172 uint64_t OldVal; in RemoveMapping() local
177 OldVal = 0; in RemoveMapping()
180 OldVal = I->second; in RemoveMapping()
184 return OldVal; in RemoveMapping()
257 uint64_t OldVal = CurVal; in updateGlobalMapping() local
270 return OldVal; in updateGlobalMapping()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp784 Value *OldVal = C; in instrumentAtomic() local
787 OldVal = IRB.CreateIntToPtr(C, OrigOldValTy); in instrumentAtomic()
791 IRB.CreateInsertValue(PoisonValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()
H A DInstrProfiling.cpp474 LoadInst *OldVal = Builder.CreateLoad(Ty, Addr, "pgocount.promoted"); in doExtraRewritesBeforeFinalDeletion() local
475 auto *NewVal = Builder.CreateAdd(OldVal, LiveInValue); in doExtraRewritesBeforeFinalDeletion()
482 LoopToCandidates[TargetLoop].emplace_back(OldVal, NewStore); in doExtraRewritesBeforeFinalDeletion()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypes.cpp687 SDValue OldVal(N, i); in ReplaceValueWith() local
695 auto OldValId = getTableId(OldVal); in ReplaceValueWith()
697 DAG.ReplaceAllUsesOfValueWith(OldVal, NewVal); in ReplaceValueWith()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp8893 LoadInst *OldVal = Builder.CreateLoad(XElemTy, X.Var, "omp.atomic.read"); in createAtomicRead() local
8894 OldVal->setAtomic(AO); in createAtomicRead()
8895 const DataLayout &LoadDL = OldVal->getModule()->getDataLayout(); in createAtomicRead()
8897 LoadDL.getTypeStoreSize(OldVal->getPointerOperand()->getType()); in createAtomicRead()
8899 &Builder, XElemTy, LoadSize * 8, LoadSize * 8, OldVal->getAlign(), in createAtomicRead()
8900 OldVal->getAlign(), true /* UseLibcall */, AllocaIP, X.Var); in createAtomicRead()
8903 OldVal->eraseFromParent(); in createAtomicRead()
8940 LoadInst *OldVal = Builder.CreateLoad(XElemTy, X.Var, "omp.atomic.read"); in createAtomicWrite() local
8941 const DataLayout &LoadDL = OldVal->getModule()->getDataLayout(); in createAtomicWrite()
8943 LoadDL.getTypeStoreSize(OldVal->getPointerOperand()->getType()); in createAtomicWrite()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp1531 llvm::APInt OldVal = Val; in GetIntegerValue() local
1549 OldVal = Val; in GetIntegerValue()
1553 OverflowOccurred |= Val.udiv(RadixVal) != OldVal; in GetIntegerValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp1085 Value *OldVal, Value *NewVal) { in replaceOperandIfSame() argument
1087 if (U.get() == OldVal) { in replaceOperandIfSame()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessor.h1830 bool OldVal = DisableMacroExpansion; in LexUnexpandedToken() local
1836 DisableMacroExpansion = OldVal; in LexUnexpandedToken()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DPPC.cpp1165 Value *OldVal = Builder.CreateLoad(OldValAddr); in EmitPPCBuiltinExpr() local
1170 LV, RValue::get(OldVal), RValue::get(Op2), E->getExprLoc(), in EmitPPCBuiltinExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp9901 Register OldVal = MRI.createVirtualRegister(&SystemZ::GR32BitRegClass); in emitAtomicLoadBinary() local
9928 BuildMI(MBB, DL, TII->get(SystemZ::PHI), OldVal) in emitAtomicLoadBinary()
9932 .addReg(OldVal).addReg(BitShift).addImm(0); in emitAtomicLoadBinary()
9954 .addReg(OldVal) in emitAtomicLoadBinary()
9996 Register OldVal = MRI.createVirtualRegister(&SystemZ::GR32BitRegClass); in emitAtomicLoadMinMax() local
10023 BuildMI(MBB, DL, TII->get(SystemZ::PHI), OldVal) in emitAtomicLoadMinMax()
10027 .addReg(OldVal).addReg(BitShift).addImm(0); in emitAtomicLoadMinMax()
10058 .addReg(OldVal) in emitAtomicLoadMinMax()
10101 Register OldVal = MRI.createVirtualRegister(RC); in emitAtomicCmpSwapW() local
10139 BuildMI(MBB, DL, TII->get(SystemZ::PHI), OldVal) in emitAtomicCmpSwapW()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.cpp873 auto OldVal = WaterfalledRegMap.find(OldReg); in executeInWaterfallLoop() local
874 if (OldVal != WaterfalledRegMap.end()) { in executeInWaterfallLoop()
875 Op.setReg(OldVal->second); in executeInWaterfallLoop()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h2045 LLVM_C_ABI void LLVMReplaceAllUsesWith(LLVMValueRef OldVal,
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp1072 void LLVMReplaceAllUsesWith(LLVMValueRef OldVal, LLVMValueRef NewVal) { in LLVMReplaceAllUsesWith() argument
1073 unwrap(OldVal)->replaceAllUsesWith(unwrap(NewVal)); in LLVMReplaceAllUsesWith()

12