Home
last modified time | relevance | path

Searched refs:NewInst (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DX86CompressEVEXTablesEmitter.cpp117 bool operator()(const CodeGenInstruction *NewInst) { in operator ()() argument
118 RecognizableInstrBase NewRI(*NewInst); in operator ()()
132 Record *NewOpRec = NewInst->Operands[I].Rec; in operator ()()
195 const CodeGenInstruction *NewInst = nullptr; in run() local
199 NewInst = &Target.getInstruction(NewRec); in run()
202 NewInst = &Target.getInstruction(NewRec); in run()
207 NewInst = &TempInst; in run()
215 NewInst = *Match; in run()
218 if (!NewInst) in run()
221 Table.push_back(std::make_pair(Inst, NewInst)); in run()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp59 Instruction *NewInst = I.clone(); in CloneBasicBlock() local
64 NewInst->cloneDebugInfoFrom(&I); in CloneBasicBlock()
402 Instruction *NewInst = nullptr; in cloneInstruction() local
465 if (!NewInst) in cloneInstruction()
466 NewInst = II->clone(); in cloneInstruction()
467 return NewInst; in cloneInstruction()
539 if (!isa<PHINode>(NewInst) && !isa<DbgVariableIntrinsic>(NewInst)) { in CloneBlock()
540 RemapInstruction(NewInst, VMap, in CloneBlock()
556 NewInst->eraseFromParent(); in CloneBlock()
570 CloneDbgRecordsToHere(NewInst, II); in CloneBlock()
[all …]
H A DCallPromotionUtils.cpp120 Phi->addIncoming(NewInst, NewInst->getParent()); in createRetPHINode()
303 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSite() local
304 NewInst->insertBefore(ThenTerm); in versionCallSite()
307 Value *NewRetVal = NewInst; in versionCallSite()
313 NewBitCast->replaceUsesOfWith(OrigInst, NewInst); in versionCallSite()
331 return *NewInst; in versionCallSite()
348 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSite() local
350 NewInst->insertBefore(ThenTerm); in versionCallSite()
356 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSite()
380 return *NewInst; in versionCallSite()
[all …]
H A DSCCPSolver.cpp171 Instruction *NewInst = nullptr; in replaceSignedInst() local
180 NewInst = new ZExtInst(Op0, Inst.getType(), "", &Inst); in replaceSignedInst()
181 NewInst->setNonNeg(); in replaceSignedInst()
189 NewInst = BinaryOperator::CreateLShr(Op0, Inst.getOperand(1), "", &Inst); in replaceSignedInst()
190 NewInst->setIsExact(Inst.isExact()); in replaceSignedInst()
202 NewInst = BinaryOperator::Create(NewOpcode, Op0, Op1, "", &Inst); in replaceSignedInst()
204 NewInst->setIsExact(Inst.isExact()); in replaceSignedInst()
212 assert(NewInst && "Expected replacement instruction"); in replaceSignedInst()
213 NewInst->takeName(&Inst); in replaceSignedInst()
214 InsertedValues.insert(NewInst); in replaceSignedInst()
[all …]
H A DLibCallsShrinkWrap.cpp472 Instruction *NewInst = in shrinkWrapCI() local
474 BasicBlock *CallBB = NewInst->getParent(); in shrinkWrapCI()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp252 Bitcast->replaceAllUsesWith(NewInst); in combineLoadBitcast()
326 Value *NewInst = Builder.CreateIntrinsic( in transformBitcast() local
328 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast()
347 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast()
797 NewInst->moveBefore(&*Iter); in optimizeAMXCastFromPhi()
800 NewInst->moveBefore(&*Iter); in optimizeAMXCastFromPhi()
802 OldPN->setIncomingValue(I, NewInst); in optimizeAMXCastFromPhi()
803 IncValue = NewInst; in optimizeAMXCastFromPhi()
986 Cast->replaceAllUsesWith(NewInst); in combineLoadCast()
1174 AMXCast->replaceAllUsesWith(NewInst); in transformAMXCast()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp92 Instruction *NewInst = CE->getAsInstruction(InsertPos); in replaceConstantExprOp() local
93 PN->setOperand(I, NewInst); in replaceConstantExprOp()
96 Instruction *NewInst = CE->getAsInstruction(Instr); in replaceConstantExprOp() local
97 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp208 Value *NewInst = CloneInstInParamAS(I); in INITIALIZE_PASS_DEPENDENCY() local
210 if (NewInst && NewInst != I.OldInstruction) { in INITIALIZE_PASS_DEPENDENCY()
215 ItemsToConvert.push_back({cast<Instruction>(V), NewInst}); in INITIALIZE_PASS_DEPENDENCY()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp131 auto *NewInst = CallInst::Create(Fn, {Opcode, Op0, ConstOp1}); in adjustICmpToBuiltin() local
132 NewInst->insertBefore(&I); in adjustICmpToBuiltin()
133 Icmp->replaceAllUsesWith(NewInst); in adjustICmpToBuiltin()
H A DBPFAbstractMemberAccess.cpp111 auto *NewInst = CallInst::Create(Fn, {SeqNumVal, Input}); in insertPassThrough() local
112 NewInst->insertBefore(Before); in insertPassThrough()
113 return NewInst; in insertPassThrough()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp256 CallBase &NewInst = in promoteIndirectCall() local
260 setBranchWeights(NewInst, {static_cast<uint32_t>(Count)}); in promoteIndirectCall()
272 return NewInst; in promoteIndirectCall()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDistribute.cpp216 Instruction *NewInst = &Inst; in removeUnusedInsts() local
218 NewInst = cast<Instruction>(VMap[NewInst]); in removeUnusedInsts()
220 assert(!isa<BranchInst>(NewInst) && in removeUnusedInsts()
222 Unused.push_back(NewInst); in removeUnusedInsts()
H A DLowerMatrixIntrinsics.cpp803 auto NewInst = distributeTransposes( in sinkTranspose() local
810 updateShapeAndReplaceAllUsesWith(I, NewInst); in sinkTranspose()
813 return NewInst; in sinkTranspose()
825 auto NewInst = distributeTransposes( in sinkTranspose() local
835 updateShapeAndReplaceAllUsesWith(I, NewInst); in sinkTranspose()
838 return NewInst; in sinkTranspose()
845 auto NewInst = distributeTransposes( in sinkTranspose() local
856 updateShapeAndReplaceAllUsesWith(I, NewInst); in sinkTranspose()
859 return NewInst; in sinkTranspose()
891 updateShapeAndReplaceAllUsesWith(I, NewInst); in liftTranspose()
[all …]
H A DSimpleLoopUnswitch.cpp297 Instruction *NewInst = Inst->clone(); in buildPartialInvariantUnswitchConditionalBranch() local
298 NewInst->insertInto(&BB, BB.end()); in buildPartialInvariantUnswitchConditionalBranch()
299 RemapInstruction(NewInst, VMap, in buildPartialInvariantUnswitchConditionalBranch()
301 VMap[Val] = NewInst; in buildPartialInvariantUnswitchConditionalBranch()
320 MSSAU->createMemoryAccessInBB(NewInst, DefiningAccess, in buildPartialInvariantUnswitchConditionalBranch()
321 NewInst->getParent(), in buildPartialInvariantUnswitchConditionalBranch()
H A DJumpThreading.cpp2024 auto RetargetDbgValueIfPossible = [&](Instruction *NewInst) -> bool { in cloneInstructions() argument
2025 auto DbgInstruction = dyn_cast<DbgValueInst>(NewInst); in cloneInstructions()
2085 auto CloneAndRemapDbgInfo = [&](Instruction *NewInst, Instruction *From) { in cloneInstructions() argument
2086 auto DPVRange = NewInst->cloneDebugInfoFrom(From); in cloneInstructions()
H A DReassociate.cpp2192 Value *NewInst = IsFSub ? Builder.CreateFAddFMF(OtherOp, Op, I) in canonicalizeNegFPConstantsForOp() local
2194 I->replaceAllUsesWith(NewInst); in canonicalizeNegFPConstantsForOp()
2196 return dyn_cast<Instruction>(NewInst); in canonicalizeNegFPConstantsForOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCommonGEP.cpp1086 GetElementPtrInst *NewInst = nullptr; in fabricateGEP() local
1112 NewInst = GetElementPtrInst::Create(InpTy, Input, IdxList, "cgep", &*At); in fabricateGEP()
1113 NewInst->setIsInBounds(RN->Flags & GepNode::InBounds); in fabricateGEP()
1114 LLVM_DEBUG(dbgs() << "new GEP: " << *NewInst << '\n'); in fabricateGEP()
1116 Input = NewInst; in fabricateGEP()
1121 return NewInst; in fabricateGEP()
1201 Value *NewInst = fabricateGEP(NA, InsertAt, LastB); in materialize() local
1210 CN->BaseVal = NewInst; in materialize()
1222 U->set(NewInst); in materialize()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstructionSelector.cpp260 MachineInstr *NewInst = in buildUnalignedStore() local
266 if (!constrainSelectedInstRegOperands(*NewInst, TII, TRI, RBI)) in buildUnalignedStore()
274 MachineInstr *NewInst = in buildUnalignedLoad() local
281 if (!constrainSelectedInstRegOperands(*NewInst, TII, TRI, RBI)) in buildUnalignedLoad()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp102 auto *NewInst = dyn_cast<Instruction>(&NewVal); in transferDecorations() local
103 if (!NewInst || !isa<FPMathOperator>(NewVal)) in transferDecorations()
110 NewInst->setFastMathFlags(OldFMOp->getFastMathFlags()); in transferDecorations()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp1474 void InterleaveGroup<InstT>::addMetadata(InstT *NewInst) const { in addMetadata()
1480 void InterleaveGroup<Instruction>::addMetadata(Instruction *NewInst) const { in addMetadata()
1484 propagateMetadata(NewInst, VL); in addMetadata()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp535 MCInst NewInst; in canonicalizeImmediates() local
536 NewInst.setOpcode(MCI.getOpcode()); in canonicalizeImmediates()
540 NewInst.addOperand(MCOperand::createExpr(HexagonMCExpr::create( in canonicalizeImmediates()
546 NewInst.addOperand(I); in canonicalizeImmediates()
548 MCI = NewInst; in canonicalizeImmediates()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp494 auto *NewInst = CE->getAsInstruction(I); in replaceManagedVar() local
495 NewInst->replaceUsesOfWith(OldV, NewV); in replaceManagedVar()
497 NewV = NewInst; in replaceManagedVar()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h539 void addMetadata(InstTy *NewInst) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp1211 CallBase &NewInst = versionCallSite(CB, Callee, Weights); in applySingleImplDevirt() local
1212 NewInst.setCalledOperand(Callee); in applySingleImplDevirt()
1216 NewInst.setMetadata(LLVMContext::MD_prof, nullptr); in applySingleImplDevirt()
1217 NewInst.setMetadata(LLVMContext::MD_callees, nullptr); in applySingleImplDevirt()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp1402 if (auto *NewInst = dyn_cast<Instruction>(NewBO)) { in foldShuffleOfBinops() local
1403 NewInst->copyIRFlags(B0); in foldShuffleOfBinops()
1404 NewInst->andIRFlags(B1); in foldShuffleOfBinops()

12