Home
last modified time | relevance | path

Searched refs:MSI (Results 1 – 10 of 10) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp83 bool processLoopMemSet(MemSetInst *MSI, const SCEV *BECount);
251 if (MemSetInst *MSI = dyn_cast<MemSetInst>(Inst)) { in runOnLoopBlock() local
253 if (!processLoopMemSet(MSI, BECount)) continue; in runOnLoopBlock()
328 processLoopMemSet(MemSetInst *MSI, const SCEV *BECount) { in processLoopMemSet() argument
330 if (MSI->isVolatile() || !isa<ConstantInt>(MSI->getLength())) return false; in processLoopMemSet()
336 Value *Pointer = MSI->getDest(); in processLoopMemSet()
346 uint64_t SizeInBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in processLoopMemSet()
356 if (Stride == 0 || MSI->getLength() != Stride->getValue()) in processLoopMemSet()
360 MSI->getAlignment(), MSI->getValue(), in processLoopMemSet()
361 MSI, Ev, BECount); in processLoopMemSet()
DMemCpyOptimizer.cpp218 void addMemSet(int64_t OffsetFromFirst, MemSetInst *MSI) { in addMemSet() argument
219 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in addMemSet()
220 addRange(OffsetFromFirst, Size, MSI->getDest(), MSI->getAlignment(), MSI); in addMemSet()
401 MemSetInst *MSI = cast<MemSetInst>(BI); in INITIALIZE_PASS_DEPENDENCY() local
403 if (MSI->isVolatile() || ByteVal != MSI->getValue() || in INITIALIZE_PASS_DEPENDENCY()
404 !isa<ConstantInt>(MSI->getLength())) in INITIALIZE_PASS_DEPENDENCY()
409 if (!IsPointerOffset(StartPtr, MSI->getDest(), Offset, *TD)) in INITIALIZE_PASS_DEPENDENCY()
412 Ranges.addMemSet(Offset, MSI); in INITIALIZE_PASS_DEPENDENCY()
544 bool MemCpyOpt::processMemSet(MemSetInst *MSI, BasicBlock::iterator &BBI) { in processMemSet() argument
547 if (isa<ConstantInt>(MSI->getLength()) && !MSI->isVolatile()) in processMemSet()
[all …]
DScalarReplAggregates.cpp530 if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) { in CanConvertToScalar() local
532 if (!isa<ConstantInt>(MSI->getValue())) in CanConvertToScalar()
536 ConstantInt *Len = dyn_cast<ConstantInt>(MSI->getLength()); in CanConvertToScalar()
627 if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) { in ConvertUsesToScalar() local
628 assert(MSI->getRawDest() == Ptr && "Consistency error!"); in ConvertUsesToScalar()
629 unsigned NumBytes = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in ConvertUsesToScalar()
631 unsigned Val = cast<ConstantInt>(MSI->getValue())->getZExtValue(); in ConvertUsesToScalar()
652 MSI->eraseFromParent(); in ConvertUsesToScalar()
DGVN.cpp1046 if (MemSetInst *MSI = dyn_cast<MemSetInst>(SrcInst)) { in GetMemInstValueForLoad() local
1049 Value *Val = MSI->getValue(); in GetMemInstValueForLoad()
/external/clang/lib/AST/
DDecl.cpp556 } else if (MemberSpecializationInfo *MSI = in getLVForClassMember() local
558 TSK = MSI->getTemplateSpecializationKind(); in getLVForClassMember()
1349 if (MemberSpecializationInfo *MSI = getMemberSpecializationInfo()) in getInstantiatedFromStaticDataMember() local
1350 return cast<VarDecl>(MSI->getInstantiatedFrom()); in getInstantiatedFromStaticDataMember()
1356 if (MemberSpecializationInfo *MSI = getMemberSpecializationInfo()) in getTemplateSpecializationKind() local
1357 return MSI->getTemplateSpecializationKind(); in getTemplateSpecializationKind()
1368 MemberSpecializationInfo *MSI = getMemberSpecializationInfo(); in setTemplateSpecializationKind() local
1369 assert(MSI && "Not an instantiated static data member?"); in setTemplateSpecializationKind()
1370 MSI->setTemplateSpecializationKind(TSK); in setTemplateSpecializationKind()
1373 MSI->getPointOfInstantiation().isInvalid()) in setTemplateSpecializationKind()
[all …]
/external/llvm/lib/Analysis/
DLint.cpp305 MemSetInst *MSI = cast<MemSetInst>(&I); in visitCallSite() local
307 visitMemoryReference(I, MSI->getDest(), AliasAnalysis::UnknownSize, in visitCallSite()
308 MSI->getAlignment(), 0, in visitCallSite()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp250 } else if (const MemSetInst *MSI = dyn_cast<MemSetInst>(I)) { in AnalyzeGlobal() local
251 assert(MSI->getArgOperand(0) == V && "Memset only takes one pointer!"); in AnalyzeGlobal()
252 if (MSI->isVolatile()) return true; in AnalyzeGlobal()
2441 if (MemSetInst *MSI = dyn_cast<MemSetInst>(CI)) { in EvaluateFunction() local
2442 if (MSI->isVolatile()) return false; in EvaluateFunction()
2443 Constant *Ptr = getVal(Values, MSI->getDest()); in EvaluateFunction()
2444 Constant *Val = getVal(Values, MSI->getValue()); in EvaluateFunction()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp239 } else if (MemSetInst *MSI = dyn_cast<MemSetInst>(MI)) { in visitCallInst() local
240 if (Instruction *I = SimplifyMemSet(MSI)) in visitCallInst()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1366 const MemSetInst &MSI = cast<MemSetInst>(I); in X86VisitIntrinsicCall() local
1369 if (!MSI.getLength()->getType()->isIntegerTy(SizeWidth)) in X86VisitIntrinsicCall()
1372 if (MSI.getDestAddressSpace() > 255) in X86VisitIntrinsicCall()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp967 MemberSpecializationInfo *MSI = new (C) MemberSpecializationInfo(RD, TSK); in VisitCXXRecordDecl() local
968 MSI->setPointOfInstantiation(POI); in VisitCXXRecordDecl()
969 D->TemplateOrInstantiation = MSI; in VisitCXXRecordDecl()