/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | X86InstrMappingEmitter.cpp | 128 bool operator()(const CodeGenInstruction *NewInst) { in operator ()() argument 129 RecognizableInstrBase NewRI(*NewInst); in operator ()() 142 Record *NewOpRec = NewInst->Operands[I].Rec; in operator ()() 217 const CodeGenInstruction *NewInst = nullptr; in emitCompressEVEXTable() local 221 NewInst = &Target.getInstruction(NewRec); in emitCompressEVEXTable() 224 NewInst = &Target.getInstruction(NewRec); in emitCompressEVEXTable() 234 NewInst = *Match; in emitCompressEVEXTable() 237 if (!NewInst) in emitCompressEVEXTable() 240 Table.push_back(std::pair(Inst, NewInst)); in emitCompressEVEXTable() 241 auto Predicates = NewInst->TheDef->getValueAsListOfDefs("Predicates"); in emitCompressEVEXTable() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CallPromotionUtils.cpp | 111 static void createRetPHINode(Instruction *OrigInst, Instruction *NewInst, in createRetPHINode() argument 123 Phi->addIncoming(NewInst, NewInst->getParent()); in createRetPHINode() 299 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSiteWithCond() local 300 NewInst->insertBefore(ThenTerm); in versionCallSiteWithCond() 303 Value *NewRetVal = NewInst; in versionCallSiteWithCond() 309 NewBitCast->replaceUsesOfWith(OrigInst, NewInst); in versionCallSiteWithCond() 327 return *NewInst; in versionCallSiteWithCond() 344 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSiteWithCond() local 346 NewInst->insertBefore(ThenTerm); in versionCallSiteWithCond() 352 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSiteWithCond() [all …]
|
H A D | CloneFunction.cpp | 61 Instruction *NewInst = I.clone(); in CloneBasicBlock() local 63 NewInst->setName(I.getName() + NameSuffix); in CloneBasicBlock() 65 NewInst->insertBefore(*NewBB, NewBB->end()); in CloneBasicBlock() 66 NewInst->cloneDebugInfoFrom(&I); in CloneBasicBlock() 68 VMap[&I] = NewInst; // Add instruction map to value. in CloneBasicBlock() 392 Instruction *NewInst = nullptr; in cloneInstruction() local 452 NewInst = CallInst::Create(IFn, Args, OldInst.getName() + ".strict"); in cloneInstruction() 455 if (!NewInst) in cloneInstruction() 456 NewInst = II->clone(); in cloneInstruction() 457 return NewInst; in cloneInstruction() [all …]
|
H A D | SCCPSolver.cpp | 184 Instruction *NewInst = nullptr; in replaceSignedInst() local 192 NewInst = CastInst::Create(Inst.getOpcode() == Instruction::SExt in replaceSignedInst() 196 NewInst->setNonNeg(); in replaceSignedInst() 204 NewInst = BinaryOperator::CreateLShr(Op0, Inst.getOperand(1), "", Inst.getIterator()); in replaceSignedInst() 205 NewInst->setIsExact(Inst.isExact()); in replaceSignedInst() 217 NewInst = BinaryOperator::Create(NewOpcode, Op0, Op1, "", Inst.getIterator()); in replaceSignedInst() 219 NewInst->setIsExact(Inst.isExact()); in replaceSignedInst() 227 assert(NewInst && "Expected replacement instruction"); in replaceSignedInst() 228 NewInst->takeName(&Inst); in replaceSignedInst() 229 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/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreLowerThreadLocal.cpp | 93 Instruction *NewInst = CE->getAsInstruction(); in replaceConstantExprOp() local 94 NewInst->insertBefore(*PredBB, InsertPos); in replaceConstantExprOp() 95 PN->setOperand(I, NewInst); in replaceConstantExprOp() 98 Instruction *NewInst = CE->getAsInstruction(); in replaceConstantExprOp() local 99 NewInst->insertBefore(*Instr->getParent(), Instr->getIterator()); in replaceConstantExprOp() 100 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86LowerAMXType.cpp | 257 Value *NewInst = Builder.CreateIntrinsic(Intrinsic::x86_tileloadd64_internal, in combineLoadBitcast() local 259 Bitcast->replaceAllUsesWith(NewInst); in combineLoadBitcast() 333 Value *NewInst = Builder.CreateIntrinsic( in transformBitcast() local 335 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast() 353 Value *NewInst = Builder.CreateLoad(Bitcast->getType(), AllocaAddr); in transformBitcast() local 354 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast() 801 Instruction *NewInst = Builder.CreateIntrinsic( in optimizeAMXCastFromPhi() local 803 NewInst->moveBefore(&*Iter); in optimizeAMXCastFromPhi() 804 NewInst = Builder.CreateIntrinsic(Intrinsic::x86_cast_tile_to_vector, in optimizeAMXCastFromPhi() 805 {IncValue->getType()}, {NewInst}); in optimizeAMXCastFromPhi() [all …]
|
/freebsd/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/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXLowerArgs.cpp | 297 Value *NewInst = CloneInstInParamAS(I); in INITIALIZE_PASS_DEPENDENCY() local 299 if (NewInst && NewInst != I.OldInstruction) { in INITIALIZE_PASS_DEPENDENCY() 304 ItemsToConvert.push_back({&U, cast<Instruction>(U.getUser()), NewInst}); in INITIALIZE_PASS_DEPENDENCY()
|
/freebsd/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 | 811 auto NewInst = distributeTransposes( in sinkTranspose() local 818 updateShapeAndReplaceAllUsesWith(I, NewInst); in sinkTranspose() 821 return NewInst; in sinkTranspose() 833 auto NewInst = distributeTransposes( in sinkTranspose() local 843 updateShapeAndReplaceAllUsesWith(I, NewInst); in sinkTranspose() 846 return NewInst; in sinkTranspose() 853 auto NewInst = distributeTransposes( in sinkTranspose() local 864 updateShapeAndReplaceAllUsesWith(I, NewInst); in sinkTranspose() 867 return NewInst; in sinkTranspose() 897 Instruction *NewInst = Builder.CreateMatrixTranspose(M, C->getZExtValue(), in liftTranspose() local [all …]
|
H A D | SimpleLoopUnswitch.cpp | 299 Instruction *NewInst = Inst->clone(); in buildPartialInvariantUnswitchConditionalBranch() local 300 NewInst->insertInto(&BB, BB.end()); in buildPartialInvariantUnswitchConditionalBranch() 301 RemapInstruction(NewInst, VMap, in buildPartialInvariantUnswitchConditionalBranch() 303 VMap[Val] = NewInst; in buildPartialInvariantUnswitchConditionalBranch() 322 MSSAU->createMemoryAccessInBB(NewInst, DefiningAccess, in buildPartialInvariantUnswitchConditionalBranch() 323 NewInst->getParent(), in buildPartialInvariantUnswitchConditionalBranch()
|
H A D | JumpThreading.cpp | 2013 auto RetargetDbgValueIfPossible = [&](Instruction *NewInst) -> bool { in cloneInstructions() argument 2014 auto DbgInstruction = dyn_cast<DbgValueInst>(NewInst); in cloneInstructions() 2074 auto CloneAndRemapDbgInfo = [&](Instruction *NewInst, Instruction *From) { in cloneInstructions() argument 2075 auto DVRRange = NewInst->cloneDebugInfoFrom(From); in cloneInstructions()
|
H A D | Reassociate.cpp | 2109 Value *NewInst = IsFSub ? Builder.CreateFAddFMF(OtherOp, Op, I) in canonicalizeNegFPConstantsForOp() local 2111 I->replaceAllUsesWith(NewInst); in canonicalizeNegFPConstantsForOp() 2113 return dyn_cast<Instruction>(NewInst); in canonicalizeNegFPConstantsForOp()
|
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | IndirectCallPromotion.cpp | 610 CallBase &NewInst = promoteCallWithIfThenElse( in promoteIndirectCall() local 615 setBranchWeights(NewInst, {static_cast<uint32_t>(Count)}, in promoteIndirectCall() 627 return NewInst; in promoteIndirectCall()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsInstructionSelector.cpp | 261 MachineInstr *NewInst = in buildUnalignedStore() local 267 if (!constrainSelectedInstRegOperands(*NewInst, TII, TRI, RBI)) in buildUnalignedStore() 275 MachineInstr *NewInst = in buildUnalignedLoad() local 282 if (!constrainSelectedInstRegOperands(*NewInst, TII, TRI, RBI)) in buildUnalignedLoad()
|
/freebsd/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/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGCUDANV.cpp | 516 auto *NewInst = CE->getAsInstruction(); in replaceManagedVar() local 517 NewInst->insertBefore(*I->getParent(), I->getIterator()); in replaceManagedVar() 518 NewInst->replaceUsesOfWith(OldV, NewV); in replaceManagedVar() 520 NewV = NewInst; in replaceManagedVar()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | VectorUtils.cpp | 1532 void InterleaveGroup<InstT>::addMetadata(InstT *NewInst) const { in addMetadata() 1538 void InterleaveGroup<Instruction>::addMetadata(Instruction *NewInst) const { in addMetadata() 1542 propagateMetadata(NewInst, VL); in addMetadata()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/ |
H A D | HexagonAsmParser.cpp | 542 MCInst NewInst; in canonicalizeImmediates() local 543 NewInst.setOpcode(MCI.getOpcode()); in canonicalizeImmediates() 547 NewInst.addOperand(MCOperand::createExpr(HexagonMCExpr::create( in canonicalizeImmediates() 553 NewInst.addOperand(I); in canonicalizeImmediates() 555 MCI = NewInst; in canonicalizeImmediates()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 1478 if (auto *NewInst = dyn_cast<Instruction>(NewBO)) { in foldShuffleOfBinops() local 1479 NewInst->copyIRFlags(B0); in foldShuffleOfBinops() 1480 NewInst->andIRFlags(B1); in foldShuffleOfBinops() 1584 if (auto *NewInst = dyn_cast<Instruction>(Cast)) { in foldShuffleOfCastops() local 1585 NewInst->copyIRFlags(C0); in foldShuffleOfCastops() 1586 NewInst->andIRFlags(C1); in foldShuffleOfCastops()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | VectorUtils.h | 565 void addMetadata(InstTy *NewInst) const;
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | WholeProgramDevirt.cpp | 1203 CallBase &NewInst = versionCallSite(CB, Callee, Weights); in applySingleImplDevirt() local 1204 NewInst.setCalledOperand(Callee); in applySingleImplDevirt() 1208 NewInst.setMetadata(LLVMContext::MD_prof, nullptr); in applySingleImplDevirt() 1209 NewInst.setMetadata(LLVMContext::MD_callees, nullptr); in applySingleImplDevirt()
|