| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 430 auto *NewSI = SelectInst::Create(SI->getCondition(), TrueValue, FalseValue, in replace() local 432 IC.InsertNewInstWith(NewSI, SI->getIterator()); in replace() 433 NewSI->takeName(SI); in replace() 434 WorkMap[SI] = NewSI; in replace() 1625 StoreInst *NewSI = in mergeStoreIntoSuccessor() local 1628 InsertNewInstBefore(NewSI, BBI); in mergeStoreIntoSuccessor() 1629 NewSI->setDebugLoc(MergedLoc); in mergeStoreIntoSuccessor() 1630 NewSI->mergeDIAssignID({&SI, OtherStore}); in mergeStoreIntoSuccessor() 1635 NewSI->setAAMetadata(AATags.merge(OtherStore->getAAMetadata())); in mergeStoreIntoSuccessor()
|
| H A D | InstCombineSelect.cpp | 291 Value *NewSI = in foldSelectOpOp() local 294 return CastInst::Create(Instruction::CastOps(TI->getOpcode()), NewSI, in foldSelectOpOp() 467 Value *NewSI = Builder.CreateSelect(Cond, OtherOpT, OtherOpF, in foldSelectOpOp() local 469 Value *Op0 = MatchIsOpZero ? MatchOp : NewSI; in foldSelectOpOp() 470 Value *Op1 = MatchIsOpZero ? NewSI : MatchOp; in foldSelectOpOp() 4139 Value *NewSI = in visitSelectInst() local 4141 return GetElementPtrInst::Create(ElementType, Ptr, NewSI, in visitSelectInst() 4193 Value *NewSI = Builder.CreateSelect(Cmp, LHS, RHS, SI.getName(), &SI); in visitSelectInst() local 4195 return replaceInstUsesWith(SI, NewSI); in visitSelectInst() 4197 Value *NewCast = Builder.CreateCast(CastOp, NewSI, SelType); in visitSelectInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LICM.cpp | 1802 StoreInst *NewSI = new StoreInst(LiveInValue, Ptr, InsertPos); in insertStoresInLoopExitBlocks() local 1804 NewSI->setOrdering(AtomicOrdering::Unordered); in insertStoresInLoopExitBlocks() 1805 NewSI->setAlignment(Alignment); in insertStoresInLoopExitBlocks() 1806 NewSI->setDebugLoc(DL); in insertStoresInLoopExitBlocks() 1813 NewSI->mergeDIAssignID(Uses); in insertStoresInLoopExitBlocks() 1815 NewSI->getMetadata(LLVMContext::MD_DIAssignID)); in insertStoresInLoopExitBlocks() 1819 NewSI->setMetadata(LLVMContext::MD_DIAssignID, NewID); in insertStoresInLoopExitBlocks() 1823 NewSI->setAAMetadata(AATags); in insertStoresInLoopExitBlocks() 1829 NewSI, nullptr, NewSI->getParent(), MemorySSA::Beginning); in insertStoresInLoopExitBlocks() 1832 MSSAU.createMemoryAccessAfter(NewSI, nullptr, MSSAInsertPoint); in insertStoresInLoopExitBlocks()
|
| H A D | SROA.cpp | 3161 StoreInst *NewSI; in visitStoreInst() local 3169 NewSI = in visitStoreInst() 3174 NewSI = in visitStoreInst() 3177 NewSI->copyMetadata(SI, {LLVMContext::MD_mem_parallel_loop_access, in visitStoreInst() 3180 NewSI->setAAMetadata(AATags.adjustForAccess(NewBeginOffset - BeginOffset, in visitStoreInst() 3183 NewSI->setAtomic(SI.getOrdering(), SI.getSyncScopeID()); in visitStoreInst() 3184 if (NewSI->isAtomic()) in visitStoreInst() 3185 NewSI->setAlignment(SI.getAlign()); in visitStoreInst() 3188 NewSI, NewSI->getPointerOperand(), in visitStoreInst() 3189 NewSI->getValueOperand(), DL); in visitStoreInst() [all …]
|
| H A D | SimpleLoopUnswitch.cpp | 875 auto *NewSI = SwitchInst::Create(LoopCond, NewPH, ExitCases.size(), OldPH); in unswitchTrivialSwitch() local 876 NewSI->setDebugLoc(SIW->getDebugLoc()); in unswitchTrivialSwitch() 877 SwitchInstProfUpdateWrapper NewSIW(*NewSI); in unswitchTrivialSwitch() 2443 SwitchInst *NewSI = cast<SwitchInst>(NewTI); in unswitchNontrivialInvariants() local 2444 assert(NewSI->getDefaultDest() == RetainedSuccBB && in unswitchNontrivialInvariants() 2446 for (const auto &Case : NewSI->cases()) in unswitchNontrivialInvariants()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AtomicExpandPass.cpp | 614 StoreInst *NewSI = Builder.CreateStore(NewVal, Addr); in convertAtomicStoreToIntegerType() local 615 NewSI->setAlignment(SI->getAlign()); in convertAtomicStoreToIntegerType() 616 NewSI->setVolatile(SI->isVolatile()); in convertAtomicStoreToIntegerType() 617 NewSI->setAtomic(SI->getOrdering(), SI->getSyncScopeID()); in convertAtomicStoreToIntegerType() 618 LLVM_DEBUG(dbgs() << "Replaced " << *SI << " with " << *NewSI << "\n"); in convertAtomicStoreToIntegerType() 620 return NewSI; in convertAtomicStoreToIntegerType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanRecipes.cpp | 3259 Instruction *NewSI = nullptr; in execute() local 3261 NewSI = Builder.CreateMaskedScatter(StoredVal, Addr, Alignment, Mask); in execute() 3263 NewSI = Builder.CreateMaskedStore(StoredVal, Addr, Alignment, Mask); in execute() 3265 NewSI = Builder.CreateAlignedStore(StoredVal, Addr, Alignment); in execute() 3266 applyMetadata(*NewSI); in execute() 3284 CallInst *NewSI = nullptr; in execute() local 3299 NewSI = Builder.CreateIntrinsic(Type::getVoidTy(EVL->getContext()), in execute() 3303 NewSI = Builder.CreateIntrinsic(Type::getVoidTy(EVL->getContext()), in execute() 3307 NewSI->addParamAttr( in execute() 3308 1, Attribute::getWithAlignment(NewSI->getContext(), Alignment)); in execute() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUSwLowerLDS.cpp | 702 StoreInst *NewSI = IRB.CreateAlignedStore( in translateLDSMemoryOperationsToGlobalMemory() local 704 NewSI->setAtomic(SI->getOrdering(), SI->getSyncScopeID()); in translateLDSMemoryOperationsToGlobalMemory() 705 AsanInfo.Instructions.insert(NewSI); in translateLDSMemoryOperationsToGlobalMemory() 706 SI->replaceAllUsesWith(NewSI); in translateLDSMemoryOperationsToGlobalMemory()
|
| H A D | AMDGPULowerBufferFatPointers.cpp | 1155 auto *NewSI = cast<StoreInst>(OrigSI.clone()); in visitStoreImpl() local 1156 NewSI->setAlignment(commonAlignment(OrigSI.getAlign(), ByteOffset)); in visitStoreImpl() 1157 IRB.Insert(NewSI); in visitStoreImpl() 1158 NewSI->setOperand(0, DataSlice); in visitStoreImpl() 1159 NewSI->setOperand(1, NewPtr); in visitStoreImpl() 1160 NewSI->setAAMetadata(AANodes.adjustForAccess(ByteOffset, StorableType, DL)); in visitStoreImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Instruction.cpp | 334 if (auto *NewSI = dyn_cast<llvm::SelectInst>(NewV)) in create() local 335 return Ctx.createSelectInst(NewSI); in create() 432 auto *NewSI = Builder.CreateAlignedStore(V->Val, Ptr->Val, Align, IsVolatile); in create() local 433 auto *NewSBI = Ctx.createStoreInst(NewSI); in create()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 1368 SwitchInst *NewSI = Builder.CreateSwitch(CV, PredDefault, PredCases.size()); in performValueComparisonIntoPredecessorFolding() local 1369 NewSI->setDebugLoc(PTI->getDebugLoc()); in performValueComparisonIntoPredecessorFolding() 1371 NewSI->addCase(V.Value, V.Dest); in performValueComparisonIntoPredecessorFolding() 1379 setBranchWeights(NewSI, MDWeights, /*IsExpected=*/false); in performValueComparisonIntoPredecessorFolding() 1388 for (unsigned i = 0, e = NewSI->getNumSuccessors(); i != e; ++i) in performValueComparisonIntoPredecessorFolding() 1389 if (NewSI->getSuccessor(i) == BB) { in performValueComparisonIntoPredecessorFolding() 1400 NewSI->setSuccessor(i, InfLoopBlock); in performValueComparisonIntoPredecessorFolding()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 970 auto *NewSI = new StoreInst( in OptimizeGlobalAddressOfAllocation() local 975 NewSI->setDebugLoc(SI->getDebugLoc()); in OptimizeGlobalAddressOfAllocation()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplateInstantiateDecl.cpp | 5767 TypeSourceInfo *NewSI = IR.TransformType(Function->getTypeSourceInfo()); in InstantiateFunctionDefinition() local 5768 assert(NewSI && "Type Transform failed?"); in InstantiateFunctionDefinition() 5769 Function->setType(NewSI->getType()); in InstantiateFunctionDefinition() 5770 Function->setTypeSourceInfo(NewSI); in InstantiateFunctionDefinition()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemorySanitizer.cpp | 1396 [[maybe_unused]] StoreInst *NewSI = in materializeStores() local 1398 LLVM_DEBUG(dbgs() << " STORE: " << *NewSI << "\n"); in materializeStores()
|