Home
last modified time | relevance | path

Searched refs:Memset (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DPreISelIntrinsicLowering.cpp364 auto *Memset = cast<MemSetInst>(Inst); in expandMemIntrinsicUses() local
365 Function *ParentFunc = Memset->getFunction(); in expandMemIntrinsicUses()
367 if (shouldExpandMemIntrinsicWithSize(Memset->getLength(), TTI)) { in expandMemIntrinsicUses()
372 expandMemSetAsLoop(Memset); in expandMemIntrinsicUses()
374 Memset->eraseFromParent(); in expandMemIntrinsicUses()
383 auto *Memset = cast<MemSetInst>(Inst); in expandMemIntrinsicUses() local
384 if (isa<ConstantInt>(Memset->getLength())) in expandMemIntrinsicUses()
387 expandMemSetAsLoop(Memset); in expandMemIntrinsicUses()
389 Memset->eraseFromParent(); in expandMemIntrinsicUses()
393 auto *Memset = cast<MemSetPatternInst>(Inst); in expandMemIntrinsicUses() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp967 void llvm::expandMemSetAsLoop(MemSetInst *Memset) { in expandMemSetAsLoop() argument
968 createMemSetLoop(/* InsertBefore */ Memset, in expandMemSetAsLoop()
969 /* DstAddr */ Memset->getRawDest(), in expandMemSetAsLoop()
970 /* CopyLen */ Memset->getLength(), in expandMemSetAsLoop()
971 /* SetValue */ Memset->getValue(), in expandMemSetAsLoop()
972 /* Alignment */ Memset->getDestAlign().valueOrOne(), in expandMemSetAsLoop()
973 Memset->isVolatile()); in expandMemSetAsLoop()
976 void llvm::expandMemSetPatternAsLoop(MemSetPatternInst *Memset) { in expandMemSetPatternAsLoop() argument
977 createMemSetLoop(/* InsertBefore=*/Memset, in expandMemSetPatternAsLoop()
978 /* DstAddr=*/Memset->getRawDest(), in expandMemSetPatternAsLoop()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp130 } else if (MemSetInst *Memset = dyn_cast<MemSetInst>(MemCall)) { in runOnFunction() local
131 expandMemSetAsLoop(Memset); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DLoopIdiomRecognize.h33 static bool Memset; member
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp115 bool DisableLIRP::Memset; member in DisableLIRP
120 cl::location(DisableLIRP::Memset), cl::init(false),
201 Memset, enumerator
485 if (!UnorderedAtomic && HasMemset && SplatValue && !DisableLIRP::Memset && in isLegalStore()
490 return LegalStoreKind::Memset; in isLegalStore()
493 !DisableLIRP::Memset && in isLegalStore()
553 case LegalStoreKind::Memset: { in collectStores()
852 if (!HasMemset || DisableLIRP::Memset) in processLoopMemSet()
H A DDeadStoreElimination.cpp2049 auto shouldCreateCalloc = [](CallInst *Malloc, CallInst *Memset) { in tryFoldIntoCalloc() argument
2053 *MemsetBB = Memset->getParent(); in tryFoldIntoCalloc()
2056 auto *Ptr = Memset->getArgOperand(0); in tryFoldIntoCalloc()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsics.td1030 // Memset version that is guaranteed to be inlined.
1041 // Memset variant that writes a given pattern.
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp6662 auto Memset = MIB.buildInstr(AArch64::MOPSMemorySetTaggingPseudo, in selectIntrinsicWithSideEffects() local
6664 Memset.cloneMemRefs(I); in selectIntrinsicWithSideEffects()
6665 constrainSelectedInstRegOperands(*Memset, TII, TRI, RBI); in selectIntrinsicWithSideEffects()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltinsNVPTX.td755 // Memcpy, Memset
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp5729 const auto Memset = cast<MemSetPatternInst>(&Call); in visitIntrinsicCall() local
5730 Check(Memset->getValue()->getType()->isSized(), in visitIntrinsicCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.td544 // Memset[Length][Byte] pseudos.