/external/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 83 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()
|
D | MemCpyOptimizer.cpp | 218 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 …]
|
D | ScalarReplAggregates.cpp | 470 if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) { in CanConvertToScalar() local 472 if (!isa<ConstantInt>(MSI->getValue())) in CanConvertToScalar() 476 ConstantInt *Len = dyn_cast<ConstantInt>(MSI->getLength()); in CanConvertToScalar() 575 if (MemSetInst *MSI = dyn_cast<MemSetInst>(User)) { in ConvertUsesToScalar() local 576 assert(MSI->getRawDest() == Ptr && "Consistency error!"); in ConvertUsesToScalar() 577 int64_t SNumBytes = cast<ConstantInt>(MSI->getLength())->getSExtValue(); in ConvertUsesToScalar() 580 unsigned Val = cast<ConstantInt>(MSI->getValue())->getZExtValue(); in ConvertUsesToScalar() 601 MSI->eraseFromParent(); in ConvertUsesToScalar()
|
D | GVN.cpp | 1106 if (MemSetInst *MSI = dyn_cast<MemSetInst>(SrcInst)) { in GetMemInstValueForLoad() local 1109 Value *Val = MSI->getValue(); in GetMemInstValueForLoad()
|
/external/llvm/lib/MC/MCDisassembler/ |
D | Disassembler.h | 67 llvm::OwningPtr<const llvm::MCSubtargetInfo> MSI; variable 96 MSI.reset(mSI); in LLVMDisasmContext()
|
/external/clang/lib/AST/ |
D | Decl.cpp | 511 } else if (MemberSpecializationInfo *MSI = in getLVForClassMember() local 513 TSK = MSI->getTemplateSpecializationKind(); in getLVForClassMember() 1496 if (MemberSpecializationInfo *MSI = getMemberSpecializationInfo()) in getInstantiatedFromStaticDataMember() local 1497 return cast<VarDecl>(MSI->getInstantiatedFrom()); in getInstantiatedFromStaticDataMember() 1503 if (MemberSpecializationInfo *MSI = getMemberSpecializationInfo()) in getTemplateSpecializationKind() local 1504 return MSI->getTemplateSpecializationKind(); in getTemplateSpecializationKind() 1515 MemberSpecializationInfo *MSI = getMemberSpecializationInfo(); in setTemplateSpecializationKind() local 1516 assert(MSI && "Not an instantiated static data member?"); in setTemplateSpecializationKind() 1517 MSI->setTemplateSpecializationKind(TSK); in setTemplateSpecializationKind() 1520 MSI->getPointOfInstantiation().isInvalid()) in setTemplateSpecializationKind() [all …]
|
/external/llvm/lib/Analysis/ |
D | Lint.cpp | 310 MemSetInst *MSI = cast<MemSetInst>(&I); in visitCallSite() local 312 visitMemoryReference(I, MSI->getDest(), AliasAnalysis::UnknownSize, in visitCallSite() 313 MSI->getAlignment(), 0, in visitCallSite()
|
/external/clang/lib/Sema/ |
D | SemaCXXScopeSpec.cpp | 248 MemberSpecializationInfo *MSI = ED->getMemberSpecializationInfo(); in RequireCompleteDeclContext() local 249 if (MSI->getTemplateSpecializationKind() != TSK_ExplicitSpecialization) { in RequireCompleteDeclContext()
|
D | SemaType.cpp | 4211 MemberSpecializationInfo *MSI = Rec->getMemberSpecializationInfo(); in RequireCompleteType() local 4212 assert(MSI && "Missing member specialization information?"); in RequireCompleteType() 4214 if (MSI->getTemplateSpecializationKind() != TSK_ExplicitSpecialization) in RequireCompleteType()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 275 } else if (const MemSetInst *MSI = dyn_cast<MemSetInst>(I)) { in AnalyzeGlobal() local 276 assert(MSI->getArgOperand(0) == V && "Memset only takes one pointer!"); in AnalyzeGlobal() 277 if (MSI->isVolatile()) return true; in AnalyzeGlobal() 2503 if (MemSetInst *MSI = dyn_cast<MemSetInst>(II)) { in EvaluateBlock() local 2504 if (MSI->isVolatile()) return false; in EvaluateBlock() 2505 Constant *Ptr = getVal(MSI->getDest()); in EvaluateBlock() 2506 Constant *Val = getVal(MSI->getValue()); in EvaluateBlock()
|
/external/clang/lib/CodeGen/ |
D | CGObjCGNU.cpp | 1039 MessageSendInfo MSI = getMessageSendInfo(Method, ResultType, ActualArgs); in GenerateMessageSendSuper() local 1095 imp = EnforceType(Builder, imp, MSI.MessengerType); in GenerateMessageSendSuper() 1105 RValue msgRet = CGF.EmitCall(MSI.CallInfo, imp, Return, ActualArgs, 0, &call); in GenerateMessageSendSuper() 1183 MessageSendInfo MSI = getMessageSendInfo(Method, ResultType, ActualArgs); in GenerateMessageSend() local 1200 } else if (CGM.ReturnTypeUsesSRet(MSI.CallInfo)) { in GenerateMessageSend() 1214 imp = EnforceType(Builder, imp, MSI.MessengerType); in GenerateMessageSend() 1217 RValue msgRet = CGF.EmitCall(MSI.CallInfo, imp, Return, ActualArgs, in GenerateMessageSend()
|
D | CGObjCMac.cpp | 1724 MessageSendInfo MSI = getMessageSendInfo(Method, ResultType, ActualArgs); in EmitMessageSend() local 1734 if (CGM.ReturnTypeUsesSRet(MSI.CallInfo)) { in EmitMessageSend() 1762 Fn = llvm::ConstantExpr::getBitCast(Fn, MSI.MessengerType); in EmitMessageSend() 1763 RValue rvalue = CGF.EmitCall(MSI.CallInfo, Fn, Return, ActualArgs); in EmitMessageSend() 5825 MessageSendInfo MSI = getMessageSendInfo(method, resultType, args); in EmitVTableMessageSend() local 5838 if (CGM.ReturnTypeUsesSRet(MSI.CallInfo)) { in EmitVTableMessageSend() 5906 callee = CGF.Builder.CreateBitCast(callee, MSI.MessengerType); in EmitVTableMessageSend() 5908 RValue result = CGF.EmitCall(MSI.CallInfo, callee, returnSlot, args); in EmitVTableMessageSend()
|
/external/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 1411 const MemSetInst &MSI = cast<MemSetInst>(I); in X86VisitIntrinsicCall() local 1413 if (MSI.isVolatile()) in X86VisitIntrinsicCall() 1417 if (!MSI.getLength()->getType()->isIntegerTy(SizeWidth)) in X86VisitIntrinsicCall() 1420 if (MSI.getDestAddressSpace() > 255) in X86VisitIntrinsicCall()
|
/external/llvm/lib/Target/ARM/ |
D | ARMFastISel.cpp | 2420 const MemSetInst &MSI = cast<MemSetInst>(I); in SelectIntrinsicCall() local 2422 if (MSI.isVolatile()) in SelectIntrinsicCall() 2425 if (!MSI.getLength()->getType()->isIntegerTy(32)) in SelectIntrinsicCall() 2428 if (MSI.getDestAddressSpace() > 255) in SelectIntrinsicCall()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 238 } else if (MemSetInst *MSI = dyn_cast<MemSetInst>(MI)) { in visitCallInst() local 239 if (Instruction *I = SimplifyMemSet(MSI)) in visitCallInst()
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 1191 MemberSpecializationInfo *MSI = new (C) MemberSpecializationInfo(RD, TSK); in VisitCXXRecordDecl() local 1192 MSI->setPointOfInstantiation(POI); in VisitCXXRecordDecl() 1193 D->TemplateOrInstantiation = MSI; in VisitCXXRecordDecl()
|