| /freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | X86CompressEVEXTablesEmitter.cpp | 117 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 D | CloneFunction.cpp | 59 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 D | CallPromotionUtils.cpp | 120 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 D | SCCPSolver.cpp | 171 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 D | LibCallsShrinkWrap.cpp | 472 Instruction *NewInst = in shrinkWrapCI() local 474 BasicBlock *CallBB = NewInst->getParent(); in shrinkWrapCI()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86LowerAMXType.cpp | 252 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 D | XCoreLowerThreadLocal.cpp | 92 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 D | NVPTXLowerArgs.cpp | 208 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 D | BPFAdjustOpt.cpp | 131 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 D | BPFAbstractMemberAccess.cpp | 111 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 D | IndirectCallPromotion.cpp | 256 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 D | LoopDistribute.cpp | 216 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 D | LowerMatrixIntrinsics.cpp | 803 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 D | SimpleLoopUnswitch.cpp | 297 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 D | JumpThreading.cpp | 2024 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 D | Reassociate.cpp | 2192 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 D | HexagonCommonGEP.cpp | 1086 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 D | MipsInstructionSelector.cpp | 260 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 D | ExpandVectorPredication.cpp | 102 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 D | VectorUtils.cpp | 1474 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 D | HexagonAsmParser.cpp | 535 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 D | CGCUDANV.cpp | 494 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 D | VectorUtils.h | 539 void addMetadata(InstTy *NewInst) const;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | WholeProgramDevirt.cpp | 1211 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 D | VectorCombine.cpp | 1402 if (auto *NewInst = dyn_cast<Instruction>(NewBO)) { in foldShuffleOfBinops() local 1403 NewInst->copyIRFlags(B0); in foldShuffleOfBinops() 1404 NewInst->andIRFlags(B1); in foldShuffleOfBinops()
|